Moving Averages: SMA, EMA and How to Use Them
A moving average smooths out price to show the underlying direction. It is one of the simplest indicators and one of the most widely used.
What it calculates
A simple moving average (SMA) adds up the closing prices of the last N candles and divides by N. A 20-period SMA on the daily chart is the average close of the last 20 days. As each new candle forms, the oldest one drops out, so the average "moves" with price.
An exponential moving average (EMA) gives more weight to recent prices. It reacts faster to new moves than an SMA of the same length, which some traders prefer for shorter-term trading. The trade-off is that it also reacts more to false moves.
Popular settings
| Length | Often used for |
|---|---|
| 9 or 10 | Very short-term momentum |
| 20 or 21 | Short-term trend and pullbacks |
| 50 | Medium-term trend |
| 200 | Long-term trend; widely watched on the daily chart |
Ways traders use moving averages
1. Trend direction
If price is above a rising moving average, the trend is generally up. If it is below a falling one, the trend is generally down. A flat average with price weaving through it suggests a sideways market, where moving averages are less useful.
2. Dynamic support and resistance
In a healthy trend, price often pulls back to an average like the 20 or 50 EMA and bounces. These levels move with price, unlike horizontal lines.
3. Crossovers
When a faster average crosses above a slower one, it can signal momentum turning up; crossing below can signal it turning down. The best-known example is the golden cross (the 50-day crossing above the 200-day) and the death cross (the 50 crossing below the 200).
Limitations
- Moving averages are lagging: they are built from past prices, so signals always come after the move has started.
- In ranging markets, crossovers produce many false signals.
- No setting is "best". Pick one or two, learn how price behaves around them, and stay consistent.
Add them on TradeOgix
- Open a chart and tap fx Indicators.
- Choose MA (simple) or EMA (exponential).
- Open the indicator's settings to change the lengths and colours.
- Your indicator choices are saved and, if you are signed in, synced to your other devices.
This guide is for education only and is not financial advice. Trading carries a high risk of loss.
Practise on TradeOgix charts