Moving Averages (MA): The Complete Guide
Moving averages are the bedrock of trend‑following analysis. By plotting the average price over a specific period, they help traders see the underlying direction without the distraction of daily price noise. Developed decades ago and still used by millions, moving averages are simple yet powerful.
Why moving averages work – They represent the average opinion of market participants over a given timeframe. When price stays above a key moving average, bulls are in control; below it, bears dominate.
1. Types of Moving Averages#
There are three main types, each with its own calculation and behaviour.
1.1 Simple Moving Average (SMA)
The arithmetic mean of prices over n periods.
SMA = (P₁ + P₂ + ... + Pₙ) / n
All prices carry equal weight. SMAs react slowly to new data but are excellent for identifying major trend shifts.
1.2 Exponential Moving Average (EMA)
Gives more weight to recent prices, making it more responsive. The formula uses a smoothing factor:
EMAₜ = (Priceₜ × α) + (EMAₜ₋₁ × (1 - α))
where α = 2 / (n + 1)
Traders often prefer EMAs for short‑term systems and SMAs for longer‑term context.
1.3 Weighted Moving Average (WMA)
Assigns a linearly decreasing weight to older prices (e.g., newest price weight = n, next = n‑1, …). WMAs offer a middle ground between SMA and EMA.
| Type | Responsiveness | Best used for |
|---|
| SMA | Slowest | Major trend filters, weekly/daily charts |
| EMA | Fast | Swing trading, intraday signals |
| WMA | Medium | Custom strategies, commodity analysis |
2. Popular Periods & Their Meanings#
| Period | Name | Interpretation |
|---|
| 5–8 | Very short | Scalping, ultra‑fast entries |
| 10–20 | Short‑term | Trend direction for swing trades |
| 50 | Intermediate | Key support/resistance in liquid markets |
| 100 | Long‑term | Secondary trend filter |
| 200 | Major long‑term | "The" moving average for institutions |
Note: The 200‑day SMA is closely watched by fund managers. A break above/below it often triggers large algorithmic flows.
3. Basic Interpretations#
3.1 Trend Direction
- Price above moving average → uptrend
- Price below moving average → downtrend
- Price crossing back and forth → sideways / choppy market
3.2 Support & Resistance
In a healthy uptrend, a moving average (often 20 or 50 EMA) acts as dynamic support. Pullbacks that touch the MA and bounce confirm the trend.
3.3 Golden Cross & Death Cross
- Golden Cross – 50‑period MA crosses above 200‑period MA → long‑term bullish signal.
- Death Cross – 50‑period MA crosses below 200‑period MA → long‑term bearish signal.
These are lagging but have high reliability on weekly charts.
4. Advanced Strategies#
4.1 Multiple Moving Averages (Ribbon)
Plot 5, 8, 13, 21, 34, 55, 89, 144, 233 EMAs. When they are far apart (ribbon expands), the trend is strong. When they compress, a reversal or breakout is coming.
4.2 Moving Average Envelopes
Bands at a fixed percentage (e.g., 2% above/below a 20‑period SMA). Price reaching the upper band suggests overbought; lower band suggests oversold – but only in a ranging market.
4.3 Crossover Systems
The classic 5/20 EMA crossover:
- 5 EMA crosses above 20 EMA → buy signal
- 5 EMA crosses below 20 EMA → sell signal
Add a filter: Only take crossovers when the 50 EMA is sloping in the same direction.
5. Worked Example#
Assume Apple (AAPL) closing prices over 5 days (SMA 5):
| Day | Price |
|---|
| 1 | 170 |
| 2 | 172 |
| 3 | 171 |
| 4 | 174 |
| 5 | 176 |
SMA₅ = (170+172+171+174+176)/5 = 172.6
EMA₅ (using α = 2/(5+1) = 0.333):
Assume previous EMA = 170.
EMA₁ = 170 × 0.333 + 170 × (0.667) = 170
EMA₂ = 172 × 0.333 + 170 × 0.667 = 170.666
… and so on.
6. Limitations (Don't Rely on Moving Averages Alone)#
- Lagging indicator – reacts after price moves; whipsaws in ranging markets.
- No volume or volatility context – combine with ADX, ATR, or Bollinger Bands.
- Parameter sensitivity – a 20‑period EMA works differently from a 50‑period SMA. Backtest.
- False crossovers – sideways markets produce many losing trades.
Golden rule: Use moving averages as a trend filter, not as an entry/exit timing tool on their own. Add price action confirmation (support/resistance, candlesticks).
7. Final Thoughts#
Moving averages will never predict the future, but they give you a disciplined way to define the trend and stay on the right side of the market. Whether you prefer SMA, EMA, or a ribbon of many, the key is consistency.
Key takeaways:
- Choose the period based on your trading timeframe.
- Use faster averages for entries, slower ones for trend direction.
- Avoid crossover systems in choppy, range‑bound markets.
- Combine with other tools (momentum oscillators, volume).
J. Welles Wilder (who also gave us RSI) wrote: "The moving average is the most common, and perhaps the most useful, of all technical indicators."
Happy trading, and remember – the trend is your friend, but a moving average is your compass.
Additional Resources#
- Technical Analysis of the Financial Markets – John Murphy
- Investopedia – Moving Averages
- New Concepts in Technical Trading Systems – J. Welles Wilder (for EMA smoothing)