WhitmanTrading

What Is a Moving Average?

A moving average is the average closing price over the last set number of bars, recalculated on every new bar. It smooths price into a single line. The slope of that line describes the trend, and because it moves with price it also acts as a level that shifts over time.

What Is a Moving Average? — illustrated on a chart Watch me use the 20-day as a level (15:03)

The most used indicator on any chart, and the one whose actual behaviour is most often misdescribed. The calculation takes one sentence; the three things worth knowing about it take this page.

How it works

A moving average is the average of the last N closing prices, recalculated on every bar.

A candlestick chart with a single smooth blue line running through it, labelled as the average of the last ten closes.
A ten-bar average. Add the last ten closes, divide by ten, plot the result, repeat. Illustrative chart - not real market data.

On a ten-period average, each point on the line is the mean of the ten closes up to that bar. Next bar, the oldest close drops out and the newest one enters. That is the whole mechanism — no prediction, no model, an arithmetic mean on a rolling window.

Which means it can only ever describe what has already happened.

It is always behind

The same chart showing price turning upward several bars before the moving average line turns.
Price turns, and the line turns several bars later. Every time.

The lag is not a flaw to be tuned out — it is what smoothing is. An average of the last ten closes contains nine closes that are not the current one, so it must trail. Any setting that removes the lag also removes the smoothing, and then you are just looking at price again.

The useful consequence: the average tells you where price has been centred, which is a genuinely different question from where it is now.

Length changes what it ignores

The same chart with a fast ten-period average and a slow thirty-period average drawn together.
Ten follows the pullback. Thirty does not notice it.

A short average tracks price closely and reacts to everything, including noise. A long one is smoother and slower.

Neither is more accurate. They answer different questions: the short one asks what has happened lately, the long one asks what has been true for a while. Choosing a length is choosing which moves you want to be invisible.

Simple against exponential

A twenty-period simple average and a twenty-period exponential average drawn on the same chart.
Same length, different weighting. The exponential one turns first.

A simple moving average weights every close in the window equally. An exponential one weights recent closes more heavily, so it turns sooner.

That is the entire difference, and it is a trade rather than an upgrade: turning sooner means turning sooner on moves that do not continue, too.

What to actually read off it

The slope

The same average shown flat through a sideways stretch and rising through a trending stretch.
Flat, then rising. The angle is the information.

A rising line means recent closes are higher than older ones. A flat line means they are not, whatever the price is doing at this second. The slope is the single most useful reading on the indicator and it needs no settings at all.

Its position, as a level

Price pulling back to touch the thirty-period average and turning away from it.
The pullback stops near the line. A level that moves.

Because so many people watch the same lengths, price often stalls at them — the same crowding mechanism behind support and resistance, except this level moves.

The crossover, honestly

A fast average crossing above a slow average partway up a rising move.
The fast line crosses above the slow one. This is the classic signal.

When a fast average crosses above a slow one, the recent average has moved above the longer-run one. It is a statement about two averages, not about the market.

Worth knowing where this leads: subtract one of these averages from the other and plot the result, and you have MACD. It is not a separate idea, it is this one drawn a different way.

The same crossover with the distance between the low and the cross shaded, showing the move already underway.
The low was well before the cross. The shaded stretch is the part it missed.

Here are the real numbers from that chart, since the averages on this page are computed rather than drawn. The move began at 98.74 and ran to 101.64 — a range of 2.90. The cross fired at 99.55.

So the signal missed 0.81, about 28% of the move, and was still in for the remaining 72%.

That is more favourable than the usual “crossovers are always too late” line, and it is worth stating plainly rather than pretending otherwise. The problem with crossovers is not this chart. It is the next one.

A worked example

Read the trend chart left to right, using the slope and the level rather than the cross.

The falling stretch. Price is below the thirty-period average and that average is pointing down. Both readings agree, and the useful conclusion is a negative one: this is not a place to be looking for longs. Most of what an average does for you is rule things out.

The flat stretch. Price crosses back and forth through the line and the line goes sideways. A flat average is a real reading, not a missing one — it says there is no trend to be in. Crossovers here are the eight-crossing chart further down.

The turn. The average starts to rise and price holds above it. Now the two readings agree again, in the other direction.

The pullback. Price comes back and stalls near the line. This is the moment the average is actually useful — not because it predicted anything, but because it gave a moving level to watch, and price arrived at it while the slope was still up.

What it never gave you was a stop. The line moves every bar, so “below the average” is a different price tomorrow. The invalidation has to come from a fixed level — a swing low from market structure, or a level you already drew.

The original data

Across our study of 24,971 trading videos, 819 cover moving averages. The median one gets 4,868 views, 78% never pass 50,000, and the median length is 9.7 minutes.

The corpus carries description text for 236 of those 819, and across those 236, two mention invalidation, failure, or what a bad read looks like.

When it fails

The same two averages tangled together through a sideways range, crossing repeatedly.
The same two averages in a range. The count on the chart is measured, not estimated.

This is the actual problem with crossovers. In a range the two averages sit on top of each other and cross constantly — eight times on this chart, and none of them started a trend.

A moving average is a trend-following tool. It has nothing to say about a market that is not trending, and it will keep producing signals anyway.

You are using it as a prediction

The line is an average of the past. It has no forward-looking component of any kind, so a crossover is a report that something already happened. It is a description, and reading it as a forecast is the commonest mistake on the indicator.

You found the settings afterwards

The chart cut off two bars after the crossover, with no further price action visible.
Two bars after the cross. Trend or whipsaw is not visible here.

Any pair of lengths can be tuned until it caught the moves on a chart you have already seen. The honest test is whether the same pair works on a chart you have not.

Market structure is the natural pair — the average tells you a trend exists, and structure tells you the price at which it stops existing.

Support and resistance is where the “moving level” idea comes from, and the fixed version is easier to trust because it does not shift under you.

And risk management is what turns a crossover into something you can act on, because on its own it does not tell you where to be wrong.

What I actually do

I use these as levels far more than as signals. On a live chart I will point at the 20-day and say that is our support here - that is the actual job it does for me, a level that moves. The one crossover-adjacent thing I do watch is clustering: when a set of averages bunches tightly together I expect a bigger move out of it, and that is not a direction call, just a warning that the quiet part is ending. I do not take a cross on its own as a reason to do anything.

— Michael Whitman, from this video

This page is educational, not financial advice. Test every idea on your own charts before risking money.