P
PipsGrowth

Key Takeaways

Difficulty:Intermediate
Reliability:High
Category:trend
Timeframes:5M, 15M, 1H

Triple Exponential Moving Average (TEMA)

trend📊 5M, 15M, 1H, 4H

An even smoother and faster moving average using triple exponential smoothing.

Formula

Code
TEMA = 3×EMA - 3×EMA(EMA) + EMA(EMA(EMA))

Detailed Explanation

TEMA applies the EMA three times to further reduce lag while maintaining smoothness.

Lag Comparison:
- SMA: Most lag
- EMA: Medium lag
- DEMA: Low lag
- TEMA: Minimal lag

Trading Setup Example

Entry, stop loss, and take profit levels.

📈 Buy Setup
TEMACrossEntryTake ProfitStop LossCandlesMACrossBUY
📉 Sell Setup
TEMACrossEntryTake ProfitStop LossCandlesMACrossSELL

Always wait for signal confirmation before entering a trade.

Where This Indicator Works Best

Trend context and market position.

📈 Bullish Context
TEMAStrong Uptrend ↑Best Fit ✓Continues →
📉 Bearish Context
TEMAStrong Downtrend ↓Best Fit ✓Continues →

Works best in strongly trending markets.

Live Chart — Triple Exponential Moving Average (TEMA)

See Triple Exponential Moving Average (TEMA) in action on a live chart. Try changing the settings and timeframe.

Parameters

Period
Default: 20
TEMA calculation period

📈 Bullish Signals

Price crosses above TEMA, strong upward slope

📉 Bearish Signals

Price crosses below TEMA, strong downward slope

Python Implementation

TEMA calculation

Python
import pandas_ta as ta
df['TEMA'] = ta.tema(df['close'], length=20)

TradingView Pine Script

JavaScript
//@version=5
indicator("TEMA", overlay=true)
tema = ta.tema(close, 20)
plot(tema, "TEMA", color=color.purple)
📊 Use TradingView for Advanced Charting
Professional analysis tools with 100+ technical indicators
Get TradingView Pro

MT5 MQL5 Code

C++
int tema_handle = iTEMA(_Symbol, _Period, 20, 0, PRICE_CLOSE);
double tema[];
CopyBuffer(tema_handle, 0, 0, 3, tema);

Common Mistakes

✗Overtrading due to sensitivity
✗Using in ranging markets

Confirmation Signals

Volume
RSI
Price patterns

Best For

Very fast trend detectionMinimal lagScalping

💡 Pro Tips

  • •Fastest common MA variant
  • •Best for scalping and day trading
  • •May overreact in volatile markets
Last updated: February 8, 2026

Educational Disclaimer

This content is for educational purposes only and does not constitute financial or investment advice. Trading involves significant risk and you may lose your capital. Always consult a licensed financial advisor before making investment decisions.

Frequently Asked Questions

Triple Exponential Moving Average (TEMA) - Complete Guide with Python & TradingView Code