dema
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.dema(source: ArrayLike, period: int = 14) -> np.ndarrayDouble exponential average: 2 * EMA - EMA(EMA), the second stage seeded at bar
period - 1. After a gap the whole cascade restarts.
Parameters
| Name | Type | Default |
|---|---|---|
| source | ArrayLike | |
| period | int | 14 |
Indicator: Double exponential moving average
Classpython
forge.ta.DEMA(**inputs: Any) -> NoneExponential average with part of its lag removed.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 14 | 1 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.