dema

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.dema(source: ArrayLike, period: int = 14) -> np.ndarray

Double exponential average: 2 * EMA - EMA(EMA), the second stage seeded at bar period - 1. After a gap the whole cascade restarts.

Parameters

NameTypeDefault
sourceArrayLike
periodint14

Indicator: Double exponential moving average

Classpython
forge.ta.DEMA(**inputs: Any) -> None

Exponential average with part of its lag removed.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint141 to 5000

DEMA = 2 * EMA(x) - EMA(EMA(x))

The second average starts at the bar where the first is defined. After a gap the whole calculation starts again.