Linear Regression Intercept

Linear Regression Intercept
Indicator

TrendOn the price chartFree on ChartLabs

Linear Regression Intercept is the starting value of a straight line fitted to the 14 closes before the current bar. It trails price more than an SMA.

Built on the moving regression in The New Technical Trader by Tushar Chande and Stanley Kroll, 1994. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AILinear Regression Interceptchartlabs.co/charts
Atlas reads it

Price is above a rising Intercept 14. The 14-bar fit points up.

Intercept 14 59,392.2 · Close 62,761.4

Atlas reads it

Price is above a rising Intercept 14. The 14-bar fit points up.

Intercept 14 59,392.2 · Close 62,761.4

Illustration on simulated data.

Linear Regression InterceptWhat is the Linear Regression Intercept indicator?

The intercept draws one grey line on the price chart. Each bar it fits a least-squares line through the 14 closes before that bar and plots where that line begins: half a bar before the oldest of those closes.

So the value on the current bar describes the fitted line about 14 bars back. In a steady advance it sits well under price, and under the plain average of the same closes; in a decline it sits above. The gap grows with the slope.

On its own it is a slow trend line. It is most useful next to Linear Regression Forecast, the other end of the same line: the forecast is above the intercept exactly when the fitted slope is positive.

Two ends of one line

Forecast minus Intercept is always 14 times the slope, and their average is the mean of the 14 closes.

Warm-up

The first value is on the 16th bar. Earlier bars are left empty.

Linear Regression Intercept signalsFour patterns to know.

1Bullish

Price above a rising intercept

Closes stay well above a slow line that climbs.

2Bearish

Price under a falling intercept

Closes stay under a slow line that falls.

3Bullish lean

Close back above

Price climbs past where the fitted line began, which takes a real recovery.

4Bearish lean

Close back under

After a long run above, price falls through the slow line and stays under it.

Linear Regression Intercept formulaHow it is calculated.

y¯=mean of the 14 closes before the barb=their least-squares slopeIntercept=y¯−b×142
STEP 1

Take the earlier closes

Use the 14 closes before the current bar.

STEP 2

Fit a line

Find the least-squares line through them: its mean and its slope per bar.

STEP 3

Read its start

Read the line half a bar before the oldest of those closes: the mean minus 7 times the slope. That value is plotted on the current bar.

Linear Regression Intercept settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length142 to 5,000Closes in the fit. Longer makes the line slower still.
SourceCloseAny priceWhich values feed the fit.
LineGrey #999999, 1 pxAny colour and widthColour and width of the line.
Setting
Length
Default
14
Range
2 to 5,000
What it changes
Closes in the fit. Longer makes the line slower still.
Setting
Source
Default
Close
Range
Any price
What it changes
Which values feed the fit.
Setting
Line
Default
Grey #999999, 1 px
Range
Any colour and width
What it changes
Colour and width of the line.
148 price crosses in view
70,30866,89863,48960,07964,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

Linear Regression Intercept strategiesUse it in 3 setups.

Slow trend filter

Only long whileprice is aboveInterceptandInterceptrises

The intercept moves slowly, so traders often use it to pick the side of the market and something faster to time entries.

Slope turns up

Forecast crosses the intercept

IfForecastcrosses aboveInterceptthenthe slope has turned up

The two ends of one fit cross exactly when its slope changes sign. The Forecast is drawn here as a dashed grey line, for illustration.

Close back above after a decline

Ifprice closes aboveInterceptafter8closes under it

Getting back above the slow end of the fit takes a real recovery, so traders often treat it as confirmation rather than an early entry.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

Linear Regression Intercept mistakesCommon mistakes.

The highThe close under comes later

Waiting for a close under it to exit

The intercept trails far behind. Here the close under it came several bars after the high.

A wide gap, still a steady trend

Reading the gap as stretched

In a steady trend price sits far from the intercept by design, about 14 times the slope away. Here the gap was wide and the advance carried on.

The lowThe cross comes later

Expecting it to turn with price

It describes the fitted line about 14 bars back. Here price made its low about ten bars before closing back above it.

Linear Regression Intercept combinationsPair it with these.

Linear Regression Intercept FAQQuestions traders ask.

What are the default Linear Regression Intercept settings?

Length 14 on the close.

How is the intercept calculated?

It fits a least-squares line to the 14 closes before the current bar and reads it half a bar before the oldest of them: the mean minus 7 times the slope.

Why does it lag so much?

It plots the start of the fitted line, about 14 bars back, on the current bar.

Intercept or SMA?

The mean of the closes is the middle of the fitted line. The intercept is its start, so in a trend it sits further from price than the average.

How does it relate to the Forecast?

They are the two ends of one line. The forecast minus the intercept is 14 times the slope.

Is it the textbook intercept?

Close to it. The textbook value is the line at its first point. ChartLabs reads it half a bar earlier.

Why does it start on the 16th bar?

It needs 14 earlier closes before the fit is complete. Earlier bars are left empty.

Does the intercept work on crypto?

Yes. It works on any market with closes.

Does it repaint?

No. Closed bars never change, and the live bar's value is set when the bar opens.

Is it leading or lagging?

Lagging, more than most lines of the same length.

Related indicatorsMore trend tools.

All trend indicators

Try Linear Regression Intercept on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
LR Intercept (14, close)