What is a moving average crossover?

A moving average smooths price by averaging the last N closes. A crossover strategy plots two of them, a fast one with a short length and a slow one with a long length, and reads the moment they cross. When the fast average crosses above the slow one, recent prices are averaging higher than older ones: a bullish crossover. When it crosses below, a bearish one.

There are simpler and busier versions. A price crossover uses one average and watches price close above or below it. A triple crossover adds a third line and waits for all three to line up. The two-average version is the one most traders mean, and the one this guide uses. For the averages themselves, see the EMA trading strategy guide.

Fast moving average
The shorter average in the pair, such as a 9 or a 50. It follows price closely and turns first.
Slow moving average
The longer average, such as a 21 or a 200. It turns late and shows the broader trend.
Golden cross
A shorter average crossing above a longer one, classically the 50-day above the 200-day on a daily chart. Read as bullish.
Death cross
A shorter average crossing below a longer one, classically the 50-day below the 200-day. Read as bearish.
Whipsaw
A cross that reverses soon after it fires, so a buy is followed by a sell at a worse price. Common when price moves sideways.

SMA vs EMA: which average should you use for crossovers?

A simple moving average (SMA) gives each of its N closes the same weight. An exponential moving average (EMA) gives the newest close the most weight, 2 ÷ (length + 1), and lets older closes fade: 20% for a 9 EMA, about 9.1% for a 21 EMA and about 1% for a 200 EMA. A 21 SMA gives each of its bars about 4.8%.

So EMA crossovers fire sooner, and they also fire more often when price chops. That is why intraday traders mostly cross EMAs, while the golden cross and death cross are classically drawn with simple 50-day and 200-day averages. Pick one type and stick with it, so a cross means the same thing from chart to chart.

In the drawing, a fast EMA hugs price and a slow EMA trails underneath. That order, fast above slow with both rising, is the state a bullish crossover creates. Price pulling back to the fast line and holding it is the trend at work, not a new cross.

Turn your phone sideways to read the drawing. Tap to close.

A hand-drawn uptrend with a fast EMA and a slow EMA: price pulls back to the fast EMA, holds it and prints a buy signal.

Golden cross and death cross: the 50 and 200 on the daily chart

The golden cross is the 50-day moving average crossing above the 200-day, usually with simple averages on a daily chart; the death cross is the 50 crossing below the 200. The 50-day covers about ten weeks of trading and the 200-day about forty, so the cross says the last two to three months have averaged above, or below, most of the past year. The drawing at the top of the page shows both.

Hypothetical: a stock falls to $80 in the spring and recovers. By the time the 50-day crosses above the 200-day, it trades at $98, already more than 20% off its low. Months later it tops at $120 and slides, and the death cross prints at $101, about 16% below the top. Both crosses were right about the direction and late about the timing.

These crosses are widely watched and often make the financial news. Treat them as a slow trend filter for swing traders and investors, not as an entry for a day trade. They also flip back and forth when a market drifts sideways for months.

Common moving average pairs: 9/21 EMA intraday, 50/200 daily

No pair is magic; popular lengths matter mainly because many traders watch them. The trade-off never goes away: a faster pair crosses earlier and gives more false crosses, a slower pair gives fewer false crosses and arrives later. Avoid tuning the lengths until they fit last month's chart, because a pair fitted to the past says little about the next month.

Match the pair to how long you hold, from fastest to slowest:

  • 9 and 21 EMA on a 5-minute chart: a common intraday pair (some use 9 and 20, almost the same thing). The 21 covers 105 minutes of trading. TradingView's built-in MA Cross indicator loads with lengths of 9 and 21.
  • 20 and 50 on a 15-minute to 1-hour chart, or on the daily for swing trades: slower, with fewer and later crosses.
  • 50 and 200 on the daily chart: the golden cross and death cross, a long-term trend filter rather than a trigger.

What a crossover measures, and why it always lags

A cross does not predict a turn; it reports one. Both lines average past closes, and a simple average sits about half its length behind price: a 21-bar SMA reflects prices from roughly 10 bars ago, and a 200-day SMA, prices from about 100 trading days ago. An EMA turns sooner but still averages the past. By the time the fast line overtakes the slow one, price has usually traveled a good distance.

Hypothetical, 5-minute chart: a stock bottoms at $49.80 and turns up. Seven bars later the 9 EMA crosses above the 21 EMA, with price at $50.55. The morning high at $51.20 is the next resistance. Enter at the cross with the stop under the low, at $49.75, and you risk $0.80 to make $0.65: about 1:0.8, a trade a sound plan skips.

That is the real cost of lag: not only a late entry, but a stop that sits far from it. The risk reward ratio guide shows why a trade like that has to win more than half the time just to break even.

Why moving average crossovers whipsaw in ranges

In a range, both averages flatten and wind around price, and every small swing makes them cross. Worse, each cross arrives near an edge of the range: the bullish one after price has rallied to the top, the bearish one after it has dropped to the bottom. You buy high and sell low, again and again.

Hypothetical, 15-minute chart: a stock chops between $48.00 and $49.00 for two days. A bullish cross at $48.80 is followed by a bearish one at $48.25, then $48.70 and $48.30, then $48.85 and $48.20. Three round trips lose $0.55, $0.40 and $0.65: $1.60 a share inside a $1.00 range, before costs.

The warning signs are on the chart: a flat slow average, the two lines a few cents apart and tangled, and price crossing both in both directions. Some traders require a cross to hold for a few closed bars, or to clear the slow line by a set amount; that removes some whipsaws and makes every signal later. Often the better move is to stop reading crosses and trade the range edges as support and resistance, or wait for a breakout. In the drawing, the first chart is buried under arrows, which is what crossovers look like in chop; the second keeps one circled signal at a level.

Turn your phone sideways to read the drawing. Tap to close.

The same hand-drawn chart twice: first buried under buy and sell arrows, then clean, with one circled signal at a level.

Filters that make a crossover worth a look: trend, level, volume

Treat a cross as a question, not an answer: is a new move starting here? These filters decide whether the answer is worth risking money on.

  • Trend. Check the higher timeframes. A bullish 9/21 cross on a 5-minute chart counts more when the 15-minute, 30-minute and 1-hour charts also point up, for example with price above a rising 50 EMA on the 1-hour. Against them, it is usually a bounce. The multi-timeframe analysis guide shows how to pair frames.
  • Level. A cross right after price reclaims support, VWAP or a broken resistance gives the stop a logical place. A cross straight into resistance overhead leaves no room to a target.
  • Volume. A cross on volume above its recent average shows participation; one in thin midday trading often fades.
  • Time. Skip crosses in the first 15 minutes after the 9:30 a.m. ET open, when a 5-minute EMA still mostly reflects yesterday's prices, and in the last 30 minutes, when there is little time left for a move to reach a target.
  • Closed candle. A cross can appear mid-bar and vanish by the close. Act only on closed bars, and set crossover alerts to Once Per Bar Close, as our TradingView alerts guide explains.

Turn your phone sideways to read the drawing. Tap to close.

A hand-drawn 5-minute chart beside three small candles for the 15-minute, 30-minute and 1-hour charts.

Entry, stop, exit and size: a worked crossover trade

Hypothetical, 5-minute chart, with the 1-hour chart above a rising 50 EMA. Price dips to VWAP at $64.20, holds it, and the 9 EMA crosses above the 21 EMA as a candle closes at $64.55, above both lines, on volume above average. You buy at $64.55. The stop goes under the pullback low of $64.00, at $63.95: $0.60 of risk. The target is the prior day's high at $65.80: $1.25 of reward, about 1:2.1.

Size comes from the stop. A $25,000 account risking 0.5% per trade accepts a $125 loss, and $125 ÷ $0.60 = 208 shares; the position size calculator does this math. If the target fills, that is 208 × $1.25 = $260, about +2.1R. Now the failed version, which is common: price stalls at $64.90, a candle closes back below VWAP, and the stop fills at $63.95 for a loss of $124.80, −1R plus costs. Using the opposite cross as your only exit would have been worse: the bearish cross came at $63.70, a $176.80 loss, about −1.4R.

Decide the exit before the entry. The main choices:

  • A fixed target just before the next level, as above. Clear and easy to size, but it caps the trade.
  • The opposite crossover. It can keep you in a long trend, but it gives back a slice of every move because it lags.
  • A trailing stop under each new higher low or under the slow average, acted on at the candle close. A middle ground.
  • Part at the first level, the rest trailed. Set the split in advance, as the stop loss and take profit guide shows.

How to combine crossovers with pullbacks

Many traders use the cross to set a bias and a pullback to time the entry. After a bullish cross, they wait for the first orderly pullback to the fast or slow average, then buy when a candle closes back up. The stop goes just under the pullback low, close to the entry, and the first target is the prior swing high. The pullback trading strategy guide covers telling a healthy pullback from a reversal.

Back to the lag example: price clears the $51.20 morning high and runs to $51.60. It then drifts back in small candles on lighter volume to the 21 EMA, with a low of $50.95, and a candle closes back up at $51.15. Buy at $51.15 with a stop at $50.90: $0.25 of risk against $0.45 to the swing high, about 1:1.8. Buying the cross at $50.55 meant risking $0.80, more than three times as much per share.

If the pullback fails, a candle closes below the 21 EMA and the pullback low, the stop takes a −1R loss, and the 9 EMA often crosses back below the 21 a few bars later: the cross was a false start. UpTickFlow, our invite-only TradingView indicator, does not read crossovers. It covers what surrounds them: it waits for a candle to close at a level, draws the entry, stop and target before the trade, scores each setup from 0 to 100 and stays quiet in chop. Use it as a second check, not a scanner. See how it works.

Turn your phone sideways to read the drawing. Tap to close.

A hand-drawn uptrend that pulls back in small, orderly candles, then closes back up with a buy signal; the target is marked at the prior swing high.