The EMA is a moving average that does not treat all periods equally. Each new price gets a fixed weight and older prices fade out gradually, so the line hugs recent price more closely than a simple average of the same length. That makes it popular for trend following and as the building block of MACD.
How it’s calculated
Multiplier k = 2 ÷ (N + 1)
EMA today = (close − EMA yesterday) × k + EMA yesterday
The first EMA value is usually seeded with a simple moving average of the first N closes.
Examples of k: 9-period ≈ 0.200, 12-period ≈ 0.154, 20-period ≈ 0.095, 26-period ≈ 0.074, 200-period ≈ 0.010.
Common settings: 9 and 21 for short-term momentum, 50 for the medium-term trend, 200 for the long-term trend. 12 and 26 feed MACD.
Example
A 20-period EMA stands at 50.00, and today’s close is 52.00.
- k = 2 ÷ 21 ≈ 0.0952
- EMA = (52.00 − 50.00) × 0.0952 + 50.00 ≈ 50.19
A 10-period EMA starting at the same 50.00:
- k = 2 ÷ 11 ≈ 0.1818
- EMA = (52.00 − 50.00) × 0.1818 + 50.00 ≈ 50.36
The shorter EMA moves almost twice as far toward the new price. A 20-period SMA, by contrast, would change by only (new close − dropped close) ÷ 20.
Common mistakes
- Treating an EMA touch as a signal. In a trend, pullbacks to a rising EMA can act as dynamic support, but price often slices through. Look for a reaction, such as a hammer or bullish engulfing candle.
- Stacking too many EMAs. Five lines on one chart mostly show the same information.
- Ignoring volatility. Whether price is “far” from an EMA depends on how much it normally moves; ATR gives that yardstick.
- Forgetting the seed. Platforms seed the first value differently, so short histories can show slightly different EMA values.
Read RSI, MACD, ATR and EMA explained for a combined walkthrough.
In SnapPulse
SnapPulse reports where price sits relative to the EMA on a scanned chart and explains it in plain language, together with RSI, MACD and ATR. Download SnapPulse.
Educational content — not financial advice.
Updated