XXUANTIFY

EMA 20/50 crossover on EUR/USD (4-hour): backtest 2007–2026

GXuantify Lab · Gold & FX by Xuantify · house profile · tested 4 Dec 2026 · data to 4 Dec 2026

Summary

We tested EMA 20/50 crossover on EUR/USD, 4-hour candles, long only, from Jan 2007 to Dec 2026, with 0.002% broker fee and 0.005% spread per side (test run 4 Dec 2026). After costs the rules lost 22.7%, while simply holding EUR/USD lost 18.0%. On the most recent 30% of the data (May 2022 – Dec 2026), shown separately, they made 1.0%; holding made 2.7%.

Did not beat holding in this test

Result after costs
−22.7%
Just holding: −18.0%
Most recent 30%
+1.0%
May 2022 – Dec 2026 · holding +2.7%
Worst drop
−34%
Holding: −32%
Trades
253
12.7 a year
Win rate
25%
Profit factor 0.79 (won ÷ lost)
Average trade
−0.10%
Per trade after costs; trades compound into the total
Time in the market
37%
The rest of the time it waited in cash
Result card: EMA 20/50 crossover on EUR/USD, −22.7% after costs

The rules

Market · EUR/USD, 4-hour candles, long only (it only buys, never sells short), without leverage

In · EMA (20) crosses above EMA (50)

Out · EMA (20) crosses below EMA (50)

An EMA (exponential moving average) is the average price of the last candles, with the newest counting most.

Orders fill at the open of the next candle. Costs: 0.002% broker fee and 0.005% spread per side. The most recent 30% of the data (from 4 May 2022) is shown separately; the rule itself is fixed in advance, nothing is tuned on the data.

Test this yourself

What happened

In this test the rule lost 22.7% from 1 Jan 2007 to 4 Dec 2026, while just holding lost 18.0%. Only 25.3% of its 253 trades won, and the average trade lost 0.1%. The first 70% of the period lost 23.5%, but the most recent 30%, from 4 May 2022, gained 1.0% against 2.7% for holding. The rule was in the market 37.2% of the time, and its biggest drop was 33.6%, against 31.5% for holding.

Year by year, month by month

After standard costs. Each cell is that month's result in %, the last column the whole year. An empty cell: not in the market that month. Purple years fall in the most recent 30% (from 4 May 2022). The first and last year are not whole years.

YearJanJFebFMarMAprAMayMJunJJulJAugASepSOctONovNDecDYear
2007 −1 +1 0 +2 −2 +1%
2008 –
2009 –
2010 –
2011 –
2012 +1 0 −1 −1 0 −1 −1 +3 −1 +2 0 +1%
2013 +2 −2 +1 −1 +2 +2 −1 +2 −1 0 0 +3%
2014 −2 0 0 0 −1 0 −1 −4 −2 −1 −10%
2015 −3 −1 +3 −1 0 −1 +2 −1 0 −2 −3%
2016 −3 +2 +3 −1 −1 −3 0 −1 −1 −1 0 −3 −7%
2017 +1 −1 +1 +2 +2 +2 +3 −1 −1 −2 +2 +1 +9%
2018 +3 −2 −1 0 −2 −2 0 −1 −1 −2 −1 −9%
2019 −1 0 0 0 −1 0 −1 −1 −2 +1 −1 +1 −5%
2020 −1 +1 0 −2 +1 0 +4 0 −2 −1 +1 +2 +3%
2021 −1 −1 0 +1 +1 −1 0 0 0 −1 −2 −4%
2022* −1 0 −1 −1 +1 −2 −2 −1 −1 −1 +4 +3 −2%
2023 0 −1 −1 +2 −1 +1 +1 −1 0 −2 +2 +1 +2%
2024 −1 0 +1 −2 +1 −1 +1 +1 0 −1 −2 −2 −3%
2025 0 −2 +3 +4 +1 +4 −2 −1 0 −1 −1 +1 +6%
2026 +1 −1 −1 0 −1 −1 0 0 0 0 −1 −4%

* 2022: only the part from 4 May 2022 is in the most recent 30%.

With and without costs

All dataFirst 70%Most recent 30%Worst drop
Standard costs (0.002% broker fee and 0.005% spread per side)−22.7%−23.5%+1.0%−34%
A broker with no fee (spread only)−21.9%−22.9%+1.2%−33%
No costs at all (theoretical)−19.9%−21.5%+2.0%−32%
Just holding EUR/USD−18.0%−20.2%+2.7%−32%

Costs did not decide it: with no costs at all the rules lost 19.9%.

Against chance

Random entries

We entered at random moments, 20 times, with as many trades as the rules and on the same side, each trade leaving by the rules' own exit. The rules did better than 7 of the 20.

In which markets did it trade?

EUR/USD's state on the day of entry: rising or falling (price against its 200-day average) and how wild it was (daily range against the two years before). Few trades per row, so read it as a rough picture. 9 trades came before the 200-day average existed and are not in a row.

MarketShare of timeTradesWonAverage trade
Falling, calm20%4425%−0.1%
Falling, normal16%4922%−0.2%
Falling, wild18%5417%−0.3%
Rising, calm19%4033%+0.1%
Rising, normal18%4023%−0.3%
Rising, wild10%1747%+0.7%

Related

EMA 50/200 crossover · Xuantify Lab · Gold & FX · XAUUSD 1D · +700.6% after costsEMA 50/200 crossover · Xuantify Lab · Trend · BTCUSDT 1D · +482.8% after costsDonchian 20/10 breakout · Xuantify Lab · Gold & FX · XAUUSD 1D · +176.4% after costsRSI 30/70 · Xuantify Lab · Gold & FX · XAUUSD 4h · +155.7% after costs EMA: the backbone that keeps you on the right side · how the indicator behaves, reviewed

Questions

Did EMA 20/50 crossover beat holding EUR/USD in this test?

No, not in this test: from 2007 to 2026 the rules lost 22.7% after costs, while holding EUR/USD lost 18.0%. That is one market, one timeframe and one set of rules, not a promise for the future.

How did you test it?

On 4-hour EUR/USD data from Jan 2007 to Dec 2026, with orders filled at the open of the next candle and 0.002% broker fee and 0.005% spread per side. The most recent 30% of the data is shown separately. The rule is fixed in advance; nothing is tuned on the data. How we test

Share

A rule from the Lab's fixed list, run in a fixed order and picked before the result was known; every outcome is published, losers too. Past results don't guarantee future ones. Not financial advice.