All Strategies
Trend Following

Triple EMA Trend

Three EMAs aligned — trade only when all three confirm the same direction.

The triple-EMA system uses 8/21/55 EMAs. Long entries fire only when EMA8 > EMA21 > EMA55 (full bullish stack). The triple confirmation cuts whipsaws relative to a simple crossover at the cost of later entries. Excellent on assets that trend cleanly — XAUUSD, BTC, indices.

triple-ema.pinePine Script v5
//@version=5
strategy("Triple EMA Trend", overlay=true)

ema8 = ta.ema(close, 8)
ema21 = ta.ema(close, 21)
ema55 = ta.ema(close, 55)

bull_stack = ema8 > ema21 and ema21 > ema55
bear_stack = ema8 < ema21 and ema21 < ema55

if bull_stack and not bull_stack[1]
    strategy.entry("Long", strategy.long)

if not bull_stack and bull_stack[1]
    strategy.close("Long")

Deploy Triple EMA Trend as a Live Bot

Backtest on real data, then run it 24/7 on your MT5 account.

Get Started Free

We use cookies for analytics and ads measurement. See our privacy policy.