The EMA crossover strategy is one of the first systems most traders try: buy when a fast moving average crosses above a slow one, sell when it crosses below. Simple. The problem is that a plain crossover gets chopped to pieces whenever the market goes sideways.
The fix is not a secret indicator. It is a trend filter and a little patience on the entry. Below is a complete 9/21 EMA crossover system with a 200 EMA filter, clear stop-loss and take-profit rules, and a checklist for testing it yourself.
Key takeaways
- Use the 9 and 21 EMA for entries and the 200 EMA to decide direction.
- Only trade crossovers in the direction of the 200 EMA.
- Wait for the first pullback after the cross instead of chasing the crossover candle.
- Skip the strategy when the 200 EMA is flat and price keeps crossing it.
Why use EMAs instead of simple moving averages?
An exponential moving average (EMA) gives more weight to recent prices, so it reacts faster than a simple moving average (SMA) of the same length. For crossover trading that faster reaction means earlier entries, which matters when you are trying to catch the start of a trend.
The setup
| Item | Setting |
|---|---|
| Fast EMA | 9 (close) |
| Slow EMA | 21 (close) |
| Trend filter | 200 EMA |
| Volatility | ATR 14 (for stop placement) |
| Timeframes | H1 for day trading, H4 for swing trading |
| Pairs | Liquid majors with low spreads, e.g. EUR/USD, GBP/USD, USD/JPY |
| Sessions (H1) | London and New York |
Buy rules
- Direction: price is above the 200 EMA and the 200 EMA is rising.
- Signal: the 9 EMA crosses above the 21 EMA.
- Patience: do not buy the crossover candle. Wait for the first pullback into the zone between the 9 and 21 EMA.
- Entry: buy when a bullish candle closes after touching that zone.
- Stop-loss: below the pullback low, or 1.5 × ATR(14) below entry, whichever is further.
- Take-profit: close half at 2R (twice your risk) and trail the rest. Exit fully when a candle closes below the 21 EMA.
Sell rules
- Price is below a falling 200 EMA.
- The 9 EMA crosses below the 21 EMA.
- Wait for the first pullback up into the 9/21 EMA zone.
- Sell when a bearish candle closes after touching the zone.
- Stop above the pullback high or 1.5 × ATR above entry.
- Close half at 2R and trail the rest; exit when a candle closes above the 21 EMA.
The filter that removes most bad trades
Crossover systems lose money in sideways markets. Before every trade, check:
- Is the 200 EMA sloping? If it is flat, the market has no clear direction. Skip.
- Has price crossed the 200 EMA several times in the last 50 candles? That is a range, not a trend. Skip.
- Optional: if you use ADX(14), only trade when it is above 20.
You will take fewer trades, but the ones you take will be in conditions where moving averages actually work.
Example: how the risk works
This is an illustration, not a real trade. Say EUR/USD is above a rising 200 EMA on H1, the 9 EMA crosses above the 21 EMA, and price pulls back to the EMA zone. A bullish candle closes at 1.1050. The pullback low is 1.1030, so the stop goes just below it: about 20 pips of risk. A 2R target is 40 pips away at 1.1090.
If your account is $1,000 and you risk 1%, you can lose $10 on this trade. With a 20-pip stop, that is roughly 0.05 lots on EUR/USD. Our position sizing guide shows the full calculation.
Testing checklist
- Pick one pair and one timeframe.
- Scroll back on the chart and mark at least 50 setups that follow every rule.
- Record entry, stop, target, result in R, and whether the trend filter was clearly met.
- Calculate your win rate and average R. A strategy can be profitable with a win rate below 50% if winners are larger than losers.
- Demo-trade it for a few weeks before considering real money.
Common mistakes
- Entering on the crossover candle when price is already far from the EMAs.
- Trading against the 200 EMA because “it looks like a reversal”.
- Using the system during major news releases when spreads widen.
- Moving the stop further away when a trade goes against you.
Want a momentum check on top of the EMAs? The MACD zero line or an RSI pullback into 40–50 can confirm that the trend is still healthy.
EMA crossover strategy FAQ
Which EMA crossover is best?
The 9/21 crossover is popular for H1 day trading. Swing traders often use 20/50, and longer-term traders watch the 50/200. There is no perfect pair; consistency and a trend filter matter more.
What is the best timeframe for an EMA crossover strategy?
H1 and H4 tend to work better than very low timeframes, where noise creates many false crosses. Beginners usually find H4 easier because there is more time to think.
Does this strategy work on gold or crypto?
The logic works on any trending market, but gold and crypto are more volatile. Use ATR-based stops and smaller position sizes, and test the rules on each market separately.
This article is for education only and is not financial advice. Example figures are illustrative, not real results. Trading Forex carries a high risk of loss. Read our Risk Disclaimer.