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

Or browse all 158 indicators in the full library.

Build a bot that trades on Zero-lag LSMA — the first backtest is free.

Run a free backtest