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
| Parameter | Type | Default | Description |
|---|---|---|---|
| period | number | 10 | EMA window length. Lag correction = (period−1)/2 bars. |
Inputs & Outputs
| Port | Direction | Type | Description |
|---|---|---|---|
| input | Input | (number | null)[] | Any numeric series (values + timestamps). |
| values | Output | (number | null)[] | Smoothed output series, null for warm-up bars. |
| timestamps | Output | number[] | Bar timestamps aligned with values. |