4.1 SMA and EMA
A moving average is the average price over a set number of periods. It “smooths out” the price and makes the trend easier to see.
Simple moving average (SMA)
An SMA adds up the closing prices for the last n periods and divides by n.
SMA(5) = (sum of the last 5 closing prices) ÷ 5
Every period counts equally. That makes the SMA stable, but slow.
Exponential moving average (EMA)
An EMA gives more weight to the most recent prices. It reacts faster when the price turns.
| SMA | EMA | |
|---|---|---|
| Reacts | Slower | Faster |
| False signals | Fewer | More |
| Suits | Long trends, support and resistance | Short-term trading |
Common periods
| Period | Use |
|---|---|
| 20 | Short-term trend |
| 50 | Medium-term trend |
| 200 | Long-term trend – very widely watched |
The 200-day moving average is so well known that the media often report when an index breaks above or below it.
All moving averages lag
Because they are based on past prices, moving averages are always a little behind the market. They confirm a trend, but do not predict it.
Try it yourself
Put a 20 SMA and a 20 EMA on the same chart. Which one reacts first when the price turns?
Key takeaways
- A moving average is the average price over a period.
- The SMA weights all periods equally; the EMA weights the most recent most and reacts faster.
- 20, 50 and 200 are the most used periods.
65% of retail investor accounts lose money when trading CFDs with this provider.