Introduced by Patrick Mulloy in *Technical Analysis of Stocks & Commodities* (Jan 1994), "Smoothing Data With Less Lag." Mulloy's goal was to replace the standard moving averages in MACD and other indicators to reduce the delay in signal generation.
TEMA measures the smoothed trend of price action with dramatically reduced lag compared to traditional exponential moving averages. It mathematically compensates for the inherent delay in exponential smoothing by combining three cascaded EMAs in a weighted formula that effectively "looks ahead" in the trend.
This matters because traditional EMAs introduce significant lag - an EMA with period N takes approximately 3.45×(N+1) bars to converge, creating delayed signals in fast-moving markets. TEMA reduces this lag by 60-80% while maintaining the smoothness and noise reduction properties of exponential smoothing. Traders use TEMA when they need responsive trend signals without the whipsaw noise of simple moving averages, particularly in MACD-based systems where lag can significantly degrade performance.
This formula effectively projects the trend forward to compensate for the delay inherent in smoothing.
### Convergence Speed
Because of the aggressive weighting, TEMA converges (warms up) faster than a standard EMA. While an EMA takes $\approx 3.45(N+1)$ steps to converge to 99.9%, TEMA stabilizes quicker due to the subtraction terms canceling out the initial error.
TEMA tracks price trends with minimal lag, making it excellent for identifying trend changes. When TEMA slopes upward, it indicates bullish momentum; downward slope indicates bearish momentum. The reduced lag means TEMA will turn direction sooner than traditional EMAs during trend changes.
### Crossover Signals
TEMA crossovers with price or other moving averages provide entry/exit signals:
- **Price crossovers**: When price crosses above TEMA, it suggests bullish momentum; crossing below suggests bearish momentum.
- **TEMA/EMA crossovers**: TEMA crossing above a slower EMA indicates accelerating bullish momentum.
### Divergence Analysis
TEMA divergences from price can signal potential reversals:
- **Bullish divergence**: Price makes lower lows while TEMA makes higher lows.
- **Bearish divergence**: Price makes higher highs while TEMA makes lower highs.
### Signal Quality Factors
- **Strength**: The steeper the TEMA slope, the stronger the trend momentum.
- **Smoothness**: Despite reduced lag, TEMA maintains reasonable smoothness for reliable signals.
- **Confirmation**: Best used with volume confirmation and other momentum indicators.
TEMA requires 3 cascaded EMA updates plus the combination formula:
| Operation | Count | Cost (cycles) | Subtotal |
| :--- | :---: | :---: | :---: |
| EMA update (×3) | 3 | 7 | 21 |
| MUL (3×e1, 3×e2) | 2 | 3 | 6 |
| SUB (3×e1 - 3×e2) | 1 | 1 | 1 |
| ADD (+ e3) | 1 | 1 | 1 |
| **Total (hot)** | **7** | — | **~29 cycles** |
During warmup, each EMA stage has additional compensator overhead (~21 cycles × 3 = ~63 cycles).
**Total during warmup:** ~92 cycles/bar; **Post-warmup:** ~29 cycles/bar.
### Batch Mode (SIMD Analysis)
TEMA is inherently recursive due to cascaded EMAs. SIMD parallelization across bars is not possible. Each EMA stage must complete before feeding the next:
| Optimization | Operations | Cycles Saved |
| :--- | :---: | :---: |
| FMA in each EMA stage | 3 FMA vs 3×(MUL+ADD) | ~6 cycles |
**Q: How does TEMA differ from a triple-smoothed EMA?**
A: A triple-smoothed EMA would be EMA(EMA(EMA(price))), which introduces massive lag. TEMA uses the formula 3×EMA₁ - 3×EMA₂ + EMA₃ to cancel out lag while maintaining the smoothing effect.
**Q: What's the relationship between TEMA and DEMA?**
A: DEMA is 2×EMA₁ - EMA₂. TEMA extends this to 3×EMA₁ - 3×EMA₂ + EMA₃. Both use weighted combinations to reduce lag, but TEMA goes further with triple smoothing.
**Q: When should I use TEMA instead of EMA?**
A: Use TEMA when you need minimal lag for timing-critical signals (like MACD triggers) but still want the smoothness of exponential smoothing. Use EMA for general trend following where some lag is acceptable.
**Q: Can TEMA be used for scalping?**
A: Yes, with short periods (5-15), but be aware of increased noise and false signals. Combine with volume confirmation and other filters to reduce whipsaws.
## References
- Mulloy, P. (1994). "Smoothing Data With Less Lag." *Technical Analysis of Stocks & Commodities*, 12(1).
- Kaufman, P. J. (1995). *Smarter Trading*. McGraw-Hill. (Chapter on adaptive moving averages)
- Tillson, T. (1998). "Generalized Moving Averages." *Technical Analysis of Stocks & Commodities*.
- Ehler, J. (2001). *Rocket Science for Traders*. Wiley. (Discussion of lag reduction techniques)