Day-to-day prices are noisy. A share that is rising over months still has plenty of down days, and a single bad day can make a chart look like a turn. A moving average smooths the noise by replacing each price with the average of the last several. Draw it over a chart and the jagged line becomes a calmer one that shows the general direction. It is the most widely used indicator there is, and the foundation of several others.
The simple moving average
The number of periods sets the trade-off. A short average, ten or twenty days, follows the price closely and smooths little. A long one, such as the 200-day average, smooths a great deal and is used to judge the long-term trend. The same average can be calculated on any timeframe: a 20-period average on an hourly chart covers 20 hours, not 20 days.
The exponential moving average
A simple average gives every day in its window equal weight and then drops each day abruptly when it falls out of the window. An exponential moving average (EMA) gives the most weight to the latest price and steadily less to older ones, which never quite disappear. Each day it moves part of the way towards the new close: new EMA = old EMA + k × (close − old EMA), where k = 2 ÷ (n + 1). For a 5-period EMA, k is a third, so each day the average closes a third of the gap to the latest price. An EMA reacts faster than an SMA of the same length, at the cost of being pushed around more by single days. The piece on MACD builds an indicator out of two of them.
Every average is late
An average of the past cannot know the present. A simple moving average is centred, in effect, on the middle of its window, so it lags the price by roughly (n − 1) ÷ 2 periods. A 200-day average reflects where the price was, on average, about 100 trading days ago. When a trend turns, the average keeps moving the old way for a while, and only turns after the price has already moved well past the turn.
This is not a flaw that a cleverer average can fix. Smoothing and delay are the same thing seen from two sides. Any average smooth enough to ignore a day’s noise is, by the same token, slow to notice a real change. Shortening it reduces the lag and lets the noise back in. Every moving-average signal is a choice of how much lateness to accept in exchange for how much noise to filter.
Crossovers
- Price crossing the average: a close above a rising 50-day average is often read as a sign the trend is up; a close below as a sign it may be weakening.
- Two averages crossing: a short average crossing above a long one is a classic trend signal. The 50-day crossing above the 200-day is popularly called a golden cross, and the reverse a death cross.
- The average’s slope: a rising average with the price above it describes an uptrend more reliably than any single cross.
Crossovers work best in long, steady trends, where arriving late still leaves much of the move. They work worst in sideways markets. When the price chops back and forth around a flat average, it crosses again and again, each signal reversing the last, and each trade loses a little. Traders call this whipsaw. A moving-average rule that does well over years usually does so by catching a few big trends and paying for them with many small losses in between.
What the evidence says
Moving-average rules have been studied for decades. A widely cited 1992 study by William Brock, Josef Lakonishok and Blake LeBaron found that simple moving-average rules applied to the Dow Jones index over most of the twentieth century had predictive power. Later work, notably by Ryan Sullivan, Allan Timmermann and Halbert White in 1999, showed how easily such results arise from testing many rules on the same data, and found that the best rules’ performance largely faded in the years after the original sample. Trend-following across many markets at once has stronger support: research such as Tobias Moskowitz, Yao Hua Ooi and Lasse Pedersen’s 2012 study of time-series momentum found that past returns in futures markets tended to persist. But that evidence concerns broad, diversified, carefully costed strategies, not a single crossover on a single share.
Using an average honestly
- Know its length and timeframe before reading anything into it.
- Expect it to be late at every turn, by design.
- Look at whether the market is trending or ranging before trusting a crossover.
- Count the costs: a rule that trades often in a choppy market pays spreads and commissions every time.
- Be suspicious of any average whose length was chosen because it worked on the past.
Why the round numbers
The 50-day and 200-day averages are the most quoted, and nothing in the maths makes them special. They became conventions, partly because they cover roughly a quarter and most of a trading year. Their popularity can make them matter anyway: when many traders and commentators watch the same line, orders cluster around it, and a move through it gets attention. That is a fact about traders, not about the share, and it can stop working as soon as attention moves elsewhere.
Averages outside charts
The same tool is used far beyond trading. Economists smooth noisy data with moving averages: weekly US jobless claims are often reported alongside their four-week average, and many statistics are given as three-month averages so that one odd month does not mislead. Companies report rolling twelve-month sales to smooth out seasons. The trade-off is identical everywhere: the smoother the series, the later it shows a turn. A four-week average of jobless claims confirms a rise in layoffs a few weeks after the first weekly jump, which is exactly why analysts watch both.
What this piece does not cover
What each candle under the average records is the piece before this one. MACD, momentum built from two exponential averages, has its own piece. Trend-following across many markets, the version with the strongest evidence, is part of the piece on quant funds.
This is educational background on how moving averages work, not a trading method or advice about any security.
