Back to Docs
Traderoid

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

ParameterTypeDefaultDescription
periodnumber10EMA window length in 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.