How to Use Moving Averages in Trading

A moving average is one of the simplest and most widely used indicators in technical analysis, yet it remains a core tool for professional and retail traders alike. It smooths out the noise of individual candles so you can see the underlying direction of price more clearly.
What a Moving Average Actually Does
A moving average takes the average price over a set number of periods and plots it as a single line, updating (or “moving”) as each new candle closes. For instance, a 20-period simple moving average on a daily chart averages the last 20 daily closes and re-draws itself every day as the oldest price drops off and the newest one is added.
Because it’s an average, the line lags behind price — it can never predict the very next move, only summarize what’s already happened. This lag is the trade-off for the clarity it provides.
SMA vs. EMA
- Simple Moving Average (SMA): every price in the lookback period counts equally. Smoother, slower to react, often used for identifying the broader trend (e.g., a 200-day SMA).
- Exponential Moving Average (EMA): recent prices are weighted more heavily, so the line reacts faster to fresh price action. Often preferred for shorter-term entries and exits.
Example: If EUR/USD has been climbing steadily and then has one sharp down day, a 20-period EMA will dip more noticeably in response than a 20-period SMA, because the EMA gives that recent candle extra weight.
Using Moving Averages to Read Trend Direction
The simplest use of a moving average is as a trend filter:
- Price consistently trading above a rising moving average suggests an uptrend.
- Price consistently trading below a falling moving average suggests a downtrend.
- Price chopping back and forth across a flat-ish moving average suggests a range, where trend-following tools tend to underperform.
Example: Suppose gold has been trading above its 50-day SMA for two months, with the SMA itself sloping upward from 2,320 to 2,390. Each time price dips toward that rising average — say to 2,375 when the SMA sits at 2,370 — it has bounced. That’s a textbook “buy the dip in an uptrend” setup using a single moving average as dynamic support.
Moving Average Crossovers
A crossover strategy uses two moving averages of different lengths and watches for one to cross the other:
- Golden cross: a shorter average (e.g., 50-period) crosses above a longer one (e.g., 200-period) — often read as a bullish signal on longer timeframes.
- Death cross: the shorter average crosses below the longer one — often read as bearish.
Example: If the S&P 500’s 50-day SMA crosses above its 200-day SMA after both had been converging for weeks, that golden cross is widely reported in financial media as a bullish milestone — even though, by the time it happens, price has typically already moved a meaningful distance from the low that started the underlying rally. This is the nature of a lagging indicator: it confirms a trend after the fact rather than predicting it in advance.
Moving Averages as Dynamic Support and Resistance
Beyond crossovers, many traders simply watch how price interacts with a single moving average, treating it as a moving version of support and resistance. In an uptrend, a 20-EMA or 50-SMA often acts as a floor that price repeatedly tests and bounces from; in a downtrend the same line often acts as a ceiling.
Example: USD/CAD in a downtrend might rally toward its 50-EMA at 1.3680 three separate times over a month, getting rejected each time before resuming lower — a pattern that trend-following traders use to look for shorting opportunities on each retest, rather than trying to pick the exact bottom of the move.
Common Mistakes
- Using too many moving averages at once. Stacking five or six lines on a chart often creates a cluttered mess of conflicting signals rather than added clarity. Two or three, at most, is usually enough.
- Treating crossovers as instant, precise signals. Because moving averages lag, a crossover confirms a trend change well after price has already moved — chasing every crossover blindly, especially in a choppy range, produces frequent false signals (“whipsaws”).
- Ignoring the broader context. A moving average alone doesn’t know about upcoming news events, nearby chart patterns, or major support/resistance zones — it should be one part of the analysis, not the entire strategy.
- Applying the same settings to every market. A 200-day SMA that works well for a stock index may behave very differently on a much more volatile asset like a crypto CFD; period settings often need adjusting per instrument and strategy.
Moving Averages in a Broader Trend-Following System
Moving averages form the backbone of many systematic trend-following approaches — see our trend-following strategy guide for a complete rules-based example that builds directly on the concepts above.
Key Takeaways
- A moving average smooths price into a single line to reveal underlying trend direction, at the cost of lagging behind real-time price action.
- EMAs react faster to recent price changes; SMAs are smoother and often used for longer-term context.
- Price trading consistently above a rising average suggests an uptrend; below a falling average suggests a downtrend.
- Crossovers (golden cross/death cross) can flag trend shifts but confirm them only after they’ve already begun.
- Moving averages can act as dynamic support/resistance, especially in strongly trending markets.
- Avoid stacking too many moving averages, and always combine them with broader context — trend, support/resistance, and news — rather than trading crossovers blindly.
A platform with customizable indicator settings and reliable historical data makes moving-average analysis far easier — see our Pepperstone review for a look at supported charting platforms.
Risk warning: Trading carries a high level of risk to your capital. Moving averages are a lagging tool and do not guarantee profitable outcomes. Only trade with money you can afford to lose.
Frequently asked questions
- What is the difference between SMA and EMA?
- A Simple Moving Average (SMA) weights every price in its period equally. An Exponential Moving Average (EMA) weights recent prices more heavily, so it reacts faster to new price action. EMAs are generally preferred for short-term signals, while SMAs are often used for longer-term trend context.
- What is the golden cross and death cross?
- A golden cross happens when a shorter-term moving average (commonly the 50-period) crosses above a longer-term one (commonly the 200-period), often read as a bullish long-term signal. A death cross is the opposite — the 50-period crossing below the 200-period — often read as bearish. Both are lagging signals, so they confirm a trend well after it has begun.
- Which moving average period should I use?
- There is no single correct period — shorter periods (like 9 or 20) react faster but generate more false signals; longer periods (like 50, 100, or 200) are smoother but slower to react. Many traders use two or three periods together (e.g., 20 and 50) rather than relying on just one.