Skip to content
Platform

Find & understand

Discover companiesFrom the market to your shortlistStock ScreenerSee a shortlist take shapeCompany researchUnderstand the business behind a stock

Test & prepare

Reality CheckPut an investing rule in perspectivePlan your riskWork out what is at stake

Keep developing

Review & learnReflect on decisions and build knowledgeAll workspace toolsFind your next starting point
Reality CheckAcademyPricing
Sign inGet started free
  1. Academy
  2. /
  3. Volume, VWAP, indicators and confirmation
  4. /
  5. Moving averages: what they lag, and what they are honestly for

Lesson 45 of 120 · Intermediate · 15 min read

Moving averages: what they lag, and what they are honestly for

Try it: Test SPY crossing its 20-day averageFree, no account needed.

On this page

· 12 sections
  1. An average of closes, and nothing more
  2. The lag is the definition, not a defect
  3. Simple, exponential, weighted and the rest
  4. Three honest uses
  5. Crossovers and the parameter search
  6. The self-reference question
  7. Adjusted history changes the level
  8. Working it through
  9. Where this goes wrong in practice
  10. What to do with this
  11. Knowledge check
  12. Glossary
Back to top

What you will be able to do

  • State exactly what a moving average computes and what it discards
  • Explain why smoothing and lag are the same property rather than a solvable tension
  • Distinguish simple, exponential and weighted variants by their behaviour rather than their formulas
  • Name three uses of an average that do not require it to forecast anything
  • Apply a parameter-neighbourhood test before trusting any crossover result
  • Check the adjustment convention before comparing price to a long average

Read these first

  • Timeframes in Candlesticks, charts and price structure
  • Trend structure in Candlesticks, charts and price structure
  • Corporate actions in Market foundations

A moving average is the most-used object on a chart and the least examined. It is worth being precise about what it is, because almost every disappointment people have with it comes from expecting something the arithmetic cannot deliver. It smooths. It lags. Those two properties are the same property, and no parameter choice separates them.

An average of closes, and nothing more

A simple moving average of length N is the arithmetic mean of the last N closing prices, recomputed each period. If N is 20, today's value is the sum of the last twenty closes divided by twenty. Tomorrow the oldest close leaves the window and the newest enters.

Two things follow immediately. Both the simple moving average and VWAP are summary statistics; neither has to equal an individual trade price. For example, hypothetical trades of one share at 100 and three shares at 110 have a trade-level VWAP of 107.50, even though no trade occurred there. The simple average uses a sample of closes and discards everything else in each bar: the high, the low, the range, the volume and the path. A day that opened low, ran to a high and closed in the middle contributes exactly one number.

The second thing is that it is entirely a function of history. Every value on the line is computable from data that already existed. Nothing in the construction contains information about the future, and nothing about smoothing creates any. This sounds obvious written down and is routinely forgotten when a line is described as telling you where price is heading.

What a moving average is for

It answers one question: what has the recent typical level been, with short-term variation removed. That is a real and useful question. It is not the same question as where price is going, and treating the answer to the first as an answer to the second is the central error in this lesson.

The lag is the definition, not a defect

Because the average includes old data, it responds to a change in price only as fast as the old data leaves the window. When price steps to a new level and stays there, a simple average of length N takes N periods to arrive, moving in equal steps. Halfway through, it sits halfway between the old level and the new one.

People treat this as a problem to be engineered away, and there is a small industry of averages designed to reduce it. They all work, in the sense that they respond faster. They all work in exactly the way you would expect: by weighting recent data more heavily, which means giving more weight to the most recent observations, which means less smoothing. Speed and smoothness are the same dial with two labels on it.

The consequence for a rule is direct. A faster average changes direction more often, so any rule keyed to its direction fires more often, which means more of everything: more of the moves you wanted and more of the noise you did not. Shortening a length is not an improvement. It is a move along a tradeoff, and the correct question is which end of the tradeoff suits the thing you are trying to do.

Choosing a length from the holding period

There is one principle worth having, and it is not a formula. The length should be set by how long you intend to hold, not by how the line looks. If a typical position lasts three days, an average over two hundred sessions is describing a level you will never be around to see reached, and its direction changes far more slowly than your positions turn over. If a typical position lasts six months, a ten-period average is reacting to variation you have already decided to sit through.

Stated that way the choice becomes checkable, which is the point. You can ask whether the average completes its adjustment on a timescale comparable to your holding period, and you can answer without reference to any chart. A length chosen this way is defensible even when it performs poorly, because you can say what it was for. A length chosen because a chart looked better with it cannot be defended at all, and it will be changed again the next time a chart looks worse.

Simple, exponential, weighted and the rest

The exponential moving average weights every past observation, with weights that decay geometrically. Nothing ever fully leaves it, which means it responds to a step change quickly at first and then approaches the new level asymptotically. The weighted moving average uses linearly declining weights over a finite window, sitting between the simple and the exponential in responsiveness.

There are many others, most of them combinations. Some average an average. Some subtract a lagged average from a faster one to cancel part of the delay. Some adapt their length to a measure of recent volatility. Each is a different point on the same tradeoff, and the honest summary is that the differences between them are small compared with the difference between using one and using none.

The practical difference

  • Simple. Every observation in the window counts equally, and the value jumps when a large old observation drops out. That drop-out effect is real and surprises people: the line can move sharply on a day price barely changed.
  • Exponential. No drop-out effect, because nothing ever leaves. Responds faster to recent change and never entirely forgets an old shock.
  • Weighted. A finite window like the simple average, with recent bars counting more. Still has a drop-out effect, smaller than the simple version.

If you cannot state which of these you are using and why, that is a sign the choice was inherited from a default rather than made. It is not a large error, but it is an unexamined one, and unexamined choices accumulate.

Three honest uses

There are uses of a moving average that survive scrutiny, and they share a property: none of them asks the line to forecast.

As a description of the recent level

Reading a chart, the average tells you roughly where price has been sitting, without your eye being pulled by individual bars. This is the use it is actually good at, and it requires no rule at all.

As a reference for measuring something else

Distance from an average, expressed in units of volatility rather than in currency, is a way of asking how far price has travelled from its recent centre. That is a normalisation, in the same spirit as relative volume, and it makes today comparable with last month. The average is doing arithmetic here rather than forecasting.

As a state definition inside a larger rule

A rule that says treat the instrument as one thing when price is above a long average and as another when it is below is not a prediction. It is a partition of history into two states, which can then be examined separately. Whether the partition is useful is an empirical question with an answer, and asking it is a different activity from asserting that a crossing is a signal.

The distinction is worth dwelling on because it changes what you have to prove. A signal claim says something will happen. A state claim says only that the two halves of history are different enough to be worth separating, which you can check by looking at both halves. If the two halves look the same on whatever you care about, the partition was not useful and you have learned that cheaply. If they differ, you have a description, and you still have to decide whether the difference is large enough to survive costs and large enough to have not arisen from having tried several partitions.

What none of the three uses does

None of them says the line will be reached, held, or respected. Notice that all three uses are backward looking by construction, and that this is a feature rather than an apology: a description of what has happened is exactly what a moving average can support. The moment a sentence about a moving average contains the word will, the sentence has left what the arithmetic provides and has become a forecast wearing an average as a costume.

Crossovers and the parameter search

The crossover of a fast average and a slow one is the oldest published rule in the field and the most studied. The difficulty is not that it never works. The difficulty is that the pair of lengths is chosen, there are hundreds of plausible pairs, and someone testing many pairs on the same history will find one that looks excellent whether or not any of them contain anything.

This is the same problem as the many-anchors problem from the previous lesson, in a more familiar costume. Formal work on chart-derived rules has consistently found that the difficulty is not in computing the rules but in the statistical inference: establishing that a rule which performed well was not simply the best of a large number examined. A well-known length pair is not exempt from this. Its fame is evidence that it was searched over more, not less.

Famous parameters are the most searched

If a pair of lengths is widely quoted, then very many people have tested very many pairs and this is the one that stayed in the conversation. That history is a selection process, and the survivor of a selection process is exactly the thing you cannot evaluate with the standards you would apply to a rule chosen in advance.

The defensible way to work with a crossover is to fix the lengths for a stated reason, apply them everywhere, and look at the whole distribution of outcomes rather than the memorable ones. If changing a length from 50 to 48 materially changes your conclusion, the conclusion was about the parameter rather than about the instrument.

That last test deserves to be used more than it is, because it is cheap and it is diagnostic. Take whatever length pair you rely on, move each length by a few percent in both directions, and look at whether the picture survives. A relationship that is real should be visible across a neighbourhood of parameters, since nothing in an instrument knows that fifty is a rounder number than forty-eight. A relationship that exists at one exact pair and vanishes on either side of it is describing the history you fitted it to.

The same test applies to the choice of variant and to the price the average is computed on. If a result holds with a simple average and disappears with an exponential one of comparable responsiveness, or holds on closes and disappears on typical prices, that fragility is information about the result rather than a reason to specify the winning combination more precisely.

The self-reference question

A recurring argument holds that widely watched averages matter because so many people watch them. There is something to this and it is weaker than it is usually presented. If a large number of participants place orders with reference to the same level, then order flow does cluster there, and clustering of orders is a real microstructural fact rather than a mystical one.

But three things limit the argument. Participants use different lengths and different variants, so the levels are a smear rather than a line. The largest participants, whose flow would actually matter, are generally not placing orders off a chart overlay. And the effect, if present, says something about where transactions concentrate, not about which direction the concentration resolves.

The useful version of the observation is narrow: near a widely referenced level, you may encounter more resting size and more activity, which is a statement about execution rather than about direction. That is worth knowing when you are placing an order. It is not a reason to expect the level to hold.

Adjusted history changes the level

A moving average computed on unadjusted prices across a split is meaningless in the same way an anchored average is: the window spans two different price scales. For a 200-period average, a split anywhere in the last two hundred sessions corrupts the value, and the corruption fades gradually rather than announcing itself.

Dividend adjustment is subtler and worth understanding because it affects long averages every time. A total-return-adjusted series shifts historical prices down by the accumulated distributions, so the average of adjusted closes sits below the average of the closes people actually saw. In a high-yield instrument over a long window the difference is large enough to change whether price appears to be above or below the line.

Neither series is wrong; they answer different questions. What is wrong is not knowing which one your chart is drawing, or comparing a level computed on one basis against a level computed on the other. If a long average matters to your process, check the adjustment convention once and write it down with the rule.

Working it through

IllustrativeA constructed step change, and how three averages arrive at it. Illustrative.

An instrument trades at exactly 100 for a long time, then steps to exactly 110 and stays there. Nothing else happens. Track three lines from the day of the step.

  • Ten-period simple average. After one period it reads 101.00, after five 105.00, and after ten it reaches 110.00 exactly. It arrives in equal steps because each period swaps one old value for one new one.
  • Twenty-period simple average. After one period 100.50, after five 102.50, after ten 105.00, and it does not arrive until period twenty.
  • Ten-period exponential average. Start the EMA at 100, with smoothing factor 2 / (10 + 1). Each update adds 2/11 of the gap between 110 and the previous EMA. After one period it is about 101.82, after five 106.33, and after ten 108.66. It moves more at first, then approaches the new level without reaching it exactly in finite arithmetic steps.

Two readings. First, the amount of lag is set entirely by the length: on a clean step the simple average is exactly halfway there at half its length, every time, in every instrument. That is arithmetic and no market condition changes it.

Second, the EMA reacts more on the first update, but does not stay ahead throughout this step. At period ten the ten-period simple average has reached 110, while the EMA is still at 108.66. Faster initial response and faster arrival are different claims. Now imagine the step was a single day's spike that reversed the next day. The same sensitivity pulls the EMA toward that temporary move, and its influence then decays rather than dropping out of a finite window.

The reading to take is that there is no better average here. There is a dial, and both ends of it cost something. Choosing a length is choosing how much noise you are willing to react to in exchange for how quickly you acknowledge a real change.

Where this goes wrong in practice

  • Expecting a smoother line to lag less. Smoothing and lag are the same property, and every variant is a point on one tradeoff.
  • Shortening a length after a missed move. That is fitting the parameter to the most recent regret, and it will be shortened again after the next one.
  • Testing many length pairs and reporting the best. The best of many is the outcome of a search, not a property of the instrument.
  • Assuming a famous length is validated. Fame means more searching happened, which makes the selection problem worse rather than better.
  • Computing a long average across an unadjusted split. The window then spans two price scales and the value is not an average of anything.
  • Mixing adjustment conventions. A dividend-adjusted average and an unadjusted price are not comparable, and in high-yield instruments the gap is large.
  • Being surprised by the drop-out effect. A simple average can move sharply on a quiet day because a large old value left the window.
  • Describing the line as showing where price is heading. Every value is computed from data that already exists.

What to do with this

  1. State which variant you use and why. Simple, exponential or weighted, chosen once, not inherited from a default.
  2. Fix your lengths in advance and leave them alone. If a small change to a length changes your conclusion, the conclusion was about the length.
  3. Use the line to describe or to normalise, not to forecast. Distance from the average in volatility units is a legitimate measurement; a crossing is not a prediction.
  4. Check the adjustment convention for any average longer than a few weeks, and record it beside the rule.
  5. Count the parameter pairs you examined before quoting any result from a crossover, and report the count with the result.
  6. Watch a step change once. Draw the arithmetic out on paper as in the example above, and the lag stops being a surprise permanently.
Examples and common mistakes

Worked example

IllustrativeA clean step from 100 to 110, and how three averages arrive at it
A clean step from 100 to 110, and how three averages arrive at it - illustrative figures, not a performance record.
AverageAfter 1 periodAfter 5 periodsAfter 10 periodsBehaviour
10-period simple101.00105.00110.00equal steps, arrives exactly at its length
20-period simple100.50102.50105.00half as fast, arrives at period twenty
10-period exponential101.82106.33108.66faster at first, approaches without arriving

For this constant step, the simple average is halfway there at half its length. The EMA starts at 100 and uses a smoothing factor of 2 / (10 + 1): each update adds 2/11 of the gap between 110 and the previous EMA. It responds more at first, but by period ten the 10-period SMA has reached 110 while the EMA is still at 108.66. Faster initial response does not mean reaching the new level sooner. The same sensitivity also reacts to a short-lived spike; neither variant forecasts what happens next.

How this goes wrong in practice

  • Expecting a smoother line to lag less, when smoothing and lag are one property
  • Shortening a length after a missed move, which fits the parameter to the most recent regret
  • Testing many length pairs and reporting only the best one
  • Treating a famous length pair as validated when its fame means more searching happened
  • Computing a long average across an unadjusted split, so the window spans two price scales
  • Comparing a dividend-adjusted average against unadjusted prices
  • Being surprised when a simple average jumps because a large old value left the window
  • Describing the line as showing where price is heading, when every value comes from data that already exists

Checklist

  • Which variant you use, stated once rather than inherited from a default
  • Lengths fixed in advance and derived from your holding period, not from appearance
  • A neighbourhood test: does the result survive a few percent change in each length
  • The adjustment convention for any average longer than a few weeks
  • The number of parameter pairs examined, recorded with any crossover result
  • Whether the sentence you are about to write contains the word will

Knowledge check

Question 1 of 3Price steps cleanly from 100 to 110 and holds. Where is a 20-period simple moving average after 10 periods?
Question 2 of 3Why does an exponential average respond faster than a simple one of the same nominal length?
Question 3 of 3A crossover result is excellent at lengths 50 and 200 and disappears at 48 and 205. What does that tell you?

Exercise

Take one instrument and one length pair you already use. Recompute the same rule at four nearby pairs, moving each length up and down by roughly five percent, and record the number of times the rule triggered for each of the five variants. Then repeat all five using an exponential average in place of a simple one. Write down whether your original conclusion survived both changes, and write one sentence stating the reason you chose the original lengths that does not refer to how a chart looked.

Glossary, tools and sources

Glossary

Simple moving average
The arithmetic mean of the last N closes, recomputed each period. Every observation in the window counts equally and the oldest leaves entirely.
Exponential moving average
A weighted average whose weights decay geometrically into the past. Nothing ever fully leaves it, so it has no drop-out effect and never entirely forgets a shock.
Lag
The delay between a change in price and the average acknowledging it. Set by the length, and inseparable from the smoothing the average provides.
Drop-out effect
A jump in a finite-window average caused by a large old observation leaving the window, which can move the line on a day price barely changed.
Parameter neighbourhood test
Recomputing a result at nearby parameter values to see whether it survives. Fragility at one exact setting indicates fitting rather than a relationship.
Total return adjustment
Rescaling historical prices for distributions. It shifts the level of a long average without changing anything about the trading it summarises.

Use it in the app

  • Chart - compare a simple and an exponential average of the same length
  • Backtesting - run the neighbourhood test rather than optimising a single pair
  • Screener - define a state with a long average rather than a signal with a crossing

Sources

  1. Charting Library User Guide - exponential smoothing constant(opens in a new tab)

    Fidelity. Retrieved 2026-09-13.

  2. Random Walks in Stock Market Prices(opens in a new tab)

    Financial Analysts Journal, CFA Institute. Retrieved 2026-08-31.

  3. Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation (Working Paper 7613)(opens in a new tab)

    National Bureau of Economic Research. Retrieved 2026-08-31.

Risk notice

This lesson is general educational information about how moving averages are computed and what they describe. It is not investment advice, not a recommendation to buy or sell any security, and not tailored to your circumstances. The step change and all values shown are constructed for teaching and describe no real instrument, account or result. A moving average is computed entirely from data that already exists and does not indicate the direction of future prices. Trading involves risk of loss, including loss of the full amount invested.

Press when you have finished reading. Nothing is recorded until you do.

Test SPY crossing its 20-day average

A look at how the rule behaved in past data. Not a forecast and not a recommendation.

Previous lessonAnchored VWAP: moving the start point to the event14 minNext lessonRSI and oscillators: why overbought is not a reason to act14 min
Back to top

Test a trading rule against holding. Keep the evidence and build your research from there.

support@estockes.comSupport replies within 1-2 business days.

Product

  • Home
  • Pricing
  • Free tools
  • Calculators
    • Compounding
    • Position size
    • Risk and reward
    • Leveraged ETF decay
    • Day trading account checker
  • Academy - free course
  • Test a strategy
  • Strategies we tested
  • Compared with TradingView
  • Compared with Finviz
  • Compared with Investing.com
  • Test a rule without code
  • System status
  • What's new

Company

  • About
  • Contact
  • Support

Legal

  • Terms of Service
  • Privacy Policy
  • Refunds
  • Security
  • Data request
Review us on Trustpilot (opens in a new tab)

Share your honest experience.

Featured on LaunchBuffestockes on VibeRank
© 2026 estockes - estockes.com · Operated by Eylon Sabag · Prices in USD

estockes is a research and analytics tool, not a registered investment adviser, broker-dealer, or financial planner. Nothing here is investment, financial, legal, or tax advice. All content is for informational and educational purposes only. Trading involves substantial risk of loss; past performance does not guarantee future results. You trade at your own risk.

Mailing address (correspondence only)
800 N. King St, Suite 304-2048, Wilmington, DE 19801, USAThe operator is Eylon Sabag, an Israeli sole proprietor. This iPostal1 address receives correspondence; it is not a U.S. office or a separate U.S. company.
Previous lessonAnchored VWAP: moving the start point to the event14 min
Next lessonRSI and oscillators: why overbought is not a reason to act14 min