TREND, MOVING AVERAGES & STRUCTURE
Zero-lag LSMA
A regression moving average with its remaining lag removed.
spec id: zlsmalength (default 14)
What does Zero-lag LSMA measure?
A regression moving average with its remaining lag removed. About as close to a smooth, real-time trend line as this family gets.
How is Zero-lag LSMA calculated?
Fit a straight line through the last 14 closes and read today's value. Do the same thing again to THAT line, then double the first and subtract the second — the subtraction cancels the leftover delay.
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 Zero-lag LSMA in a bot?
In the builder, add an indicator of type zlsma (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
- ADXA 0-100 meter for how STRONG a trend is — not which way it points.
- ADXRA slower, steadier version of ADX.
- AlligatorThree smoothed price lines drawn as a sleeping animal's jaw, teeth and lips.
- Arnaud Legoux MAA smooth trend line that still turns quickly.
Or browse all 158 indicators in the full library.