Moving average crossover: tested on 16 currency pairs
The moving average crossover is the oldest trend-following rule there is: trade in the direction of the faster average. It makes its money in long trends and gives it back in sideways markets.
Results by market
| Market | Trades | Win rate | Profit factor | Total | Largest drawdown | Verdict |
|---|---|---|---|---|---|---|
| EUR/USD | 130 | 23% | 1.60 | +115.4 R | −27% | Held up |
| GBP/USD | 122 | 26% | 1.32 | +54.7 R | −29% | Marginal |
| USD/JPY | 137 | 18% | 1.22 | +46.3 R | −37% | Held up |
| EUR/CHF | 141 | 16% | 1.13 | +46.2 R | −37% | Marginal |
| USD/NOK | 144 | 20% | 1.11 | +43.5 R | −44% | Marginal |
| NZD/USD | 135 | 24% | 1.08 | +22.0 R | −28% | Marginal |
| AUD/JPY | 138 | 25% | 1.07 | +20.8 R | −24% | Marginal |
| EUR/JPY | 136 | 19% | 1.02 | +18.1 R | −39% | Marginal |
| GBP/JPY | 144 | 17% | 1.00 | +15.2 R | −43% | Lost money |
| USD/SEK | 144 | 19% | 0.98 | +10.1 R | −52% | Lost money |
| USD/CHF | 130 | 19% | 0.91 | −5.7 R | −48% | Lost money |
| AUD/USD | 139 | 22% | 0.88 | −10.6 R | −45% | Lost money |
| USD/CAD | 141 | 17% | 0.83 | −21.2 R | −51% | Lost money |
| EUR/SEK | 148 | 19% | 0.72 | −36.0 R | −49% | Lost money |
| EUR/GBP | 152 | 18% | 0.69 | −51.9 R | −53% | Lost money |
| EUR/NOK | 150 | 14% | 0.56 | −79.0 R | −66% | Lost money |
Sorted by profit factor. Click a market for the account curve, yearly results and other settings.
How moving average crossover works
The moving average crossover is the oldest trend-following rule there is: trade in the direction of the faster average. It makes its money in long trends and gives it back in sideways markets.
The rules that were tested
Test it yourself
Open the same rules in the algo builder, change the settings, run your own test and get the robot as code for MetaTrader, cTrader or TradingView.
Open in the algo builderOther strategies
How the test was done
The test uses one exchange rate per day from the US Federal Reserve (H.10 release), from 2000 to 2026, and the same test engine as our algo builder. The strategy looks at the market once a day and enters at that day’s rate. A stop loss is taken at the day’s rate once it has been passed, so a loss can be larger than planned; a target is filled at the target level. Spread and commission are included as a fixed cost per trade; swap is not. Intraday moves are not in the data. Past results are no guarantee of future results.
Questions and answers
Does the moving average crossover strategy work?
Profitable after costs on 8 of 16 currency pairs, and still profitable in the last 30% of the period on 2 of them. The median profit factor was 1.01.
Which rules were tested?
Buy when the 20-day EMA crosses above the 50-day EMA, and sell short when it crosses below. Stop loss 2 × ATR(14) from the entry, no fixed target. The position is closed on the opposite signal.
Can I rely on a backtest like this?
No. A backtest shows how a fixed set of rules would have done on past prices, with simplified costs and one price per day. Use it to rule out ideas that never worked, and test the rest on a demo account before risking money.