WhitmanTrading

Moving Average Crossover: Count the Crosses

A moving average crossover is the moment a shorter-period average moves through a longer one, treated as a change in trend. The gap between the two periods decides how many signals the system produces, and on identical price data a fast pair can produce many times as many signals as a slow one.

Covered on this page: TradingView.

How it works

Put two moving averages of different lengths on a chart. When the shorter one moves from below the longer one to above it, that is a bullish crossover; the other way round is a bearish one.

The logic is that the short average summarizes recent price and the long one summarizes older price, so a cross means recent has overtaken older. That is a fair description of what the event is.

An illustrative price series, volume beneath, 1 marked level, on the terms page (mac-late).
The cross always arrives after the price cross. Illustrative chart - not real market data.

What it is not is new information. For the short average to cross the long one, price has to have crossed both of them first — the averages are computed from price, so they cannot lead it. Every crossover is a delayed, smoothed confirmation of a move you could have seen on the chart earlier.

That delay is the trade being made. You accept lateness in exchange for filtering out moves that did not persist long enough to drag the averages through each other.

The number that decides everything: how many crosses

Take a hypothetical year of 250 daily bars on which a 20/50 pair of simple averages crosses 5 times — one signal every 50 bars.

Suppose a 5/10 pair on exactly the same bars crosses 25 times — one every 10 bars.

And a 50/200 pair might cross once, or not at all. Same market, same period, same price action: 25 decisions, or 5, or 1.

That range is the whole system. Before you have any view on whether crossovers work, the setting you choose has already decided how often you will trade, how much you will pay in costs, and how much screen time the method demands. Those are the consequences you can know in advance — unlike the results, which you cannot.

Intermediate pairs such as 9/21, 10/30 and 50/100 fill in the curve between them. Wider separation means fewer signals, and a count on almost any instrument shows the same ordering.

In practice: what the filter actually filters

Most people guess that daily closes come in long streaks; in fact the S&P 500 closed up on 53.1% of trading days since 1950, close to a coin toss, and for a fair coin the average run of one outcome is just two tosses. A 5-period average is summarizing a window barely longer than a typical run, which is why fast pairs cross so often: they are tracking noise at the scale noise occurs at.

Here is the part that is usually skipped. Lengthening the averages removes signals — but it removes them from both ends of the distribution. The whipsaws go, and so do the early entries into the moves that worked. A slower system is not a more accurate one; it is a smaller one.

Which means “use longer averages to avoid whipsaws” is only half a sentence. The full version is “use longer averages to trade less often, accepting later entries, in exchange for fewer reversals” — and whether that is a good trade depends on things a crossover system cannot see.

No crossover looks at volume, news, session, or anything except two summaries of past closes. It is one of the purest examples of a system operating on a single input, which is worth knowing before adding a second indicator that is also computed from closes and calling it confirmation.

A gap can complete a cross overnight, so the signal appears at a price you could never have transacted at. Backtests that assume entry at the signal bar’s close quietly overstate what a real account would have got.

Most crossover systems exit on the opposite cross, which means giving back the whole turn every time. The exit is as late as the entry, by symmetry. Adding a separate stop fixes that and turns the system into two systems with two sets of assumptions.

Each signal pays a round trip in spread and commission. On a $10,000 account paying $10 a round trip, five crosses a year cost $50 and twenty-five cost $250 for the same underlying moves, which is a cost difference you can compute before choosing a setting rather than discovering afterwards.

What a crossover is not

It is not a leading indicator. Both lines are built from closes that already happened.

It is not two pieces of evidence. Two averages of one price series are one measurement expressed twice, which the confluence page treats in detail. A cross is a single fact about the shape of recent price.

It is not the same system on every timeframe. The count depends on the ratio of periods and the character of the bars, so a 20/50 on a five-minute chart and a 20/50 on a daily chart are different systems that happen to share a label.

And it is not a complete method. It has an entry and an exit. It has no position sizing, no risk per trade, and no rule for what to do in the conditions it handles worst.

How this connects

A crossover is two moving averages compared, so everything true of a moving average is true twice here. Both lines are summaries of past closes.

The gap between the periods sets everything. A close pair crosses constantly; a wide pair like 50 and 200 crosses rarely, and the named versions - the golden cross and the death cross - are just that wide pair with headlines attached.

The lag is structural, not a tuning problem. An average cannot move until the bars that move it have printed, so the cross always confirms.

It works better as a filter than a trigger. Used to decide which direction you will take trades in, the lateness stops mattering; used as an entry, it is the whole problem.

And the cost of acting on each cross is the bid-ask spread plus slippage, paid whether the signal was right or not.

Simple, exponential, and whether it matters

A simple average weights every bar equally. An exponential one weights recent bars more, so it turns sooner.

That difference is smaller than it is usually sold as. The exponential version crosses a little earlier and whipsaws a little more, which are the same property seen from either end.

Neither is correct in general. Faster response and fewer false signals are in direct tension, and no averaging method escapes that trade - it only moves along it.

Where the choice genuinely matters is consistency. Two people comparing notes on a 50-and-200 cross may be looking at different days if one runs exponential and the other simple.

So pick one, write down which, and leave it. The gain from switching is far smaller than the loss from not knowing which version produced the signal you acted on.

When it fails

In a range the two lines braid. Price oscillates around a mean, both averages sit near that mean, and they cross repeatedly with no move in between to pay for the costs. This one regime accounts for most of what crossover systems lose.

The second failure is the period search. Testing dozens of pairs on one history and keeping the best is fitting to that history. The 20/50 that looks best on one stretch of history was chosen from a menu of options that all had similar prior claims, and the winner is largely the luckiest.

A third is asymmetric attention. People remember the cross that caught a large move and forget the eleven that did not, which is how a system with a low hit rate feels reliable.

A fourth is stacking crossovers. Requiring a 5/10 and a 20/50 to agree does not add independent evidence — it just delays the signal until the slower pair fires, which is the same as trading the slower pair on its own.

And a fifth is changing the pair after a losing streak. The system did not break; the market changed regime. Switching to the pair that would have worked over the last three months is optimization dressed as adaptation.

The original data

The market a crossover runs on is mostly noise at the daily scale: from 1950 to 2026, 53.1% of S&P 500 trading days closed up and 46.9% did not, while 59% of ten-day windows finished higher. The drift a slow pair is trying to catch shows up only over longer horizons, which is the real reason fast pairs cross so much more often than slow ones.

An illustrative price series, volume beneath, 1 marked level, labeled 'here', on the terms page (mac-hindsight).
The cross fired yesterday and price is up. Enter? Illustrative chart - not real market data.

Run this count on your own instrument before you run a backtest on it. The number of crosses per year is knowable in advance, it is the input to your cost estimate, and it is the one property of a crossover system that does not depend on any assumption about whether crossovers work. A pair that hands you a decision every ten bars is a different life from one that hands you three a year, and that difference is decided by the setting, not by the market.

Golden cross is the specific 50/200 case, and the one with the fewest events behind it on any chart. Simple moving average explains what each line is actually computing. And trend following is the approach a crossover system is a crude implementation of.

Death cross runs the 50/200 pair on the S&P 500 since 1950 and compares each cross with an ordinary day.

What I actually do

I count the crosses before I pick a pair of averages. One pair will ask you for a decision every ten bars and another will ask a few times a year, and that count is the cost of running it. Choosing without looking at the count is choosing a cost blind.

— Michael Whitman

This page is educational, not financial advice. Test every idea on your own charts before risking money. Some links on this page earn a commission if you buy through them. It costs you nothing and it does not decide what appears here or in what order — how these pages are made is set out in our methodology.