The EMA Crossover Strategy: 9/21 Crosses With a 200 EMA Filter

How the 9/21 EMA crossover strategy works, why a 200 EMA trend filter cuts false signals, exact rules, stops and live paper trading on BTC and gold.

Bitcoin 1-hour candlestick chart with the 9, 21 and 200 EMAs and arrows where the crossover rule fired
Real recent price data. Arrows mark where this strategy's entry rule fired.
Update, 12 October 2026: the bots that traded this strategy were retired after a six-month test showed they lost money after trading costs. This guide stays up as education, and their full records remain public. See the test.

The moving average crossover is one of the first strategies many traders learn, and one of the most tested in history. An exponential moving average (EMA) weights recent prices more heavily, so it reacts faster than a simple average. When a fast EMA crosses a slow one, momentum is shifting.

How EMA crossovers work

Our bot uses the 9 EMA (fast) and the 21 EMA (slow). When the 9 crosses above the 21, short-term momentum has turned up; a cross below means it has turned down.

The whipsaw problem

In a sideways market, the two EMAs cross back and forth constantly, producing loss after loss. This "whipsaw" is the biggest weakness of crossover systems. The fix is a filter that only allows trades in the direction of the larger trend.

The entry rules

  • Long: the 9 EMA crosses above the 21 EMA on a closed 1-hour candle, and price is above the 200 EMA.
  • Short: the 9 EMA crosses below the 21 EMA, and price is below the 200 EMA.
  • Crosses against the 200 EMA trend are ignored.

Exits

  • Stop-loss: 1.5 × ATR(14) from entry.
  • Take-profit: 3 × ATR(14) from entry.
  • Trailing stop: once the trade is 1.5 × ATR in profit, the stop follows the best price at 1.2 × ATR and only ever moves in the trade's favour.

ATR (Average True Range) measures how far price normally moves per candle, so every stop and target adapts to current volatility. That keeps risk comparable between Bitcoin and gold, and between quiet and busy markets.

A worked example

Gold is above its 200 EMA at 4,140. After a dip, the 9 EMA crosses back above the 21 EMA as an hourly candle closes at 4,186. The bot buys at 4,186, with a stop 1.5 × ATR below and a target 3 × ATR above.

Crossover exits: classic vs ours

Classic crossover systems exit on the opposite cross, which often gives back a large part of the profit. Our bot uses an ATR take-profit and a trailing stop instead, locking in gains as the trend develops.

Common mistakes

  • Trading every cross without a trend filter.
  • Endlessly optimising the EMA lengths to fit past data.
  • Expecting a high win rate. Trend systems win less than half the time and rely on bigger winners.

How our bot trades it live

We run these exact rules on BTC/USD and XAU/USD (gold) using 1-hour candles, each with a virtual $10,000 account. Gold only trades during regular gold market hours. Every entry, stop change and exit is logged the minute it happens. Every trade shown is a live paper trade, never a backtest, and none is edited or deleted. The live numbers are below.

Frequently asked questions

What are the best EMA settings for a crossover?

Popular pairs include 9/21, 12/26 and 50/200. Our bot uses 9/21 on 1-hour candles, filtered by the 200 EMA.

Why use EMA instead of SMA?

An EMA gives more weight to recent prices, so it reacts faster to changes in momentum than a simple moving average.

What is the 200 EMA used for?

It is a widely watched long-term trend line. Trading only in its direction reduces false crossover signals.

Is the EMA crossover strategy profitable?

It tends to do well in trending markets and poorly in ranges. Our live results show how it is performing right now.

Live results

Real paper-trading results from BTC EMA Trend and Gold EMA Trend, updated every minute. Every result here is a live paper trade, never a backtest.

These are simulated paper trades with a virtual $10,000 account per strategy. They don't include spreads or slippage, and past performance does not guarantee future results. This guide is education, not investment advice. Full disclaimer.

More strategy guides