Technical analysis
Moving averages are among the most widely used technical indicators. They smooth price data to reveal the underlying trend, reduce noise, and can be used to define entries and exits. If you only learn one indicator family, this is a strong candidate.
The SMA is the arithmetic mean of closing prices over n periods. A 20-day SMA adds the last 20 closes and divides by 20. Each day carries equal weight; when a new bar is added, the oldest bar drops out. That makes the SMA easy to calculate and interpret.
SMA = (P₁ + P₂ + … + Pₙ) ÷ n. The main drawback is lag: because all periods are weighted equally, the SMA reacts slowly to sudden moves. A large gap today affects a 20-day SMA about as much as a small move 19 days ago.
The EMA reduces lag by weighting recent prices more heavily. The latest close has the largest influence; older prices fade gradually. The smoothing multiplier is 2 ÷ (period + 1). For a 20-period EMA, that is 2 ÷ 21 ≈ 0.0952 — so roughly 9.5% of the weight goes to today’s price and the rest comes from the previous EMA value.
EMA = (Close − Previous EMA) × Multiplier + Previous EMA. The line hugs price more closely than an SMA of the same length, reacting faster to reversals and breakouts — but also to noise.
How the two averages differ in practice.
| Feature | SMA | EMA |
|---|---|---|
| Calculation | Equal weight to all periods | More weight to recent prices |
| Responsiveness | Slower, more lag | Faster, less lag |
| False signals | Fewer (more smoothing) | More (reacts to noise) |
| Best for | Longer-term trend picture | Short-term trading, fast markets |
| Common periods | 50-day, 200-day | 9-day, 12-day, 21-day |
Golden cross: the 50-day SMA crosses above the 200-day SMA. It is widely interpreted as medium-term trend turning bullish; because it is lagging, part of the move may already be behind you. Death cross: the 50-day SMA crosses below the 200-day SMA — read as a bearish shift; choppy markets produce false crosses.
Moving averages act as dynamic support and resistance that move with price. In an uptrend, the 20-day or 50-day MA often attracts buyers on pullbacks. In a downtrend, those averages can cap rallies. The effect is partly self-fulfilling: many participants watch the same levels.
A classic setup uses two averages: a fast one (for example 9 EMA) and a slow one (for example 21 EMA) on a daily chart. Buy when the fast MA crosses above the slow MA; sell or flatten when the fast crosses below. Place a stop using the slow MA or a fixed percentage — align it with your risk rules and the stop-loss article on position sizing.
Always ask whether the instrument is trending or ranging before leaning on crossovers alone. Combine moving averages with confirmation tools such as RSI or volume context for a more complete picture.
There is no universal answer. Prefer EMA when you need faster signals — intraday work, swing entries on sharp moves, or timing around breakouts. Prefer SMA when you want a calmer line and fewer whipsaws, or when the goal is a big-picture trend read (for example 50/200-day filters). Many traders combine both: a 200-day SMA for regime and a short EMA for entries inside that regime.
Educational content only. Not investment advice. Trading involves substantial risk of loss.