What is the difference between a simple (SMA) and exponential (EMA) moving average?
By Ghost Man Trades · Last reviewed · Education only, not advice
Moving averages in plain English
Daily prices are noisy. A moving average smooths that noise by averaging the last few closes and redrawing the result every period, so you see one calm line instead of a jagged one. When the line points up, the recent average price is rising. When price sits above the line, it is above its recent average.
The two common types differ only in how they weight the past.
- Simple moving average (SMA): add up the last N closes and divide by N. A close from 19 days ago counts exactly as much as yesterday's close in a 20-day SMA.
- Exponential moving average (EMA): start from yesterday's EMA and move it part of the way toward today's close. The step size is the multiplier 2 ÷ (N + 1). For a 10-period EMA that is about 18%, for a 200-period EMA about 1%.
Formula: EMA today = EMA yesterday + (close today − EMA yesterday) × 2 ÷ (N + 1). Charting packages usually start the very first EMA value from a simple average or from the first close, which is why two platforms can show slightly different EMA values on short histories.
Example (hypothetical numbers): a 5-period SMA and EMA.
- Closes on days 1 to 5: $20, $21, $22, $23, $24. The 5-day SMA is (20 + 21 + 22 + 23 + 24) ÷ 5 = $22. Use $22 as the starting EMA too.
- Day 6 the stock jumps to $30. New SMA = (21 + 22 + 23 + 24 + 30) ÷ 5 = $24.00. New EMA = 22 + (30 − 22) × 2 ÷ 6 = $24.67.
- Day 7 it closes at $30 again. SMA = (22 + 23 + 24 + 30 + 30) ÷ 5 = $25.80. EMA = 24.67 + (30 − 24.67) ÷ 3 = $26.44.
- The EMA moved closer to the new price faster. That is the whole difference.
The SMA has one quirk worth knowing: the "drop-off" effect. When an unusually big day from N periods ago leaves the window, the SMA can jump even though nothing happened today. The EMA fades old days gradually, so it does not do this.
Common mistakes
- Treating a crossover as a prediction. Price crossing a moving average describes what already happened. In sideways markets, crossovers flip back and forth and generate many losing signals.
- Comparing values across platforms without checking the type. "The 200" on one site may be an SMA and on another an EMA.
- Using too many lines. Five moving averages on one chart usually means one of them will "work" after the fact, which teaches nothing.
- Forgetting the timeframe. A 50-period average on a weekly chart is about a year; on a daily chart it is about ten weeks.
How Ghost Man uses this
Ghost Man uses exponential moving averages on the weekly chart. The main line is the 200-week EMA, our "4-year average," and buy signals only count when price is no more than 10% above it. The Ghost Report's "pullbacks in an uptrend" list also uses the 50-week EMA: a stock qualifies when its close is above the 200-week EMA, the 200-week EMA is higher than it was 13 weeks earlier, and the 50-week EMA is above the 200-week EMA.
We chose the EMA so our numbers match TradingView's built-in exponential average, which is what members see in the Ghost Man indicator. We do not trade moving-average crossovers on their own; the averages set the context, and the Ghost Wave oscillator times the entry.
Related terms
- 200-week moving average · What is the 200-week moving average (the 4-year average)?
- MACD · What is MACD (Moving Average Convergence Divergence)?
- Support and resistance · What are support and resistance in trading?
- Weekly vs daily chart (timeframes) · What is the difference between a weekly chart and a daily chart?
- RSI (Relative Strength Index) · What is RSI (the Relative Strength Index)?
- 200-day moving average · What is the 200-day moving average?
- 50-day moving average · What is the 50-day moving average?
- Bollinger Bands · What are Bollinger Bands, and how do you read them?
- Golden cross and death cross · What are the golden cross and the death cross?
Learn it step by step in Swing School
Frequently asked questions
Which is better, SMA or EMA?
Neither is better in general. The EMA reacts faster, which means earlier signals and more false ones. The SMA is steadier and easier to calculate by hand. Pick one, test it, and stay consistent.
What are the most common moving average lengths?
On daily charts, the 20, 50 and 200-day averages are the most widely watched. MACD uses 12 and 26-period EMAs. Long-term investors also watch the 200-week average, about 3.8 years.
Why do moving averages lag?
Because every value is an average of past closes. The longer the window, the more old data it contains and the more it lags.
What is a golden cross?
A popular name for a shorter moving average, usually the 50-day, crossing above a longer one, usually the 200-day. A death cross is the opposite. Both are lagging signals and fail often in sideways markets.
Does an EMA ever forget old prices?
Not completely. In theory every past price keeps a small, shrinking weight. In practice, prices from long ago have almost no effect.
Sources
We check every definition and formula against these sources. Our own rules come from the Ghost Man scan code that runs this site.
- StockCharts ChartSchool: Moving Averages, Simple and Exponential
- Fidelity Learning Center: Simple Moving Average (SMA)
- Fidelity Learning Center: Exponential Moving Average (EMA)