Moving Average Crossover Strategy: 5 Years of EUR/USD Backtested

A moving average crossover strategy buys when a faster moving average crosses above a slower one and sells when it crosses below, so it tries to catch every trend automatically. We backtested three popular versions on EUR/USD from 2022 to 2026, always in the market and with a 1-pip cost per trade. All three lost money: the 9/21 EMA on 1-hour candles lost 2,525 pips over 1,298 trades, the 20/50 EMA on 4-hour candles lost 296 pips, and the 50/200 “golden cross” on daily candles lost on 7 of its 8 closed trades. Crossovers catch big trends but give most of it back in sideways markets, so they need a filter and good exits.

Fast and slow moving averages crossing repeatedly in a sideways market; EUR/USD backtest: 9/21 EMA on 1-hour candles lost 2,525 pips over 1,298 trades
Crossovers catch trends but whipsaw in sideways markets (illustration), with our EUR/USD backtest results.

How a Moving Average Crossover Works

A moving average smooths price over a set number of candles. A crossover uses two of them:

  • Fast average (for example 9, 20 or 50 periods) follows price closely.
  • Slow average (for example 21, 50 or 200 periods) moves slowly.
  • Buy signal: the fast average crosses above the slow one. Sell signal: it crosses below.

An EMA (exponential moving average) gives more weight to recent prices and reacts faster than an SMA (simple moving average). The two most famous signals use the 50-day and 200-day SMAs: the golden cross (50 above 200, bullish) and the death cross (50 below 200, bearish).

Popular Crossover Settings

Pair of averages Timeframe Style
9 and 21 EMA M15 to H1 Day trading
20 and 50 EMA H4 Swing trading
50 and 200 SMA Daily Long-term trend (golden/death cross)

What Our EUR/USD Backtest Shows

We used EUR/USD 1-minute data from HistData.com, January 2022 to November 2026 (New York time), built into 1-hour, 4-hour and daily candles. Each system was always in the market: long after a bullish cross, short after a bearish cross, reversing at the close of the crossing candle. Every trade paid a 1-pip cost.

System Closed trades Winners Average win Average loss Total
9/21 EMA, 1-hour 1,298 27.9% +53.4 pips −23.3 pips −2,525 pips
20/50 EMA, 4-hour 150 31.3% +143.9 pips −68.5 pips −296 pips
50/200 SMA, daily 8 12.5% +258 pips −455 pips −2,926 pips
  • Most trades lose; a few big ones pay. Only 28-31% of trades won on the 1-hour and 4-hour systems, but the average win was about twice the average loss. That is normal for trend following. The problem is that the small losses added up faster.
  • Faster settings cost more. The 9/21 EMA traded almost 1,300 times. At 1 pip per trade, costs alone were about 1,300 pips.
  • The golden cross was badly timed in a sideways market. EUR/USD moved between about 0.99 and 1.18 in these years. The 50/200 crosses came late: for example, the death cross of 25 November 2024 sold at 1.0487, and the next golden cross on 14 April 2025 bought back at 1.1281. One short from 5 April 2026 was still open in November 2026, about 519 pips in profit, which would reduce the loss to about −2,407 pips.
  • Buying and holding did better. Buying on 4 October 2022, the first day the 200-day average existed, and holding to November 2026 gained about 1,139 pips.
Golden crosses (50 above 200) Death crosses (50 below 200)
28 Dec 2022, 3 Jan 2024, 19 Aug 2024, 14 Apr 2025 28 Sep 2023, 12 May 2024, 25 Nov 2024, 5 Apr 2026

How to Make a Crossover Strategy More Robust

  1. Trade it only when the market is trending. A trend-strength filter such as the ADX or a higher-timeframe trend can keep you out of some sideways periods.
  2. Use the cross for direction, not entry. After a bullish cross, wait for a pullback to support instead of buying the crossing candle.
  3. Exit with a trailing stop, not the opposite cross. Waiting for the reverse cross gives back a large part of each trend. An ATR trailing stop or the SuperTrend exits earlier.
  4. Keep costs low. Trade liquid pairs during the busy hours; see the best time to trade forex.
  5. Measure it yourself. Run it in the MT5 Strategy Tester and judge it by its expectancy, not by a few nice charts.

Frequently Asked Questions

What is the best moving average crossover for forex?

None of the three popular versions we tested was profitable on EUR/USD from 2022 to 2026 when traded on its own. Slower crossovers trade less and cost less, but they enter and exit late.

What is a golden cross in forex?

A golden cross is when the 50-day moving average crosses above the 200-day moving average. A death cross is the opposite. They are widely watched but come late, because both averages lag price.

EMA or SMA for crossovers?

EMAs react faster and give earlier signals, but also more false ones. SMAs are smoother and slower. The choice matters less than the filter and the exit rules.

Why do moving average crossovers lose in ranges?

In a sideways market the averages keep crossing back and forth, so the system buys high and sells low many times in a row. Each of those small losses adds a spread cost too.

Can I use a crossover on a lower timeframe for scalping?

You can, but costs grow quickly: our 9/21 EMA on 1-hour candles already paid about 1,300 pips in costs. Read the EMA trading systems roundup for scalping variants and their trade-offs.

General education, not financial advice. Forex trading involves substantial risk of loss and is not suitable for everyone. The backtest results above are hypothetical, based on past data and mechanical rules, and do not guarantee future results. Only trade money you can afford to lose.

Sources