PromotionsMy pageLog inCreate free account
Our partnerTrade forex with Skilling
  • Open 24 hours, Mon–Fri
  • Go long or short
  • Free demo account

65% of retail investor accounts lose money when trading CFDs with this provider.

SkillingVisit Skilling
Strategy tests

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.

Updated Fact-checked
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.

Results by market

MarketTradesWin rateProfit factorTotalLargest drawdownVerdict
EUR/USD13023%1.60+115.4 R−27%Held up
GBP/USD12226%1.32+54.7 R−29%Marginal
USD/JPY13718%1.22+46.3 R−37%Held up
EUR/CHF14116%1.13+46.2 R−37%Marginal
USD/NOK14420%1.11+43.5 R−44%Marginal
NZD/USD13524%1.08+22.0 R−28%Marginal
AUD/JPY13825%1.07+20.8 R−24%Marginal
EUR/JPY13619%1.02+18.1 R−39%Marginal
GBP/JPY14417%1.00+15.2 R−43%Lost money
USD/SEK14419%0.98+10.1 R−52%Lost money
USD/CHF13019%0.91−5.7 R−48%Lost money
AUD/USD13922%0.88−10.6 R−45%Lost money
USD/CAD14117%0.83−21.2 R−51%Lost money
EUR/SEK14819%0.72−36.0 R−49%Lost money
EUR/GBP15218%0.69−51.9 R−53%Lost money
EUR/NOK15014%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

  • 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.
  • Risk: 1% of the account per trade, one position at a time.

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 builder

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.