This study develops and evaluates an automated trading system based on the Engulfing–Fibonacci–EMA strategy for MetaTrader 5. The system combines EMA-based trend filtering, engulfing candlestick signals, Fibonacci retracement and extension levels, and position management through stop-loss, multiple take-profit targets, break-even adjustment, and stop advancement.
The backtest used XAUUSD M1 OHLC data resampled into H1 bars during January 1, 2024, to December 30, 2025, with an initial capital of USD 1,000. The experiments compared the Engulfing–EMA baseline, the proposed Engulfing–Fibonacci–EMA system, and improved configurations with candle-strength filtering, direction control, spread assumptions, and position sizing.
The proposed system produced a higher net profit than the baseline (USD 725 vs. USD 360) but also higher drawdown. The Improved Candidate increased profit factor and reduced drawdown, while the Aggressive Configuration generated USD 815.16 profit with 51.55% maximum drawdown. Additional tests on EMA sensitivity, market regimes, and in-sample/out-of-sample performance were added to address robustness and overfitting concerns.
The results indicate that the strategy can generate returns when signal quality, volatility conditions, and position size are controlled. However, high-return configurations should be interpreted as high-risk scenarios rather than recommendations for live trading.