Back to Docs
Traderoid

ZLEMA Pass

Zero-Lag EMA — Series Input

IndicatorTrendOverlay

Overview

ZLEMA Pass applies the Zero-Lag EMA to any upstream numeric series. It subtracts an error-correction term from the input before applying EMA, effectively removing the inherent lag of a standard EMA without introducing significant noise.

Formula

lag = (period − 1) / 2 adjusted[t] = 2·x[t] − x[t − lag] ZLEMA[t] = EMA(adjusted, period)

Parameters

ParameterTypeDefaultDescription
periodnumber10EMA window length. Lag correction = (period−1)/2 bars.

Inputs & Outputs

PortDirectionTypeDescription
inputInput(number | null)[]Any numeric series (values + timestamps).
valuesOutput(number | null)[]Smoothed output series, null for warm-up bars.
timestampsOutputnumber[]Bar timestamps aligned with values.