The moving average is the oldest and most widely used indicator in trading, and the one most traders misunderstand in the same specific way: they treat it as a signal generator when it is really a filter. Used as a filter, it removes a large share of bad trades. Used as a signal, it produces a steady stream of them.
This lesson covers what a moving average measures, the difference between the types, how the main strategies actually perform, and where they reliably fail.
What a moving average measures
A moving average is the average closing price over a set number of candles, recalculated as each new candle forms.
20-period Simple Moving Average
Add the last 20 closing prices
Divide by 20
Plot the result
Next candle closes → drop the oldest,
add the newest, recalculate
That is the whole mechanism. The line smooths out individual candle noise so the underlying direction becomes visible.
A longer period produces a smoother, slower line that reacts late but rarely gives false turns. A shorter period hugs price closely, reacting quickly but reversing often. This trade-off between smoothness and responsiveness is the only real decision when choosing a moving average, and every other consideration follows from it.
Simple versus exponential
Two types matter in practice.
The Simple Moving Average (SMA) weights every candle in the window equally. The close from twenty candles ago counts exactly as much as the most recent one.
The Exponential Moving Average (EMA) weights recent candles more heavily. It responds faster to new price movement while still smoothing older data.
| SMA | EMA | |
|---|---|---|
| Reaction speed | Slower | Faster |
| False signals | Fewer | More |
| Suits | Longer timeframes, trend confirmation | Shorter timeframes, faster entries |
Neither is better. The EMA gets you in earlier and stops you out more often. The SMA gets you in later and keeps you in longer. Which suits you depends entirely on your timeframe and tolerance for whipsaw.
A practical convention many traders settle on: EMA for shorter periods used for entry timing, SMA for the longer periods used to define the overall trend. There is nothing sacred about this, but it applies each type where its characteristics help.
The periods that matter
Certain periods are watched by enough traders that they carry a degree of self-fulfilling weight.
| Period | Commonly used for |
|---|---|
| 9 / 10 | Very short-term momentum, scalping |
| 20 / 21 | Short-term trend, roughly one trading month |
| 50 | Medium-term trend, widely watched |
| 100 | Intermediate trend |
| 200 | Long-term trend, the most watched of all |
The 200-period moving average on the daily chart is the single most observed line in financial markets. Institutions reference it, financial media report on it, and algorithms are programmed around it. Price frequently reacts there — not because the number has magical properties, but because a large volume of orders sits near it.
The three ways moving averages are used
1. Trend direction — the most reliable use
The simplest and most valuable application: if price is above the moving average, the trend is up. If below, the trend is down.
Used this way, the moving average is a filter, not a signal. It does not tell you when to enter. It tells you which direction you should be looking to enter in.
A trader who only takes long setups while price is above the 200 EMA, and only short setups while below it, has eliminated a substantial share of the trades that were fighting the prevailing trend. That single rule improves most beginner strategies measurably, and it requires no additional skill.
Trade in the direction of the higher-timeframe moving average. Not because it predicts anything, but because it stops you taking the trades that were always going to be difficult. Most beginner losses are not bad setups — they are reasonable setups taken against a trend that was obvious on a higher timeframe.
2. Dynamic support and resistance
In a trending market, price often pulls back toward a moving average and resumes from there. The 20 and 50 period averages are commonly used this way.
This works because the average sits roughly where recent value has been. Traders who missed the initial move look to enter on a pullback, and the moving average provides a visible reference point that many of them use.
It is a zone, not a line. Price will overshoot and undershoot. Treating the average as a precise level and placing a tight stop just beyond it is a common way to be taken out by ordinary noise before the move resumes.
3. Crossovers — the strategy that disappoints
The crossover is the first strategy nearly every beginner tries: when a faster average crosses above a slower one, buy; when it crosses below, sell.
The logic is sound. Short-term average rising above long-term genuinely does indicate strengthening momentum.
The problem is what happens between trends. In ranging conditions — which is most of the time — the averages cross back and forth repeatedly, generating a series of entries that each lose a small amount. Traders call this whipsaw, and it is why crossover systems tested on trending periods look excellent and then disappoint in live trading.
Golden cross — 50 crosses above 200
Traditionally read as a bullish long-term signal
Death cross — 50 crosses below 200
Traditionally read as bearish
Both are very late. By the time they occur,
a significant portion of the move has happened.
Crossovers are not useless, but they work as confirmation within a broader method rather than as a standalone system. If you intend to trade them, a trend filter that keeps you out of ranging conditions is not optional.
Where moving averages fail
Ranging markets. This is the main one. When price oscillates sideways, the average sits in the middle of the range and price crosses it constantly. Every crossing looks like a signal, and none of them lead anywhere.
Sharp reversals. By design, a moving average lags. A sudden reversal on news will have moved substantially before the average turns.
After gaps. A weekend gap distorts the calculation for as many candles as the averaging period. Readings immediately after a significant gap are less reliable than they appear.
Low-volatility periods. When an instrument is barely moving, the average flattens and provides no useful information in any direction.
Combining moving averages sensibly
A structure that works well and stays simple:
200 EMA on the higher timeframe — establishes the direction you are permitted to trade in.
20 EMA on your trading timeframe — identifies pullback entries in that direction.
A momentum tool — RSI or MACD to time the entry within the pullback.
Three tools, three different jobs. The moving averages handle direction and location; the momentum indicator handles timing. Adding a fourth moving average adds nothing, because it answers a question already answered.
A practical note on stops
Traders often place stops just beyond a moving average, reasoning that if price breaks the average the setup is invalid.
That reasoning is fine, but the placement usually is not. Because the average is widely watched, price frequently pierces it briefly before reversing. A stop sitting precisely at the line is exposed to exactly that behaviour.
Placing the stop at a distance based on actual volatility — using ATR, covered later in this section — produces more robust placement than using the indicator line itself as the boundary. Your position size calculator then converts that distance into the correct lot size, so a wider stop simply means a smaller position rather than more risk.
What to do next
Moving averages give you direction and location. The next question is timing, and that is what momentum indicators answer.
The next lesson covers RSI — the most widely used momentum oscillator, and the one most frequently misread by traders who treat “overbought” as a sell signal.
Frequently asked questions
What is the best moving average period?
There is no universal best, but 20, 50 and 200 are the most watched, which gives them some self-reinforcing relevance. The 200-period on the daily chart is the most observed line in markets. Use standard periods rather than optimising to what performed best historically.
Should I use SMA or EMA?
EMA reacts faster and produces more false signals; SMA reacts slower and produces fewer. A common approach is EMA for shorter periods used in entry timing and SMA for longer periods defining the trend. Neither is superior in general terms.
Is the moving average crossover strategy profitable?
Not reliably on its own. Crossovers work well in trending markets and generate repeated small losses in ranging conditions, which is most of the time. They function better as confirmation inside a broader method than as a standalone system.
What is a golden cross?
When the 50-period moving average crosses above the 200-period, traditionally read as a bullish long-term signal. The death cross is the reverse. Both are very late signals — by the time they occur, a large part of the move has already happened.
Can moving averages act as support and resistance?
Yes, particularly the 20 and 50 periods in trending markets. Price often pulls back toward them and resumes. Treat them as zones rather than precise lines — price routinely overshoots before reversing, which catches out traders using very tight stops at the line.
How many moving averages should I put on a chart?
Two is usually sufficient — one long period for trend direction and one short for entry location. A third adds little, because it answers a question the first two already answered. Charts with four or more moving averages tend to produce confusion rather than clarity.
