Blog Article

A MetaTrader 5 indicator for gold: what a 6-year backtest shows

Most indicators sold online show an equity curve that goes up in a straight line. Here, we do the opposite: these are all the numbers of our method on gold, including what does not look good.

The method tested

Hybrid Or combines three timeframes (details in our article on multi-timeframe analysis):

  1. D1: trend, using the EMA 20 and EMA 100;
  2. H4: pullback, with the RSI dropping below 45 (buy) or rising above 55 (sell);
  3. H1: entry on a break of the high or low of the last 20 candles.

Every trade has a stop at 1.5 × the H4 ATR, a partial take-profit of 67% at 1 R, then the stop moved to the entry price, and a final target at 2 R.

How we tested it

  • Tool: the MetaTrader 5 strategy tester.
  • Data: 1-minute XAUUSD data from the broker XM, from January 1, 2020 to September 24, 2026.
  • Costs: spread and overnight fees (swap) included.
  • Risk: 1% of capital per trade, one trade at a time, starting account of $10,000.

Above all, we kept the periods separate to avoid "cheating" with the past:

  • the settings were chosen on 2020–2024;
  • they were then checked on 2025, without being changed;
  • and one last time on 2026, a period that was never used to choose anything.

The results

Metric Value
Positions 221 (including 65 sells)
Winning positions 53.4%
Profit factor (gains ÷ losses) 1.30
Maximum drawdown 11.5%
Winning months 44 out of 81
Total result +$2,954, or +29.5% over 6 years and 9 months

Result by year:

Year Result
2020 +$537
2021 −$272
2022 +$1,411
2023 −$507
2024 +$698
2025 +$666
2026 (to September 24) +$421

What to take away, honestly

  • The method has an edge, but a modest one. About 4% per year on average with 1% risk per trade. That is a long way from promises to "double your account".
  • There are losing years. 2021 and 2023 ended in the red. About 4 months out of 10 are losing months.
  • The maximum drawdown stays contained (11.5%), thanks to the fixed 1% risk and a systematic stop.
  • The validation periods hold up. 2025 and 2026, never used to choose the settings, remain positive.

What did not work

We tested more than 2,000 combinations before getting here. A few lessons:

  • A single timeframe was not enough. No pure H1 variant held up over both periods: at best, they were barely profitable over 2020–2024, with drawdowns of around 40%.
  • Optimizing is dangerous. In a first test on EUR/USD, the best settings for 2023–2024 lost money in 2025–2026: the correlation between the results of the two periods was close to zero. Hence the strict separation of periods for gold.
  • Chasing a high win rate at all costs is a trap. We were able to reach 56% winning positions, but total profit went down. We won more often, but less each time.

The limits of a backtest

A backtest is not a promise. It does not perfectly reproduce slippage, weekend gaps, connection outages or human error. Data differs slightly from one broker to another, so signals with your broker may be slightly different from those in the backtest (XM data).

Past performance, whether actual or simulated, is not indicative of future results. Only trade money you can afford to lose.

If you want to follow the method live, the Hybrid Or indicator displays the same signals on MetaTrader 5, with the stop-loss and take-profit levels. And the result of every signal is published, winners and losers alike.

This article is provided for educational purposes and does not constitute investment advice. Trading involves a high risk of losing capital. Past performance, whether actual or simulated, is not indicative of future results.