- Home /
- Strategies /
- EMA Crossover Strategy: 9 and 21

EMA Crossover Strategy: 9 and 21
An EMA crossover strategy using the 9 and 21 EMAs to capture short- to medium-term trends with clear, mechanical rules.
Overview
The 9/21 EMA crossover is a faster, more responsive cousin of the classic dual moving average system. The 9 EMA tracks short-term momentum while the 21 EMA defines the intermediate trend. When the fast line crosses above the slow, momentum is accelerating up; when it crosses below, momentum is rolling over. Rules are mechanical and easy to follow.
Setup
- Instruments: forex majors, liquid stocks, index ETFs, large-cap crypto
- Timeframe: 1H, 4H, or daily
- Indicators: 9 EMA, 21 EMA, ATR(14)
- Market regime: trending — avoid in flat, ranging markets where EMAs whipsaw
A tradable setup needs the EMAs to separate cleanly after a crossover, not crab sideways in a tight knot.
Entry rules
- Wait for the 9 EMA to close above the 21 EMA (long) or below it (short)
- Confirm the crossover bar closed in the direction of the cross
- Enter on the next bar's open, or on a small pullback to the 9 EMA for a safer entry
- Skip the trade if the 21 EMA is flat — the market is not trending
Stop loss
- Stop = 1.5 × ATR(14) below entry for longs, above for shorts
- Alternative: just beyond the swing low/high of the crossover bar
- Move the stop to break-even once price reaches 1R
Use the stop loss calculator to set the level.
Take profit
- First target: 2R, take half off
- Trail the remainder beneath the 21 EMA; exit fully when the 9 EMA crosses back below the 21 EMA
- In strong trends, hold the runner until the 21 EMA flattens
Confirm the target with the risk-reward calculator.
Risk management
- Risk 1% of account equity per crossover
- Position size = risk amount ÷ (entry − stop). Verify with the position size calculator
- Maximum two open crossover trades on correlated instruments
- After three consecutive whipsaw losses, reduce size by half — the regime has turned choppy
When it fails
EMA crossovers fail in ranging markets, where the 9 and 21 EMAs tangle and cross repeatedly without follow-through. Each false cross costs a stop. If you see three or more crosses with no follow-through in a session, the EMAs are noise — stand aside until a clean separation appears.
Backtest Results
Hypothetical backtest — past performance does not guarantee future results. These numbers are illustrative, not a promise. Always forward-test on demo before live trading.
Test parameters:
- Instrument: GBP/USD and EUR/USD
- Timeframe: 4H
- Period: 2020-01-01 to 2025-12-31 (5 years)
- Risk per trade: 1% of account
- Commission/slippage: included
| Metric | Value |
|---|---|
| Total trades | 360 |
| Win rate | 40% |
| Average win | +2.6R |
| Average loss | -1.0R |
| Expectancy | +0.44R |
| drawdown" class="glossary-link">Max drawdown | 23% |
| Annualized return | 20% |
| Profit factor | 1.7 |
| Best trade | +7.0R |
| Worst trade | -1.5R |
| Avg trades/month | 6 |
What the numbers mean
The 40% win rate is the cost of mechanical crossovers — every regime shift produces whipsaw losses before a real trend develops. The 2.6R average win shows the payoff when a trend does stick; the trailing exit on the 21 EMA captures most of the run. The 23% drawdown is the price of holding through chop.
Weaknesses to watch
- Whipsaw clusters in ranging markets produce 5-7 loss streaks that test discipline before the next real trend
- The break-even move at 1R locks in scratches on trades that would have become winners
- Crossovers lag; entry is late by definition, giving back the first leg of every move
How to use this data
Use these numbers as a baseline expectation. If your live results are significantly worse after 50+ trades, something is off — either the market regime changed, or your execution differs from the backtest. Do NOT scale position size based on backtest optimism.
My Notes
Log in to save notes on this article and share them with the community.
Strategy is for educational purposes only. Not financial advice.
Related
Building a Trading Strategy
Turn scattered setups into a real strategy. Entries, exits, stops, backtesting, and iteration.
blogCurrency Pair Classification: Majors, Minors, and Exotics
Compare major, minor, and exotic currency pairs by liquidity, spread, and volatility to pick instruments that match your strategy and risk.
blogReading the Economic Calendar: NFP, CPI, Rate Decisions, and PMI
Read the economic calendar for NFP, CPI, central bank decisions, and PMI so volatility events become planned trades, not accidents.
Related Glossary Terms
Moving Average
technical-analysisA line showing the average price over a set number of periods, which smooths out noise and makes the trend easier to see.
SMA
technical-analysisSimple Moving Average: the plain average of closing prices over a set period, where every day counts equally.
EMA
technical-analysisExponential Moving Average: a moving average that gives more weight to recent prices, so it reacts faster to new price moves than the SMA.
Read next
Dual Moving Average Crossover Strategy (Beginner Edition)
One of the most classic trend-following strategies. Simple rules, easy to execute, ideal for beginners trading stocks or crypto on daily timeframes.
Read more →