Trading Education

Linear regression channel indicator: how to read trend and mean reversion

A linear regression channel draws a best-fit trend line with standard-deviation bands. How to read it for direction, mean-reversion entries, and its repaint catch.

By Pyrem R. 10 min read

Two traders open the same chart, draw a trend line across the same move, and end up with two different lines. One anchored the low a candle earlier; the other clipped a wick. Both are defensible, both change where the “edge” of the trend sits, and neither is measurably right. The linear regression channel exists to take that argument off the table.

It draws the one line a spreadsheet would draw, then measures how far price usually wanders from it. By the end of this guide you’ll be able to read its slope for trend, use its bands for entries, and spot the one setup where it quietly moves under you.

Key Findings

  • A statistical trend line with bands: the centerline is the best-fit line through a range of closes, and the outer lines sit a fixed number of standard deviations either side.
  • Slope is the trend read: the angle of the centerline tells you direction, and the bands tell you how far price has stretched from its own middle.
  • Trend and reversion in one tool: a band touch that agrees with the slope is a reversion entry; a close that holds outside a band warns the trend is turning.
  • The sliding version recalculates: a fixed-anchor channel stays put, but an auto-updating one redraws its whole history on every new candle.

What is a linear regression channel?

A linear regression channel is the single straight line that fits a stretch of price most closely, wrapped by two parallel bands that mark how far price typically drifts from it. The middle line is the linear regression line, a term borrowed straight from statistics: given a cloud of closing prices, it is the one line that keeps its total distance from all of them as small as possible. No eyeballing, no argument over which wick to touch.

The bands are the second half of the idea. Once you have the centerline, you can measure how far each close sat from it and take the standard deviation of those gaps, which is just a plain measure of typical spread. Place a band two standard deviations above and below the centerline and you have drawn a corridor that contained most of the move. The variant many platforms label the Raff Regression Channel, credited to Gilbert Raff, sets the bands to the single largest distance price reached rather than a standard deviation, and StockCharts documents that construction in its ChartSchool entry on the Raff Regression Channel .

A rising linear regression channel with standard-deviation bandsUpper band (+2 SD)Lower band (-2 SD)Best-fit centerlineReversion buyReversion sellSlope is the trend; the bands are the stretch

How do you read the slope and the bands?

Start with the slope, because it decides everything else. A centerline tilting up says the fitted trend is rising, a downward tilt says the opposite, and a near-flat line says price is ranging and the channel is describing chop rather than a trend. Read direction first, and let it rule which band touches you take seriously.

Then the bands. Price spends most of its time inside the channel and drifts toward an edge when it has run ahead of its own average. In a rising channel, a dip to the lower band is price catching down to a trend that is still pointed up, which is where a trader looks for a long that agrees with the slope. A push into the upper band is the opposite stretch, and it is a poor place to start a fresh long even if the trend is healthy. The reads that pay are the ones where the band touch and the slope agree; fading a strong slope because price tagged a band is how good tools earn bad reputations.

Quick testBefore you fade a band touch, check the centerline. If it is sloping hard in the other direction, you are betting against the trend the channel just measured. Take the touch that leans with the slope, skip the one that fights it, and the same indicator that felt random starts to feel selective.

There is a second, more decisive read. When a candle closes and holds outside a band instead of snapping back, that is not a stretch, it is a break. The move that built the channel is losing its shape, and the corridor you were trading is about to be redrawn around a new slope. That break is often the earliest hint a trend is changing gear, and it pairs naturally with the leading versus lagging indicators trade-off, since the channel is trying to describe a trend and warn of its end from the same picture.

Linear regression channel vs Bollinger Bands vs a hand-drawn trend line

All three try to frame a trend, and traders often reach for them interchangeably. They are not the same tool, and the differences decide which one belongs on your chart for a given job.

Entry 1
Factor Center
Linear regression channel Straight best-fit line over a set range
Bollinger Bands Moving average, curves and lags
Hand-drawn trend line Wherever you place it
Entry 2
Factor Bands
Linear regression channel Fixed standard deviations, parallel
Bollinger Bands Standard deviations that widen with volatility
Hand-drawn trend line None, unless you add a parallel copy
Entry 3
Factor Best at
Linear regression channel Describing one clean move and its edges
Bollinger Bands Reacting to changing volatility bar by bar
Hand-drawn trend line Fast, discretionary marking
Entry 4
Factor Weakness
Linear regression channel Assumes the move is roughly linear
Bollinger Bands Center lags the actual trend
Hand-drawn trend line Two traders draw two lines
Entry 5
Factor Repaint risk
Linear regression channel Only if set to auto-update
Bollinger Bands Recalculates each bar by design
Hand-drawn trend line Static once drawn

Read side by side, the regression channel is the objective answer to the hand-drawn line’s biggest flaw, which is that no two traders draw it the same way. Against Bollinger Bands the split is cleaner still: if you want a corridor that reacts to volatility, the Bollinger squeeze approach is built for exactly that, while a regression channel is built to describe the shape of one identifiable move. For a volatility-scaled channel that rides an average instead of a straight line, the Keltner channel sits somewhere between the two.

RelicusRoad Pro

Have you been trading for a while but have never made consistent profits or are you new to FOREX trading and want to get a head start? Try RelicusRoad and you'll never look back.

Get RelicusRoad Pro

What settings should you actually use?

The honest answer is that the “setting” is a decision about what you want to measure, not a magic number. A short lookback wraps recent candles and reacts quickly, which suits a scalper watching one session. A long lookback describes the larger trend and shrugs off small swings, which suits a swing trader. Neither is correct in the abstract.

Many traders skip the bar count entirely and anchor the channel by hand, dragging it from a clear swing low to a clear swing high so it frames a move they can actually point to. That habit matters more than the band multiplier, which most people sensibly leave at two standard deviations. One caution worth keeping in mind: the standard-deviation math assumes a roughly normal spread, and market returns are famously not normal, with more extreme moves than a bell curve predicts. So treat a band touch as “price has stretched,” not as a statistical guarantee it snaps back. If you want the deeper picture of where price is likely to react, structure work like support and resistance mastery still does the heavy lifting the channel only approximates.

Does a linear regression channel repaint?

This is where the tool splits in two, and the difference is worth understanding before you trust it with risk.

A channel you anchor to a fixed start and end candle is locked. Once drawn, it does not move, and every level you read off it stays exactly where you read it. That version is honest by construction.

An auto-updating regression channel is a different animal. It keeps a fixed lookback and slides forward, so every time a new candle closes it refits the best-fit line and recomputes both bands across the whole window. The entire historical channel shifts. That is not a flaw in the code, it is what a rolling regression does. But it has the same practical danger as a repainting oscillator: a back-test that overlays today’s channel on last month’s candles is testing lines that were never on the chart back then, so it looks far cleaner than live trading could have been. The check is identical to the one in the non-repaint forex indicator guide . Mark a level, let new candles form, reload, and see whether the level you traded is still sitting where you left it.

Where does a non-repaint suite like RelicusRoad Pro fit?

RelicusRoad Pro is not a regression channel, and it is not trying to replace one. A regression channel is a clean way to describe a single move; the suite reads trend and structure across the chart and, crucially, fixes each level at the candle’s close so the line you acted on this morning is the same line tonight. If you already run a channel, treat the suite as the fixed reference the sliding channel lacks: the level that does not quietly redraw itself around the newest candle.

None of this replaces the part of trading that stays yours. A channel, fixed or rolling, can tell you price has stretched or a slope has broken. It cannot size the trade or hold your discipline through the drawdown that a stretch sometimes becomes. If you are assembling a working toolkit rather than leaning on one line, the best trading indicators guide shows how the pieces split the job.

Frequently asked questions

What is a linear regression channel? A linear regression channel is a trend tool built from a statistical best-fit line. Over a chosen range of candles, it draws the straight line that sits as close as possible to every close at once, which is the linear regression line. Two parallel lines are then placed above and below it, usually two standard deviations away, forming a channel. The centerline shows the average path price took across that range, and the outer bands show how far price typically strayed from it. The version credited to Gilbert Raff, the Raff Regression Channel, sets the band width to the largest distance any price reached from the centerline instead of a standard deviation.

How do you trade a linear regression channel? Two ways, and they work best together. For direction, read the slope of the centerline: rising is an uptrend, falling a downtrend, flat a range. For entries, treat the outer bands as stretch markers. In a rising channel, a pullback to the lower band is a spot to look for a long in the direction of the slope, and a tag of the upper band is where an existing long is stretched. The higher-odds trades take the band touch that agrees with the slope, not against it. A close that breaks and holds outside a band is the warning that the trend that built the channel may be ending.

What is the best setting for a linear regression channel? There is no single best number, because the setting is really a choice of what range you want to measure. A shorter lookback hugs recent price and reacts fast; a longer one describes the larger trend and ignores small swings. Many traders anchor the channel by hand to a clear swing, from a notable low to a notable high, rather than using a fixed bar count, so the channel describes a move they can actually see. Band width is usually left at two standard deviations. Change the range you are measuring before you change the band multiplier.

What is the difference between a linear regression channel and Bollinger Bands? Both draw bands a set number of standard deviations from a central line, so they look related, but the center is different. Bollinger Bands center on a moving average, which curves and lags. A linear regression channel centers on a straight best-fit line through a fixed range, so its middle is a clean trend estimate rather than a curved average. Bollinger Bands are built to react bar by bar to volatility; a regression channel is built to describe the shape of one identifiable move. They answer different questions and can sit on the same chart.

Does a linear regression channel repaint? It depends on how it is anchored. A channel fixed to a chosen start and end candle is locked: it will not move once drawn. But an auto-updating regression channel that keeps a fixed lookback and slides forward recalculates the best-fit line and both bands every time a new candle closes, so the entire historical channel shifts. That is not a bug, it is how the math works, but it means a back-test that reads the current channel over past data is testing a line that was never there at the time. Judge the tool by whether the levels you traded stay where you traded them.


A linear regression channel is the objective version of the trend line you were already drawing by hand, plus a measured read on how far price has wandered from it. Read the slope first, take the band touches that agree with it, respect a close that holds outside the channel, and know whether your version is locked or sliding before you trust a single level.

See how RelicusRoad Pro fixes trend and structure levels that do not redraw on you →

Share: