TREND, MOVING AVERAGES & STRUCTURE

Linreg intercept

Where the best-fit line through recent prices STARTS — its value at the oldest candle in the window.

spec id: linreg_interceptlength (default 14)

What does Linreg intercept measure?

Where the best-fit line through recent prices STARTS — its value at the oldest candle in the window. Mostly used together with the slope.

How is Linreg intercept calculated?

Fit a straight line through the last 14 closing prices and report the value of that line at the beginning of the window.

Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.

How do I use Linreg intercept in a bot?

In the builder, add an indicator of type linreg_intercept (parameters: length, default 14). Its value becomes an operand you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.

Related indicators

Or browse all 158 indicators in the full library.

Build a bot that trades on Linreg intercept — the first backtest is free.

Run a free backtest