TREND, MOVING AVERAGES & STRUCTURE

Zero-lag EMA

An exponential average with the delay largely engineered out — it turns roughly when price does rather than a few candles later.

spec id: zlemalength (default 20)

What does Zero-lag EMA measure?

An exponential average with the delay largely engineered out — it turns roughly when price does rather than a few candles later.

How is Zero-lag EMA calculated?

Before averaging, add today's close minus the close from about half of 20 candles ago back onto the price. That pre-payment of recent momentum cancels most of the lag. Then take the ordinary 20-candle exponential average of the adjusted series.

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 EMA in a bot?

In the builder, add an indicator of type zlema (parameters: length, default 20). 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 EMA — the first backtest is free.

Run a free backtest