TREND, MOVING AVERAGES & STRUCTURE
Linreg angle
The tilt of the recent price trend, stated as an angle in degrees.
spec id: linreg_anglelength (default 14)
What does Linreg angle measure?
The tilt of the recent price trend, stated as an angle in degrees. It makes "how steep is this?" a number you can put a rule on.
How is Linreg angle calculated?
Fit a straight line through the last 14 closing prices and convert its slope into an angle.
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 angle in a bot?
In the builder, add an indicator of type linreg_angle (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
- Linreg interceptWhere the best-fit line through recent prices STARTS — its value at the oldest candle in the window.
- Linreg slopeHow fast the trend is rising or falling — dollars per candle.
- Log returnThe one-candle return in logarithmic form.
- Least-squares MAA moving average built from a straight-line fit rather than a plain mean.
Or browse all 158 indicators in the full library.