# forge.ta.dema

```python
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.

Since Forge API 1.

## Class forge.ta.DEMA

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

Exponential average with part of its lag removed.

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.

Since Forge API 1.
