Skip to content
All library documents

Linear Regression Channels with Dynamic Support and Resistance

Article MQL5 code base

Summary

The indicator draws a linear regression channel with support and resistance levels. The channel can be anchored at a price extreme and redrawn as subsequent lows or highs develop. If a new minimum or maximum does not appear for five bars, the indicator marks a price level; the document says this level can become strong support or resistance after the channel is broken. The described behavior is reversed for the opposite channel direction.

This is a technical description of how the channel and its marked price level evolve, rather than a complete trading system. The document gives no entry or exit rules, market-specific guidance, backtest, or evidence for the claim about the level’s strength. It also does not explain how to choose channel parameters or manage risk. Traders would need to define and test those choices before treating the indicator’s redraws or breakout levels as actionable signals.

Key ideas

  • The indicator plots a linear regression channel with support and resistance levels.
  • A channel anchored at a price extreme may be redrawn as new opposing extremes form.
  • If no new extreme appears for five bars, the indicator marks a price level.
  • A break of the channel may make that marked level relevant as support or resistance.
  • The document does not provide trading rules or tested performance evidence.

Tags

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