How three generalized DEMA stages become six EMAs
Define E1 = EMA(price), E2 = EMA(E1), and continue through E6, all with the same length. Generalized DEMA is GD(x) = (1 + v) × EMA(x) − v × EMA(EMA(x)). T3 = GD(GD(GD(price))). Expanding those three stages gives the coefficient formula below. The equivalence assumes consistent EMA coefficients and initialization.
- The T3 coefficients sum to 1. A constant input with all stages initialized to that constant stays unchanged.
- Negative coefficients help offset smoothing delay but allow the result to leave the range of recent prices. This is why a smooth line can still overshoot.
- With fixed length and factor, these equations form a fixed-coefficient filter. They do not automatically adapt the factor to volatility or volume.
| Output | Formula using the same EMA chain |
|---|---|
| EMA | E1 |
| TEMA | 3 × E1 − 3 × E2 + E3 |
| T3 | (1 + v)³ × E3 − 3v(1 + v)² × E4 + 3v²(1 + v) × E5 − v³ × E6 |
| T3 with v = 0.7 | 4.913 × E3 − 6.069 × E4 + 2.499 × E5 − 0.343 × E6 |