A moving average smooths prices by averaging the last n closes and updating as each bar completes. It's one of the oldest and most widely used chart tools.
Simple moving average (SMA)
SMA = sum of the last n closes ÷ n
Example. Closes 10, 11, 12, 13, 14. SMA(5) = 60 ÷ 5 = 12. When the next bar closes at 15, the 10 drops out: (11 + 12 + 13 + 14 + 15) ÷ 5 = 13.
Exponential moving average (EMA)
An EMA gives more weight to recent closes:
EMA today = close × k + EMA yesterday × (1 − k), where k = 2 ÷ (n + 1)
Example. EMA(9) yesterday = 100.0, k = 2 ÷ 10 = 0.2, today's close 105.0. EMA = 105 × 0.2 + 100 × 0.8 = 101.0.
CME's course notes that because of this weighting, EMAs are more responsive to recent price changes than simple averages.
Lag: the unavoidable trade-off
Every moving average reflects past prices, so it turns after price turns. Longer averages are smoother and lag more; shorter ones react faster and whipsaw more. There's no setting that is both smooth and early.
How traders use them
- Slope: rising average, uptrend under that definition.
- Price versus average: closes above or below.
- Crossovers: a shorter average crossing above a longer one is commonly read as bullish, crossing below as bearish. CME's example is a 50-period EMA crossing the 200.
- Dynamic levels: some watch for pullbacks to an average.
Observation versus interpretation
Observable: the average's value, slope and whether price or another average crossed it.
Interpretation: that a crossover "signals" a move, or that a specific period such as 20 or 200 is special. These are hypotheses with a long history of being tested, with mixed results that depend on market and period.
Takeaways
- SMA weights the last n closes equally; EMA weights recent closes more.
- Every moving average lags; smoother means later.
- Crossovers and slopes are rules to test, not guarantees.
Common misconceptions
- "The 200-day average is support." Sometimes price reacts near it; test it like any level.
- "A faster average removes lag." It reduces lag and adds noise.