INDICATORS · ZERO-LAG EMA

Zero-Lag EMA in Crypto: Why the Value Changes Before Candle Close

The zero-lag EMA feeds an EMA with a de-lagged price: 2 × price − price from (N−1)/2 bars ago. That extrapolation doubles the live bar's influence.

Short answer

ZLEMA = EMA of (2 × close − close[(N−1)/2]). The input subtracts an older price from twice the current price to offset lag, so a $500 move in the live price changes the input by $1,000. With α = 2/(N+1), a 21-period ZLEMA moves about 2α ≈ 0.18 × the live price change — roughly double a plain EMA. 'Zero-lag' crosses therefore appear and disappear more often intrabar. Use closed-bar values.

Which part of ZLEMA uses the live bar

ComponentUses current bar?Effect intrabar
Lagged close (N−1)/2 backNoFixed
2 × live priceYesDouble influence
EMA of de-lagged inputYes≈ 2α × change

The doubling is the price of reduced lag: ZLEMA's live value overshoots in fast moves and retraces when the bar fades.

Put Zero-Lag EMA in Crypto next to price, flow and positioning in one workspace.

Open a ChartsPod workspace

How much it moves inside one bar

ZLEMA during one bar (illustrative)ZLEMA during one bar (illustrative): OPEN: Close to price; MID: Spike: ZLEMA overshoots; LATE: Fade; CLOSE: Settles.OPENClose to priceMIDSpike: ZLEMA overshootsLATEFadeCLOSESettles
Only ZLEMA's closing value is kept in history. Original ChartsPod editorial graphic.
Illustrative intrabar range of ZLEMA vs its closed valueIllustrative intrabar range of ZLEMA vs its closed value: 21-EMA live weight 0 ; 21-ZLEMA live weight (≈ 2α) 0 .ILLUSTRATIVE INTRABAR RANGE OF ZLEMA VS ITS CLOSED VALUE21-EMA live weight021-ZLEMA live weight (≈ 2α)0
How far ZLEMA travels inside a bar versus between bars. Original ChartsPod editorial graphic.

Rules

ZLEMA signal hygieneZLEMA signal hygiene: Signals on closed bars; Bar-close alerts; Backtest uses the same rule; Live value labelled provisional; Settings identical across chart and alerts.ZLEMA SIGNAL HYGIENESignals on closed barsBar-close alertsBacktest uses the same ruleLive value labelled provisionalSettings identical across chart and alerts
Closed values are what history shows. Original ChartsPod editorial graphic.

Related: Double EMA in Crypto: Why the Value Changes Before Candle Close (DEMA), Hull Moving Average in Crypto: Why the Value Changes Before Candle Close (Hull).

Review Zero-Lag EMA in Crypto with bar replay before using it live.

Open ChartsPod replay

Questions readers ask

What makes ZLEMA 'zero-lag'?

It feeds the EMA a de-lagged, extrapolated price.

How much does it move intrabar?

About twice an EMA of the same length.

Closed bars?

Yes.

Sources and methodology

Indicator formulas are standard definitions; live-versus-closed behaviour follows TradingView's repainting documentation. Values in examples are illustrative.

  1. TradingView Pine Script: Repainting — live vs historical calculation.
  2. ChartsPod indicator reference — indicator calculations.

This article explains research tools and workflows. It is not financial advice, does not recommend buying or selling any asset and does not predict prices. Crypto derivatives carry a risk of rapid and total loss of margin.

CHARTSPOD EDITORIAL EDITION · RESEARCH AND EDUCATION ONLY · NOT FINANCIAL ADVICE.