Moving averages: SMA and EMA
Moving averages smooth out price to show the trend; learn how they are calculated, what 9, 20, 50 and 200 mean, and how crossovers work.
A moving average (MA) is the average price over the last so-many candles, recalculated every time a new candle closes. Plotted as a line, it smooths out the jagged ups and downs so the underlying direction is easier to see. The number of candles used is called the period or length.
Simple moving average (SMA)
The SMA adds up the last N closing prices and divides by N. Every candle counts equally.
Exponential moving average (EMA)
The EMA gives more weight to the most recent candles, so it reacts faster than an SMA of the same length. Each new EMA value moves part of the way from the old EMA toward the newest close. The size of that step is the multiplier 2 ÷ (N + 1).
- All candles count equally
- Slower, smoother
- Downside: late to turn
- Common use: 50 and 200 on daily charts
- Recent candles count more
- Faster, more responsive
- Downside: more false signals in choppy markets
- Common use: 9 and 20 on intraday charts
The common lengths
These numbers are not magic. They matter mostly because so many people watch them, so price often reacts near them.
How traders read them
Two crossovers have names. A golden cross is the 50-day SMA crossing above the 200-day SMA. A death cross is the 50-day crossing below the 200-day. They are long-term signals watched by investors more than day traders.
- 50-day SMA crosses above the 200-day SMA
- 50-day SMA crosses below the 200-day SMA
- 1Price goes sideways
- 2Averages tangle
- 3They cross: a signal
- 4Signal fails at once
Key takeaways
- A moving average is the average price over the last N candles, redrawn as each candle closes.
- The SMA weights all candles equally; the EMA weights recent candles more and reacts faster.
- 9 and 20 are common intraday lengths; 50 and 200 are watched on daily charts.
- Slope, price position and crossovers describe the trend, but always with a lag.
- In sideways markets, moving averages produce repeated false signals called whipsaws.
Check your understanding
Score 70% or more to pass the lesson. You can retry as often as you like.