Linear Regression Channel
Indicator
The Linear Regression Channel fits a straight line to the last 100 closes and draws bands around it from the scatter of those closes.
Described by Tushar Chande and Stanley Kroll, 1994. Reviewed by the ChartLabs team, updated Nov 2026.
LinearRegChannel 58294.94
On price
LinearRegChannel 58294.94
On price
Illustration on simulated data.
Linear Regression ChannelWhat is the Linear Regression Channel indicator?
The Linear Regression Channel fits a straight line through the last 100 closes and draws it on the newest window only. The bands sit 2 residual standard deviations either side. That deviation is the sample form, the square root of the squared errors divided by 99.
Nothing is drawn before 100 bars. Pearson's R is on by default. It is the absolute correlation, so it is never negative, and it prints to 4 decimals. Extend Lines Right is on, so the product carries the lines past the last bar. Extend Lines Left is off. The page picture stops at the last bar, because that drawing does not extend the segment.
The base line is #F23645 and the bands are #2962FF. The fill above the base is rgba(41, 98, 255, 0.15) and the fill below it is rgba(242, 54, 69, 0.15). Tushar Chande and Stanley Kroll cover the regression line in The New Technical Trader (Wiley, 1994). Gilbert Raff covers trading the channel in Trading the Regression Channel (1996).
Newest window only
The lines you see are the fit of the last 100 closes, drawn once. A rolling endpoint is stored behind them, and only the last bar of that column matches the line.
Right extension
Extend Lines Right is on, so the chart keeps the lines going past the last close. The small picture on this page does not show that extension.
Linear Regression Channel signalsFive patterns to know.
Line rising
The fitted line through the last 100 closes slopes up.
Line falling
The fitted line slopes down.
Close above the upper band
The close is more than 2 residual deviations above the fit.
Close below the lower band
The close is more than 2 residual deviations below the fit.
Line nearly flat
The last 100 closes have little slope. Pearson's R is low when the closes do not follow the line.
Linear Regression Channel formulaHow it is calculated.
Fit the line
Fit a straight line to the last 100 closes. The value on the newest bar is the end of that line. Nothing is drawn before the window is full.
Measure the scatter
Take the sample residual deviation, the square root of the squared misses divided by 99. A multiplier of 2 is the default on each side.
Draw the window
The base and the two bands are drawn on the newest 100 bars. With Extend Lines Right on, they continue past the last bar. Pearson's R, when shown, is the absolute correlation.
Linear Regression Channel settingsEvery setting, explained.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Length | 100 | 2 to 5,000 | Closes in the fit. The Signal lens changes this. The lines need at least this many bars. |
| Source | Close | Close | The price the line is fitted to. The default is the close. |
| Upper Deviation | On | On or Off | Draws the upper band. On is the default. |
| Upper Deviation multiplier | 2 | 0 to 50 | How many residual deviations the upper band sits above the fit. |
| Lower Deviation | On | On or Off | Draws the lower band. On is the default. |
| Lower Deviation multiplier | 2 | 0 to 50 | How many residual deviations the lower band sits below the fit. |
| Show Pearson's R | On | On or Off | Prints the absolute correlation, to 4 decimals. It is never negative. |
| Extend Lines Left | Off | On or Off | Carries the lines back before the window. Off is the default. |
| Extend Lines Right | On | On or Off | Carries the lines past the last bar. On is the default. |
| Lines | Base #F23645, bands #2962FF | Fixed | Fill above the base rgba(41, 98, 255, 0.15). Fill below the base rgba(242, 54, 69, 0.15). |
- Setting
- Length
- Default
- 100
- Range
- 2 to 5,000
- What it changes
- Closes in the fit. The Signal lens changes this. The lines need at least this many bars.
- Setting
- Source
- Default
- Close
- Range
- Close
- What it changes
- The price the line is fitted to. The default is the close.
- Setting
- Upper Deviation
- Default
- On
- Range
- On or Off
- What it changes
- Draws the upper band. On is the default.
- Setting
- Upper Deviation multiplier
- Default
- 2
- Range
- 0 to 50
- What it changes
- How many residual deviations the upper band sits above the fit.
- Setting
- Lower Deviation
- Default
- On
- Range
- On or Off
- What it changes
- Draws the lower band. On is the default.
- Setting
- Lower Deviation multiplier
- Default
- 2
- Range
- 0 to 50
- What it changes
- How many residual deviations the lower band sits below the fit.
- Setting
- Show Pearson's R
- Default
- On
- Range
- On or Off
- What it changes
- Prints the absolute correlation, to 4 decimals. It is never negative.
- Setting
- Extend Lines Left
- Default
- Off
- Range
- On or Off
- What it changes
- Carries the lines back before the window. Off is the default.
- Setting
- Extend Lines Right
- Default
- On
- Range
- On or Off
- What it changes
- Carries the lines past the last bar. On is the default.
- Setting
- Lines
- Default
- Base #F23645, bands #2962FF
- Range
- Fixed
- What it changes
- Fill above the base rgba(41, 98, 255, 0.15). Fill below the base rgba(242, 54, 69, 0.15).
Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.
Linear Regression Channel strategiesUse it in 3 setups.
Trade with the slope
The last 100 closes lean up and price is holding the fitted line. Traders often want a close back through the base before they change their mind.
A close outside the upper band
The close is more than 2 residual deviations above the line. It can be a climax or the start of a steeper move. The channel does not say which.
Skip a low correlation
Pearson's R near 0 means the closes are not following the straight line. A slope on a poor fit is a weak guide.
Linear Regression Channel mistakesCommon mistakes.
Reading the line as a forecast of the next 100 bars
The fit describes the last 100 closes. Extending it right draws that same slope onward. It is not a promise about the next swing.
Treating a negative-looking market as a negative R
Pearson's R is the absolute correlation. It stays at or above zero even when the line slopes down.
Expecting a channel before 100 bars
The fit needs the full window. Fewer than 100 closes leaves the chart without these lines.
Linear Regression Channel combinationsPair it with these.
Linear Regression Channel + Linear Regression
The regression curve plots an endpoint on each bar. This channel draws the newest window as lines and bands.
Linear Regression Channel + Standard Deviation Channel
That channel uses a population residual and a length of 20, and it draws every bar. This one uses a sample residual and draws the last window.
Linear Regression Channel + ATR
ATR is the recent range in price. The bands here are residual deviations of the closes around the fit.
Linear Regression Channel + RSI
RSI shows whether momentum is stretched when price tags a band.
Linear Regression Channel FAQQuestions traders ask.
What are the Linear Regression Channel settings?
Length 100, source close, both deviation bands on at a multiplier of 2, Pearson's R on, extend left off and extend right on.
When do the lines appear?
Once 100 closes exist. Before that the window is empty.
What deviation does the band use?
The sample residual deviation, the square root of the squared misses divided by 99 at the default length. The multiplier defaults to 2.
Why is Pearson's R never negative?
The chart prints the absolute correlation, to 4 decimals. A falling line can still have a high R.
Do the lines extend past the last bar?
Yes, when Extend Lines Right is on, which is the default. The small picture on this page stops at the last bar and does not show that extension.
Is the line a prediction?
It is the fit of the closes already on the chart. Carrying the slope forward shows where that line would go, not where price must go.
Who wrote it up?
Tushar Chande and Stanley Kroll, The New Technical Trader (Wiley, 1994), and Gilbert Raff, Trading the Regression Channel (1996).
Does it repaint?
The lines are refit as each new close arrives, so the live window moves until the newest bar closes. A closed bar that has fallen out of the window is no longer on the line.
Related indicatorsMore volatility tools.
All volatility indicatorsTry Linear Regression Channel on a live chart.
Free. No download.
Works in your browser and on iPhone too.