A moving average is the average closing price over the last N candles, recalculated on every candle. It smooths price into a single line so you can see direction without the noise. It does not predict anything — it is a summary of what already happened, and it will always turn after price does.
That last sentence is the whole subject. Nearly every problem traders have with moving averages comes from expecting a lagging summary to behave like a leading signal, and then adjusting the settings forever when it does not.
What the line is actually measuring
A 20-period simple moving average adds the last 20 closes and divides by 20. Next candle, the oldest close drops out, the newest drops in, and the line is redrawn. That is the entire calculation. Everything a moving average can tell you follows from it.
Two consequences matter in practice. First, the line's slope tells you whether the recent average is rising or falling — that is a genuine, if crude, read on trend. Second, the distance between price and the line tells you how far the market has travelled from its own recent normal, which is why price tends to come back toward a moving average after a sharp move. Neither of those is a forecast. Both are descriptions.
SMA vs EMA: the real difference
A simple moving average (SMA) weights all candles in its window equally. An exponential moving average (EMA) weights recent candles more heavily, with the weight of older candles decaying smoothly. The EMA therefore turns sooner after price changes direction.
| Simple (SMA) | Exponential (EMA) | |
|---|---|---|
| Weighting | Every candle in the window counts equally | Recent candles count more, older ones decay |
| Reaction speed | Slower to turn | Faster to turn |
| Behaviour on a spike | Jumps again when the spike leaves the window | Absorbs it once, then fades it away |
| Suits | Longer horizons, trend context | Intraday, faster time frames |
| Costs you | Later signals | More false turns |
Neither is better. They are trading the same thing against each other: responsiveness versus stability. Choosing an EMA to react faster is choosing to react more often to noise as well, and that trade-off does not disappear at any setting. It is the same trade-off you make when you decide how much confirmation to require before an entry — the subject of break and hold confirmation.
One SMA quirk is worth knowing because it surprises people. When a large candle from 20 sessions ago finally drops out of a 20-period SMA's window, the line can jump noticeably even though today's price barely moved. That is not the market doing something — it is arithmetic leaving the back of the window.
Which periods, and why those
There is nothing magic about any period. The reason 20, 50 and 200 keep appearing is round-number convention and the fact that a great many participants watch them, which makes them worth knowing regardless of whether they are optimal.
- 9 or 20 — short-term direction. Useful intraday for answering "which way is this session leaning right now".
- 50 — the intermediate trend. Widely used as a rough dividing line between a pullback and a change of character.
- 200 — the long-term picture, and the one most institutions and financial media reference. Its main practical use is a bias filter: above it, you favour longs; below it, you favour shorts.
Two on a chart is plenty; three is the maximum before you are reading the indicators instead of the market. Whatever you choose, freeze the settings. A trader who optimises the periods after every losing week is not refining a system, they are curve-fitting to the last twenty candles — and the research below explains exactly why that fails.
Crossovers: what they can and cannot do
A crossover is one average crossing another — a faster line moving above a slower one, or below it. As a description of trend state it is fine and quite readable. As an entry trigger it has a structural problem: it is two lagging measures compared to each other, so it can only report a change after that change is well underway.
In a strong trend that is tolerable, because the move continues long enough to pay for the late entry. In a range it is corrosive. Price oscillates, the lines cross repeatedly, and each crossover produces an entry near one edge of the range that is stopped out as price returns to the other. Because markets spend a large share of their time going sideways, a naive crossover system spends most of its life in the mode where it loses.
The fix is not a better crossover. It is a regime filter — deciding whether the market is trending before you allow trend logic to generate trades at all — plus risk control that keeps the ranging periods survivable. That is what risk management is for, and it matters far more here than the choice between 9/21 and 12/26.
Do moving averages act as support and resistance?
Sometimes, and the mechanism is worth being clear about because it is not the same as real support. A widely-watched average is a price a very large number of participants have publicly decided to act on. Their orders cluster near it, and the cluster produces reactions. That is a genuine effect, but it is a soft one: the level moves every candle, and it exists only because people are watching it.
Horizontal support and resistance is different in kind. Those prices are where the market actually transacted heavily and reversed — evidence of what happened, not of what people intend. When a moving average and a horizontal level coincide, the horizontal level is doing the work. Trade the level; treat the average as context.
What the research actually found
Moving average rules have one of the longest test records in finance, and the honest summary is a two-part story.
Part one: Brock, Lakonishok and LeBaron tested moving average and trading-range-break rules on the Dow Jones Index across 90 years of daily data, 1897 to 1986, using bootstrap methods to compare against random walk, AR(1), GARCH-M and exponential GARCH null models. They reported that "buy signals consistently generate higher returns than sell signals," that returns after buy signals were less volatile than those after sell signals, and that returns following sell signals were negative — results the four null models could not account for (Brock, Lakonishok & LeBaron, Journal of Finance 47(5), 1992, pp. 1731–1764).
Part two, and this is the part that gets left out. Sullivan, Timmermann and White later asked what happens when you account for how many rules had been searched to find those winners. They expanded the universe from 26 rules to 7,846 and applied a bootstrap reality check across roughly a century of Dow data. Once data-snooping bias was corrected for, the case for simple technical trading rules did not survive out of sample (Sullivan, Timmermann & White, "Data-Snooping, Technical Trading Rule Performance, and the Bootstrap", Journal of Finance 54(5), 1999, pp. 1647–1691).
The practical lesson is not "moving averages do not work." It is that the search for the moving average that works is itself the trap. Test enough combinations against enough history and something will look excellent by chance. That is precisely what a trader does when they cycle through settings looking for the pair that would have caught last month's move.
Frequently Asked Questions
What is the difference between an SMA and an EMA?
A simple moving average weights every candle in its window equally. An exponential moving average weights recent candles more heavily, so it turns sooner after a change in price. Neither is more accurate, because they are answering different questions: the SMA asks where price has been on average, the EMA asks where it has been lately. The EMA reacts faster and therefore also reacts to more noise.
Which moving average periods should I use?
Use as few as you can and keep them constant. Common defaults are 9 or 20 for short-term direction, 50 for the intermediate trend, and 200 for the long-term picture. What matters far more than the exact numbers is that many participants are watching the same widely-used settings, and that you stop changing yours whenever a trade goes against you.
Do moving average crossovers actually work?
They work in trending markets and lose steadily in ranging ones, which is most of the time. A crossover is a lagging confirmation that a change already happened, so in a sideways market it produces a stream of late entries that reverse. Crossovers are best treated as a description of trend state rather than as an entry trigger.
Do moving averages act as support and resistance?
Sometimes, and for a reason worth understanding: a widely-watched average becomes a place where a large number of participants have decided to act, so their orders cluster near it. That makes it a soft zone rather than a real level. Horizontal support and resistance is built from prices where the market actually transacted and reversed, and it is the stronger of the two.
Bottom line
Put one or two moving averages on the chart, pick conventional periods, and then leave them alone. Use the slope for direction and the distance from price for stretch, and stop asking the line for entries it cannot give. The line is a summary of the past written in a way that is easy to read — valuable for orientation, useless as a trigger. Pair it with a real level and a written invalidation and it earns its place. Start with technical analysis basics, then read what RSI actually measures to see the same lesson from the oscillator side.
