Stage 3 · Lesson 14

Moving averages — smoothing has a price, and the price is delay

By ยท Published

Quick answer. A moving average is the average price of the last N bars, redrawn as each new bar closes. It smooths the chart by throwing away recent detail, so it always sits behind the market — on average by (N − 1) ÷ 2 bars, which is 99.5 bars for a 200-period line and exactly the same for a 200-period EMA. It is a description of what price has already done, not a forecast of what it will do next.

Almost every chart you open has a moving average on it, and almost every explanation stops at “it smooths price and shows you the trend”. That sentence is true and useless. The interesting questions all have exact answers: how far behind is the line, is an EMA genuinely faster than an SMA, and why does the average sometimes turn down on a day price closed higher? This lesson answers all three with arithmetic you can reproduce in a spreadsheet in about ten minutes — and one of the answers contradicts what almost every guide tells you.

Explainer graphic of a level beam carrying ten equal teal blocks on one side and a descending gold staircase of ten blocks on the other, each group balanced on its own fulcrum at the same distance from centre - two different weighting shapes with identical average lag

KEY TAKEAWAYS

What does a moving average actually calculate?

It calculates the average of the last N closing prices, and then does it again when the next bar closes. That is the whole idea. A 20-period simple moving average on a four-hour chart is the mean of the last twenty four-hour closes; when bar 21 arrives, bar 1 drops out and the mean is recomputed.

Two words are worth pinning down before anything else. The length (or period) is N, the number of bars in the window. The weighting is how much each of those bars counts. Those two choices are the entire design space, and they produce the two families you will meet:

Notice what is absent from both definitions. Neither one contains any information that was not already on the chart, and neither refers to the future in any way. A moving average is a filter: it takes the price series in and returns a smoother version of the same series. Everything a moving average “says” is a restatement of prices you could already see.

That is not a criticism. A filter is genuinely useful, because raw price contains a great deal of movement that means nothing and it is hard to ignore by willpower alone. But a filter has a cost, it is always the same cost, and it is measurable. The rest of this lesson measures it.

How far behind price does a moving average sit?

By exactly (N − 1) ÷ 2 bars, on average. That is not an estimate or a rule of thumb; it falls straight out of the definition, and it is the single most useful number in this lesson.

Here is the reasoning in one line. An N-bar simple average is the mean of bars whose ages are 0, 1, 2, … up to N − 1 bars old, each counted equally. The mean of those ages is (N − 1) ÷ 2. So the line is reporting, on average, where price was that many bars ago.

How far behind price each moving average sits, on averageA ladder of average lag for five moving average lengths. A 10 period average lags price by 4.5 bars, a 20 period by 9.5 bars, a 50 period by 24.5 bars, a 100 period by 49.5 bars and a 200 period by 99.5 bars. The rule is that average lag equals length minus one, divided by two, and it holds for exponential averages of the same length as well as simple ones. On a daily chart the 200 period average is therefore about 99.5 days behind price. Choosing a length is choosing how much delay to accept; there is no setting that removes it.Average lag = (length - 1) / 210-period4.5 barson a daily chart, about 4.5 days behind price20-period9.5 barson a daily chart, about 9.5 days behind price50-period24.5 barson a daily chart, about 24.5 days behind price100-period49.5 barson a daily chart, about 49.5 days behind price200-period99.5 barson a daily chart, about 99.5 days behind priceThe same formula holds for the EMA of that length. Length is a delay budget, not a setting to optimise.
Average lag is (length − 1) ÷ 2, and the identity holds for the EMA of the same length too. A 200-period line on a daily chart is reporting, on average, where price was over three months ago.

Read that ladder as a menu of delays rather than a menu of settings. Choosing 200 instead of 50 is not choosing a “better” average; it is choosing to accept 99.5 bars of delay instead of 24.5 in exchange for a steadier line. Neither is free, and no combination of settings makes the delay go away, because the delay is the smoothing.

Now the part that changes how you use the line. In a trend, that delay converts into a distance, and the distance is constant.

Take a deliberately simple model: price rises by exactly $50 every bar. Because the trend is steady, the average is always the same fixed amount below price — the lag in bars multiplied by the movement per bar.

AverageLag in barsGap = lag × $50Value when price is $50,000Gap as % of price
20-period9.5$475$49,5250.95%
50-period24.5$1,225$48,7752.45%
200-period99.5$4,975$45,0259.95%
Our own worked model, price rising exactly $50 per bar. Reproduce any row by multiplying the lag by $50 and subtracting from $50,000.
In a steady trend the moving average settles a fixed distance behind priceEighteen bars of a worked model in which price rises exactly 50 dollars per bar, from a close of 49,150 dollars up to 50,000 dollars. A 20 period simple moving average is drawn as a straight teal line running exactly parallel to the candles and 475 dollars below them. The gap is not a coincidence: a 20 period average has an average lag of 9.5 bars, and 9.5 bars multiplied by 50 dollars per bar is 475 dollars. Two dashed horizontal levels mark the final price at 50,000 dollars and the moving average at 49,525 dollars. The average never catches up while the trend continues, and it never crosses price, so waiting for price to come back to the average means waiting for the trend to change rather than for a better entry.$50,000 price$49,525 20-SMA20-SMA
The 20-SMA runs exactly parallel to price, $475 below it — 9.5 bars of lag × $50 a bar. At the last bar that is price $50,000 against a 20-SMA of $49,525, the two dashed levels marked on the right of the chart. It is not converging on price and it never will while the trend holds its pace. (On a narrow screen, scroll the chart sideways to see those two labels.)

The consequence is worth saying slowly, because it quietly wrecks one of the most repeated pieces of chart advice. While that trend continues at that pace, price never reaches the 200-period average. It cannot: the two lines are parallel, separated by a permanent $4,975. “Wait for a pullback to the 200 MA and buy there” is therefore not a patient entry technique. It is a request for a roughly 10% correction — that is, for the trend you wanted to join to be interrupted first.

Where this reasoning has limits: real trends are not linear, so the gap breathes rather than staying pinned at one number, and in a market that accelerates the gap widens further while a stalling market lets price drift back to the line without any reversal at all. The exact $4,975 belongs to the model. The direction of the effect — longer average, larger permanent gap, deeper pullback required to touch it — holds on every chart you will ever open.

Is an EMA really faster than an SMA of the same length?

No — not in average lag, which is the sense in which almost everyone means it. A 200-period EMA and a 200-period SMA are both 99.5 bars behind price on average. They are not approximately equal. They are equal.

This surprises people, so here is why it is true rather than a coincidence. In an EMA, a bar that is k periods old carries a weight of α(1 − α)k. Average the ages under those weights and the sum collapses neatly to (1 − α) ÷ α. Now substitute the standard smoothing factor α = 2 ÷ (N + 1):

(1 − α) ÷ α  =  (1 ÷ α) − 1  =  (N + 1) ÷ 2 − 1  =  (N − 1) ÷ 2

Which is the SMA’s lag exactly. The 2 ÷ (N + 1) formula that every platform ships is not arbitrary — it was chosen to make an EMA of length N carry the same average delay as an SMA of length N, so that the two are comparable. The convention people cite as proof that the EMA is faster is the very convention that makes it equally slow.

A 200 period EMA and a 200 period SMA have identical average lagA side by side comparison of a 200 period simple moving average and a 200 period exponential moving average. Both have an average lag of 99.5 bars behind price, which is the same number, because the standard exponential smoothing factor of two divided by length plus one is chosen precisely so that the two match. The simple average puts 0.500 percent of its weight on the newest bar while the exponential average puts 0.995 percent, almost exactly double, so the exponential line reacts sooner to a single shock. The simple average gives exactly zero weight to data older than 200 bars, while the exponential average gives old data a small weight that never quite reaches zero. The simple average jolts when a bar drops out of its window; the exponential average has no window so it cannot jolt. The difference between them is the shape of the weighting, not the speed.200-period SMA200-period EMAAverage lag behind price99.5 bars99.5 barsWeight on the newest bar0.500%0.995%Weight on data 200 bars oldexactly zerosmall, never zeroReaction to one shock barone step, then flatbiggest at once, then fadesBar leaving the windowjolts the lineno window, no joltLine ever forgets old datayes, after 200 barsno, only shrinks itSame average lag, different weighting shape. 'Faster' describes the first bar only.
Every row differs except the first — and the first is the one people mean when they say “the EMA is faster”. The real differences are the newest-bar weight and whether the line has a window at all.

So what does differ? The shape of the weighting, and it differs in two ways that matter.

The newest bar counts about twice as much. A 200-period SMA gives today 1 ÷ 200 = 0.500% of the total weight. A 200-period EMA gives today α = 2 ÷ 201 = 0.995%, a ratio of 1.99. If one shock bar prints, the EMA moves roughly twice as far on that first bar. That is the grain of truth inside “the EMA is faster”, and it is a statement about one bar, not about the average position of the line.

The EMA never forgets. An SMA has a hard edge: data 201 bars old counts for exactly nothing. An EMA’s weights shrink towards zero but never reach it, so a spike from a year ago is still in there, faintly. Whether that is a feature or a bug depends entirely on whether you think a year-old bar should still be voting.

The illustration at the top of this page is the whole result in one picture: ten equal blocks and a tapering staircase are obviously different arrangements, and they balance at exactly the same point. That balance point is the average lag. The SMA and the EMA of one length share it while looking nothing alike.

The practical read: swapping an SMA for an EMA of the same length is a change of texture, not a change of speed. If a rule only works after that swap, you have found a coincidence, not an improvement. If you genuinely want less delay, shorten the length — and pay for it with a line that changes its mind more often.

Why did my moving average turn down on a day price went up?

Because a simple moving average does not respond to today’s bar alone. It responds to the difference between the bar arriving and the bar leaving. Written exactly:

SMAtoday − SMAyesterday  =  (closetoday − closeN bars ago) ÷ N

Every term on the right is knowable in advance except today’s close. If the price that is about to fall out of the window is higher than today’s price, the average falls — whatever today’s candle did.

AverageToday’s closeClose leaving the windowChange in the lineWhat it looks like
50-period$50,000$52,500−$50.00“The 50 has rolled over”
50-period$50,000$51,000−$20.00Line drifting down
20-period$50,000$51,200−$60.00Sharp-looking turn
200-period$50,000$44,000+$30.00“The 200 is turning up”
Our own arithmetic from (today − the bar leaving) ÷ N. In every row today’s close is the same $50,000; only the departing bar changes.

Look at the last row in particular. Nothing happened today at all — and the 200-period average ticks up $30, purely because a cheap bar from two hundred bars ago has just stopped counting. Commentary will describe this as the 200-day turning up. It is a fact about the calendar, not about the market.

Explainer graphic of a conveyor belt with a window frame over its middle: a tall coral block is sliding out on the left while a short teal block with an up arrow sits inside on the right, and the gold pointer above the frame tips downward - the bar leaving the window pulls the moving average down on a green day
The gold arm tips down while the newest block, marked with a rising arrow, is still coming in. The tall coral block leaving the window on the left is what moved the average — which is exactly what (today − the bar N back) ÷ N says.

This is usually called the drop-off effect, and it is the cleanest available example of the general principle from Lesson 13: an indicator is a measuring instrument, and most bad readings come from not knowing what the instrument is measuring. Two things follow.

First, before you accept “the 50 just turned down” as news, look at what price was 50 bars ago. If it was much higher than today, the turn was arithmetic that was scheduled to happen. Second, this is a genuine structural difference between the two families: an EMA has no window, so nothing ever drops out of it and it cannot produce this artefact. That is a real point in the EMA’s favour — and note that it has nothing to do with speed.

Does price really find support at a moving average?

Nothing rests on a moving average. It is a number computed from prices that have already happened, and there is no resting order at it, no queue, and no participant obliged to defend it — unlike the visible depth in an order book, which Lesson 8 measures directly. Whatever a bounce off the 50-day is, it is not the same kind of object as a level where size is actually sitting.

So why does it so often look like support? Two honest reasons, and it is worth being able to tell them apart.

Selection effect, which is the big one. In an uptrend, price spends nearly all its time above the average by roughly the equilibrium gap computed earlier. A pullback deep enough to touch the 50-period line but no deeper is, by construction, a shallow pullback inside an ongoing uptrend. Shallow pullbacks inside ongoing uptrends mostly resolve upward — that is close to the definition of an ongoing uptrend. The average gets the credit for an outcome the trend produced. Meanwhile the touches that kept going straight through the line are not remembered as “the moving average failed”; they are remembered as the day the trend ended.

Crowding, which is real but smaller and different in kind. Because so many people watch the same handful of lengths, orders and commentary genuinely cluster near them, and a level that many participants act on can become self-fulfilling for a while. That is a claim about other traders, not about the arithmetic, and it is strongest exactly where attention is highest and weakest on thin pairs where the crowd is a handful of accounts.

There is a two-minute test that settles this for your own chart better than any article can. Scroll back a year, mark every bar that touched your chosen average, and count how many held versus how many went straight through. Almost nobody who repeats “the 200 is strong support” has ever counted. The horizontal zones in Lesson 11 at least mark a price where trading demonstrably happened; a moving average marks a computed statistic that moves every single bar, which is also why “put your stop at the 50 MA” specifies a stop that quietly relocates overnight.

How late is a golden cross or a death cross?

Late by a specific, computable amount — and the delay does not shrink when the move is faster, which is the part almost nobody expects.

The mechanism first. In a steady trend, the 50-period and 200-period averages are not just both behind price, they are behind each other by a fixed amount: the difference in their lags, (199 − 49) ÷ 2 = 75 bars, multiplied by the movement per bar. In our $50-a-bar model that is a $3,750 spread. Before the two lines can cross, the reversal has to erase that entire spread first. The cross is not detecting the turn; it is reporting that the turn has already outrun a 75-bar head start.

So we modelled it. Price rises $50 a bar to exactly $50,000, then reverses cleanly and falls $50 a bar. Nothing noisy, nothing ambiguous — the sharpest reversal a market could physically make.

ModelCross firesPrice at the crossMove already spent
Death cross after a $50,000 top78 bars after the top$46,1007.80%
Golden cross after a $50,000 bottom78 bars after the bottom$53,9007.80%
Same reversal at $10 a bar78 bars78 bars’ worth
Same reversal at $250 a bar78 bars78 bars’ worth
Our own simulation of 50/200 simple averages on a symmetric V reversal. Reproducible in a spreadsheet with two AVERAGE columns.
Explainer graphic of a teal mountain with a gold flag on the summit and a coral alarm bell ringing far down the descending right slope, with gold brackets marking the vertical drop and the horizontal distance already travelled - a moving average cross signalling long after the top
The flag marks the top. The bell only starts ringing once both brackets have been earned — the vertical one is the drop already spent, the horizontal one the bars already elapsed. Steepening the slope stretches both brackets together, which is why the bar count does not fall.

The scale invariance is the finding worth carrying away. A steeper reversal covers ground faster — but it also built a proportionally wider spread between the two averages on the way up, and the two effects cancel exactly. Making the move more violent does not make the cross arrive any sooner in bar terms. It only means more of the move is spent by the time it does.

And be fair to the indicator about what this does and does not prove. A cross is a slow, stable label for which regime you are already in, and used that way — as a filter on which direction you are willing to trade, checked once a week — it is defensible. Used as an entry trigger it is arriving 78 bars into a move in the best case a market can offer. Real tops are rounded rather than instant, which pushes the number further out, so treat 78 as close to a best case rather than as a constant.

How do you use a moving average without pretending it predicts?

Give it exactly one job, accept the delay that job costs, and write the rule down before the bar prints. A moving average is a reasonable filter, a reasonable piece of context and a poor trigger, and most damage comes from asking one line to be all three at once.

How to use a moving average without pretending it predictsA five step process for using a moving average. Step one, decide what job the average is doing: a filter, context, or a trigger, because a line asked to do all three does none of them well. Step two, pick the length and accept its lag, since a 50 period average sits 24.5 bars behind price and that delay is the price of the smoothing. Step three, write the rule down before the bar prints, stated as above or below the line measured on the close, with no allowance for a cross that is about to happen. Step four, marked as a warning, check what is leaving the averaging window rather than only what is arriving, because the line moves by today's close minus the close 50 bars ago divided by 50, so it can turn down on a day price rose. Step five, size the trade from the stop rather than from the line, because no order rests on a moving average and risk is set by the distance to invalidation.1Decide what job the average is doingFilter, context or trigger. A line that does all three does none of them.2Pick the length, and accept its lagA 50-period average is 24.5 bars behind. That number is the cost of the smoothing.3Write the rule down before the bar printsAbove or below, measured on the close. No "it is about to cross".4Check what is leaving the window, not just what is arrivingThe line moves by (today - the bar 50 back) / 50. It can turn down on a green day.5Size the trade from the stop, not from the lineThe average has no order resting on it. Risk comes from distance to invalidation.Steps 1-3 are decided before the bar exists. That is what stops step 4 becoming a story.
Step 4 is the one that catches people, because it is the only step where the line moves for a reason that has nothing to do with today. Steps 1 to 3 are all decided before the bar exists.

Step one deserves the most thought, because the three jobs are genuinely different. As a filter, the line answers a yes/no question asked before you look for a setup: only take longs while price is above the 200. As context, its slope answers “is this market going somewhere or not”. As a trigger, a cross tells you when to act — and that is where the 78-bar delay lands squarely on your entry price.

The failure mode to avoid is subtle and extremely common: using the same line for all three, then treating the result as three confirmations. Price above the 200, the 200 sloping up, and a golden cross are not three independent pieces of evidence. They are one number, read three ways. That kind of double counting feels like confidence and adds none.

Steps 1 to 3 all happen before the current bar exists, and that is the whole point of writing them down. A line chosen after seeing the chart will always be the length that would have worked. Whatever the average decides, it does not decide your position size — that comes from the distance to your invalidation point, which is a risk calculation rather than an indicator reading.

When is a moving average simply the wrong tool?

Four situations where everything above stops helping, and one design flaw worth naming.

A range, which the average has no concept of. A moving average always outputs a number and a slope, including when there is no trend to describe. In a sideways market price oscillates around the line, crosses fire constantly, and each one is late by the same lag — so you buy the top of the range and sell the bottom of it. The indicator gives you no warning, because “no trend” is not one of the answers it can return. Whether the market is trending at all is a structure question, answered by the geometry in Lesson 12 rather than by the average itself.

Right after a structural break. A token migration, a chain halt, a delisting and relisting, or a venue change means the window still contains N bars of a market that no longer exists. A 200-period average will keep averaging the old regime for 200 bars, reporting a level with real confidence and no relevance.

When the bars themselves are not comparable. Crypto trades continuously, so there is no session close and a “daily” bar is whatever UTC cut-off a venue chooses. Two exchanges can therefore compute genuinely different 200-day averages for the same asset, and neither is wrong. Keep one venue and one instrument per average, for the same reason baselines only work inside one source in Lesson 13, and pick a venue whose data you have some reason to trust (Lesson 5).

Very short lengths, where you pay the cost and get nothing. A 5-period average lags by 2 bars and barely smooths anything: it is close enough to price to inherit most of the noise while still being late. If you find yourself shortening the length until the line hugs price, what you actually want is price — and the honest version of that decision is to read the candles, as in Lesson 9.

The design flaw, finally: a moving average is not a level, it is a curve that moves every bar. Any rule phrased as “my stop is at the 50 MA” is a rule whose stop relocates while you sleep, in a direction that depends on a bar from fifty periods ago. If you want a fixed line, use a fixed line.

What are the most common mistakes with moving averages?

MistakeWhy it failsDo this instead
Believing an EMA is faster than an SMA of the same lengthBoth lag by (N − 1) ÷ 2 — 99.5 bars at length 200Shorten the length if you want less delay
Reading “the 50 turned down” as newsThe line moves by (today − the bar 50 back) ÷ 50Check what price was N bars ago first
Waiting to buy a pullback to the 200In a $50-a-bar trend that is a 9.95% correction awayDecide if you want the trend or the discount
Treating a cross as an entry trigger78 bars late in a best-case model reversalUse it as a slow regime filter, checked weekly
Placing a stop “at the moving average”The average moves every bar; the stop moves with itSet the stop at a fixed invalidation price
Counting price-above, slope-up and cross as three signalsOne number read three ways is not three confirmationsGive the line one job, then look elsewhere
Changing the length after seeing the chartYou will always find the length that would have workedFix the setting for months and judge the rule

Six of those seven are mistakes about the instrument rather than about the market — which is the same conclusion the volume lesson reached, and probably not a coincidence. Indicators do not fail mysteriously. They report exactly what they were built to report, to people who never checked what that was.

What else do people ask about moving averages?

Which moving average length is best for crypto?

There is no best length, because length is not a quality setting — it is a delay budget. Average lag is (N − 1) ÷ 2, so a 20-period line is 9.5 bars behind and a 200-period line is 99.5. A shorter average sits closer to price and therefore changes direction more often, including when nothing has changed; a longer one is steadier and later. The useful question is how much delay the decision you are making can tolerate. For most beginners the honest answer is to pick one common length, keep it fixed for months, and judge the rule rather than the setting.

Is the 200-day moving average special?

Only in that many people watch it, which is a fact about crowds rather than about arithmetic. Mathematically it is one average among many, sitting 99.5 bars behind price. In a market rising $50 a bar it sits a permanent $4,975 below a $50,000 price — 9.95% — so a “pullback to the 200-day” is a request for a roughly ten percent correction rather than a shallow dip. Crypto adds a wrinkle: with 24/7 trading there is no session close, so what counts as a daily bar depends on each venue’s UTC cut-off, and two venues can compute slightly different 200-day averages for the same asset.

Should I use an EMA or an SMA?

It matters far less than people assume, because the two have identical average lag at the same length: 99.5 bars at length 200. The standard smoothing factor 2 ÷ (N + 1) is chosen precisely so they match. What differs is the shape of the weighting — the EMA puts 0.995% of its weight on the newest bar against the SMA’s 0.500%, so it responds sooner to a single shock bar, but it never fully forgets old data while the SMA cuts it off at exactly N bars. Prefer the EMA if your rule turns on the first bar after a shock; prefer the SMA if you want a window with a defined edge.

Does a golden cross mean I should buy?

It means two averages of past prices have changed places, which describes the recent past rather than forecasting anything. In our worked reversal a 50/200 cross fires 78 bars after the turn, with 7.80% of the move already spent — and that delay does not shrink if the move is steeper, because a faster move widens the spread the cross must first erase by the same factor. Treat a cross as a slow label for the regime you are already in, not as an entry, and size any trade from the distance to your invalidation rather than from the line.

Where does this sit in the course?

Lesson 14 follows Lesson 13 on volume, which measured participation; this one smooths price itself and puts an exact number on what the smoothing costs. It leans on the zones in Lesson 11 and the geometry in Lesson 12, since a moving average is a poor substitute for either, and on the delay budget from Lesson 10, because lag in bars only becomes lag in hours once you have chosen a timeframe. Next comes Lesson 15 on RSI and momentum, which measures the speed of price rather than its level.

Educational content only — not financial advice, and not a trade recommendation. Moving averages cannot guarantee direction, execution quality or profit. Every figure on this page comes from worked models built for this lesson — the lag identity (N − 1) ÷ 2, a trend rising $50 per bar, and a simulated symmetric reversal — and each can be reproduced with a spreadsheet; no market data is quoted. Sources: our own arithmetic, stated inline. Published 30 Aug 2026.

FREE STARTER KIT

Keep the whole roadmap next to your charts

The 56-lesson map, the sizing cheat sheet, the pre-trade checklist — one free PDF.

Get the Starter Kit →