DEMA Pass
Double Exponential Moving Average — Series Input
IndicatorTrendOverlay
Overview
DEMA Pass applies the Double Exponential Moving Average to any upstream numeric series. By subtracting one EMA-of-EMA from twice the EMA, DEMA substantially reduces the lag typical of simple moving averages.
Formula
EMA1[t] = EMA(x, period) EMA2[t] = EMA(EMA1, period) DEMA[t] = 2·EMA1[t] − EMA2[t]
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| period | number | 10 | EMA window length in 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. |