Skip to content
All library documents

Using a Linear Regression Channel to Identify Potential Trend Reversals

Article MQL5 code base

Summary

The indicator draws a linear regression trend line between two points, then plots parallel boundaries around it. The channel width is determined by the largest deviation of closing prices from the regression line. The document proposes that price reaching or crossing a boundary may warn of an approaching trend reversal, with a cross described as the more compelling condition.

The author says the indicator performed best on higher timeframes, but offers no definitions of the lookback, deviation calculation, or reversal confirmation rules. It provides no backtest, market examples, or performance measures, so boundary touches should be treated as potential alerts rather than verified reversal signals. A channel boundary can also be reached during a continuing trend, and the document does not discuss how to distinguish that case or manage risk.

Key ideas

  • The indicator fits a linear regression line between two points and surrounds it with parallel boundaries.
  • Channel width depends on the maximum closing-price deviation from the regression line.
  • A boundary touch or cross is proposed as a possible warning of trend reversal.
  • The author favors higher timeframes but supplies no quantified comparison or validation.
  • The document does not specify confirmation or risk-management rules.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.