r/algorithmictrading • • 1h ago

Backtest [Backtesting] One year of automated XAUUSD trading on MT5 — 159 trades, PF 2.17

I'm the developer of an MT5 Expert Advisor for XAUUSD. I wanted to share the results of a one-year backtest and briefly explain the strategy behind it.

Strategy overview

  • Instrument: XAUUSD
  • Platform: MetaTrader 5
  • Timeframe: M15
  • Trading session: New York session only
  • Entry logic: M15 entries aligned with higher-timeframe directional bias
  • Position sizing: Dynamic lot sizing with compounding
  • Risk setting: 5% per trade
  • Trade management: Structured exits and partial take-profits
  • Restrictions: No martingale, grid, or arbitrage

Backtest configuration

  • Period: November 2025 – November 2026
  • Initial deposit: $200
  • Broker/account: XM Ultra Low
  • Leverage: 1:500
  • Approximate spread: 30 points
  • History quality: 100%
  • Ticks processed: 101.75 million
  • Bars: 25,654

Results

MetricResult
Net profit$31,707.47
Gross profit$58,767.63
Gross loss-$27,060.16
Profit factor2.17
Recovery factor5.80
Sharpe ratio12.76
Total trades159
Win rate66.67%
Maximum balance drawdown9.98%
Maximum equity drawdown20.10%

The reported net profit represents approximately 15,854% growth on the initial deposit, with compounding enabled. This is a historical tester result, not a representation of expected live returns.

Important notes

The 5% risk setting is the configured risk parameter; actual exposure can vary with position sizing and market conditions. The backtest report shows 100% history quality, but I have not yet documented all execution assumptions, including exact modelling mode, commissions, and slippage.

I'm sharing this as a technical development and backtesting discussion. Backtest performance does not guarantee future results.

1 Upvotes

0 comments sorted by