Linear Regression Channel

A linear regression channel draws the best-fit straight line through a price series, with parallel lines above and below it. The Raff version sets the channel width by the high or low furthest from the regression line; breaks outside the channel can signal a trend change.

Hand-drawn trend lines depend on which points you pick. A regression channel removes that choice: it fits a straight line mathematically through the whole price series, then wraps a channel around it. Traders use it to measure trend direction and spot when price strays too far. This entry explains how the channel is built and how to read it.

Category
Indicators and Tools
Reading time
4 min
Also called
Raff Regression Channel, Regression channel, Linear regression line
Updated

Regression channels in plain words

The Raff Regression Channel, developed by Gilbert Raff, is a linear regression with evenly spaced lines above and below; its width is set by the high or low furthest from the regression line.1

Linear regression is the least-squares line of best fit through a price series.1

Other channels set their width with volatility instead — Bollinger Bands, for example, sit two standard deviations from a moving average.2

How to use a regression channel, step by step

  1. Choose start and end points

    Usually a significant low and high. See Swing High and Swing Low.

  2. Fit the regression line

    The platform calculates the best fit.

  3. Set the width

    Furthest high or low (Raff) or a standard deviation multiple.

  4. Read the slope

    Up, down or flat shows trend direction. See Trend.

  5. Watch the edges

    Touches can mark overextension.

  6. Watch for breaks

    A move outside the extended channel can end the trend.

Worked examples

Example 1 — Channel width

$94–$106

The regression line at the end date is $100. The furthest low sits $6 below the line; the furthest high $4 above.

Example 1 — Channel width — calculation
Width from line (Raff)$6 (the larger distance)
Upper channel$106
Lower channel$94

The channel width comes from the high or low furthest from the regression line.1

Example 2 — Trend intact

Uptrend

Price keeps rising inside an upward-sloping channel for three months.

Example 2 — Trend intact — calculation
SlopeUp
Price inside channelYes

As long as prices keep rising within an upward-sloping channel, the trend is considered up and there is no reason to exit.1

Example 3 — Break below

Trend break

Price closes below the lower channel extension at $92.

Example 3 — Break below — calculation
Close vs lower lineBelow
ReadingUptrend may be reversing

An uptrend is considered reversed when price breaks below the extension of the lower channel line.1

Regression channel vs hand-drawn channel

AspectRegression channelHand-drawn channel
Middle lineBest fit through all pricesChosen by the trader
ObjectivityHighLower
Depends onStart and end datesChosen touch points
See alsoStandard deviation channelsChannel

How traders use regression channels

  • Trend measurement

    Slope shows direction and strength.

  • Mean reversion

    Fading moves to the channel edges. See Mean Reversion.

  • Breakout signals

    Exits when price leaves the channel. See Breakout.

  • Targets

    The opposite channel line as a target.

Advantages and disadvantages

Advantages

  • Objective trend line.
  • Clear channel boundaries.
  • Works on any market and time frame.

Disadvantages

  • Changes with start and end points.
  • Redraws as new data arrives.
  • A straight line can't fit curved trends.

Going deeper

Read as far as you need. Each level builds on the one before it.

Least squares

Beginner

The regression line minimises the sum of squared distances between prices and the line — the classic line of best fit.1

Different width methods

Intermediate

Some platforms use standard deviations from the regression line instead of the furthest point; standard deviation measures how widely prices spread around an average.3 See Standard Deviation.

Redrawing risk

Advanced

Because the line is recalculated with each new bar, past channels look cleaner in hindsight than in real time. See Look-Ahead Bias.

Common mistakes

  1. Random anchor points

    Start at meaningful swings.

  2. Fitting curved trends

    A straight line will misfit.

  3. Ignoring redraws

    Live channels move.

  4. Fading strong breakouts

    Edges don't always hold.

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1Regression line at $50; furthest high $3 above, furthest low $5 below. Where is the upper Raff line?
Q2What signals a possible end to an uptrend in a Raff channel?

Key points to remember

  1. A regression channel fits a best-fit line through prices.
  2. Parallel lines form the channel around it.
  3. Raff channels use the furthest high or low for width.
  4. Price inside the channel means the trend continues.
  5. The channel changes with its anchor points.

Frequently asked questions

What is the Raff Regression Channel?

A regression channel whose width is set by the furthest high or low, developed by Gilbert Raff.

Does a regression channel repaint?

Yes, it updates as new prices extend the data.

Which time frame works best?

Any, as long as the chosen period contains a clear trend.

Further learning

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. StockCharts ChartSchool. Raff Regression Channel (opens in a new tab) Checked .
  2. StockCharts ChartSchool. Bollinger Bands (opens in a new tab) Checked .
  3. StockCharts ChartSchool. Standard Deviation (Volatility) (opens in a new tab) Checked .

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.