Supertrend EMA Trend Trader
- Experts
-
Michael Adeshina Martins
MQL5 developer specializing in gold/forex EAs, Supertrend, EMA, and SMC systems with ATR-based risk sizing, trailing logic, and Telegram alert integration. Founder of IconEdge Technologies LTD (registered, Nigeria). Also build Python trading bots and Anthropic Claude API integrations. Portfolio - Version: 3.0
- Activations: 5
Supertrend EMA Trend Trader is a trend-following Expert Advisor built around a Supertrend and EMA(50) confluence system, with an added swing-level confirmation filter to avoid low-quality entries.
Strategy Logic
- Entry: A BUY signal triggers when the Supertrend lower band crosses above the EMA(50). A SELL signal triggers when the Supertrend upper band crosses below the EMA(50).
- Confirmation Filter: Before entering, the EA checks recent swing highs/lows. BUY entries require price to be near a recent swing low (support); SELL entries require price to be near a recent swing high (resistance). This filters out signals that occur far from a logical support/resistance zone.
- Exit: Positions close automatically when the Supertrend direction flips.
- Profit Locking: Once a trade reaches a configurable profit threshold, the EA trails the stop-loss using the Supertrend band itself, with a minimum profit-lock floor — so once activated, the stop only moves to protect gains, never to reduce them.
Configurable Inputs
Timeframe, EMA period, Supertrend ATR period/multiplier, swing lookback and strength, S&R zone distance (in ATR multiples), trailing activation threshold, and minimum profit lock — all adjustable to fit different symbols and risk preferences.
Important Setup Note
This EA was developed and tested on XAUUSD (Gold), M15 timeframe. Before running it, update the Symbol input to match your broker's exact symbol name (e.g. XAUUSD, XAUUSDm, GOLD) — using the wrong symbol name will prevent the EA from finding price data.
Recommended Use
Backtest and forward-test on a demo account first to confirm the settings suit your broker's spread and execution conditions before live use. As with any automated trading system, past performance does not guarantee future results — proper risk management (lot size, account balance) is the user's responsibility
