How a moving average is calculated
A moving average takes the average closing price over a set number of prior candles, then recalculates with each new candle — which is exactly why it "moves". A 20-period average on a daily chart, for instance, sums the last 20 daily closes and divides by 20.
Its value is that it smooths out price noise: instead of tracking confusing minute-to-minute swings, you see a single line summarising the broad direction. That smoothing is simultaneously the indicator's strength and its weakness, as we'll see.
SMA versus EMA
| Type | Calculation | Behaviour |
|---|---|---|
| SMA (simple) | Equal weight to every candle | Slower, smoother, fewer false signals |
| EMA (exponential) | More weight to recent candles | Faster to react, earlier but noisier signals |
Neither is universally better: short-term traders such as scalpers favour the EMA's responsiveness, while swing traders tend to prefer the SMA's stability.
Choosing the right period
The period sets how sensitive the indicator is. Common periods and their typical uses:
| Period | Typical use |
|---|---|
| 9–20 | Short-term trend, quicker entries |
| 50 | Medium-term trend |
| 200 | Long-term overall trend |
A working rule: shorter periods produce more signals and more noise with them; longer periods produce fewer, later signals that tend to be more reliable.
Three practical ways to use it
- Trend filter: if price is above the average, look only for buys; if below, only for sells. This is its simplest and most powerful use, because it stops you trading against the trend.
- Dynamic support and resistance: price often bounces off the average (particularly the 50 and 200), turning it into a possible entry zone within a trend — combine it with static support and resistance.
- Two-average crossover: a fast average crossing above a slow one reads as bullish, and the reverse as bearish. Useful, but lagging by construction.
Its limits and when it fails you
A moving average is by construction a lagging indicator, since it is computed from past prices. In practice that means:
- It performs excellently in markets with a clear trend.
- It produces many false signals in sideways, choppy markets, where price crosses it back and forth.
- It does not predict reversals; it confirms them after the fact.
So it is never used alone. The sensible combination is one trend indicator (the average) plus one momentum indicator (such as RSI) plus strict risk management. More in technical indicators for gold.