How Moving Averages Work
A moving average smooths price data by creating a constantly updated average over a fixed period. It filters out noise to reveal the underlying trend. The four main types — SMA, EMA, WMA, and HMA — differ in how they weight recent vs older prices.
SMA = (P₁ + P₂ + ... + Pₙ) / NSimple Moving Average: all prices weighted equally. Most stable, but slowest to react to trend changes.
EMA = Price × k + EMA_prev × (1 − k), k = 2/(N+1)Exponential Moving Average: recent prices carry exponentially more weight. More responsive than SMA — preferred for short-term signals like the 9/21 EMA crossover.
WMA = Σ(Pᵢ × wᵢ) / Σ(wᵢ), wᵢ = 1..NWeighted Moving Average: linear weighting — the most recent price gets weight N, the oldest gets weight 1. Falls between SMA and EMA in responsiveness.
HMA = WMA(2 × WMA(N/2) − WMA(N), ⌊√N⌋)Hull Moving Average: nearly zero-lag. Uses a double-WMA trick to cancel the lag inherent in other MAs while keeping the line smooth. Best for rapid trend change detection.
Golden Cross & Death Cross
When a faster MA crosses above a slower MA, it signals a potential uptrend — a golden cross. When the fast MA crosses below the slow MA, it signals a potential downtrend — a death cross. The classic setup uses the 50 and 200 SMA on the daily chart, but shorter periods (9/21 EMA) are common on intraday timeframes. Use the ATR calculator to confirm volatility is backing the signal — high-ATR breakouts on a golden cross are more reliable.
Choosing the Right Moving Average
For trend identification, SMA is the default — stable and widely followed. For entry timing, EMA reacts faster to price changes. For scalping on low timeframes, HMA eliminates lag almost entirely. Pair moving averages with volatility analysis to avoid false signals in choppy, low-ATR markets.
| Type | Lag | Smoothness | Best For |
|---|---|---|---|
| SMA | High | Very smooth | Long-term trend, 50/200 cross |
| EMA | Medium | Smooth | Short-term signals, 9/21 cross |
| WMA | Medium | Moderate | Balanced approach |
| HMA | Very low | Moderate | Scalping, fast trend changes |