Indicator Academy

Linear Regression Channel

LRC · module 09 of 33 · trend

The best-fit straight line through recent closes, with channel lines at a chosen deviation.

Linear Regression Channel on a chart
EUR/USD · 1h · demo data
Touch +2σ1.09181.0757
  • Regression line
  • +2σ
  • −2σ
  • ▲/▼ where the rule triggers

The slope shows trend direction; touches of the outer lines show price stretched from its recent path.

How to apply it

  1. 1. Add it. Start with 100 candles, 2 deviations on 15m (Intraday).
  2. 2. Read the market first. A rising centre line with price oscillating between the channel walls describes an orderly trend; touches of the lower wall are pullback references.
  3. 3. Adjust for ranges. The fit line flattens and the channel loses meaning; residual deviation is then just range width.
  4. 4. Manage the trade. Place the stop at 1.5 × ATR and the target at 3.5 × ATR, and only act when the chart above shows the trigger.

How it is calculated

Least-squares fit of close against candle index; channel = fit ± k standard deviations of the residuals.

Inputs

  • · Lookback period
  • · Deviation multiple (2)

Reading it correctly

In a trend

A rising centre line with price oscillating between the channel walls describes an orderly trend; touches of the lower wall are pullback references.

In a range

The fit line flattens and the channel loses meaning; residual deviation is then just range width.

Settings by style

StyleSuggested values
Intraday100 candles, 2 deviations on 15m
Swing100 candles, 2 deviations on 4h

These are conventional starting points, not optimised values. Test any change on your own pair and timeframe before relying on it.

Worked example

A 100-candle fit on 4h EUR/USD gives a slope of +0.00006 per candle and a residual standard deviation of 0.0014. The 2-deviation walls sit 28 pips either side of the fit. Price at the lower wall while the slope stays positive is a stretched pullback within an intact uptrend.

When it failed

The channel was extended forward as a forecast on GBP/USD. Price broke below the lower wall and kept going; the fit had described the previous 100 candles, and refitting produced a downward slope only after the move.

Limitations

  • Entirely dependent on the chosen lookback — change it and the trend changes.
  • Repaints as new candles arrive.
  • Assumes a straight-line relationship that markets do not owe you.

Works well alongside

  • · ADX / DMI
  • · ATR

Redundant with

  • · Bollinger Bands
  • · Standard deviation channels

Stacking these produces agreement by construction, which is not confirmation.

Practice exercise

Fit 50-, 100- and 200-candle regression channels to the same 4h chart. Note how often they disagree on slope direction and what that implies about parameter choice.

Check your understanding

1. The regression channel's walls are placed using:
  • · ATR
  • ✓ Standard deviation of residuals from the fit line
  • · Fibonacci ratios
  • · Tick volume

The walls measure how far closes typically sit from the best-fit line over the lookback.

2. A key limitation is that the channel:
  • · Cannot be plotted intraday
  • ✓ Repaints and depends entirely on the lookback chosen
  • · Requires volume data
  • · Only works on daily charts

Refitting each candle changes past lines, and a different lookback can invert the apparent trend.