12.1 Simple, Exponential, and Weighted Moving Averages and Crossovers
Key Takeaways
A Simple Moving Average (SMA) assigns an equal weight of 1/n to each of the past n closing prices, making it susceptible to the drop-off effect when an outlier exits the lookback window
A Linearly Weighted Moving Average (WMA) assigns weights n, n - 1, ..., 1 divided by n(n + 1)/2 so recent closes carry the greatest influence
An Exponential Moving Average (EMA) updates recursively via EMA_t = alpha * P_t + (1 - alpha) * EMA_(t-1) with smoothing constant alpha = 2 / (n + 1), eliminating sudden drop-off distortions
A Golden Cross occurs when the 50-day SMA crosses above the 200-day SMA (long-term bullish transition), whereas a Death Cross occurs when the 50-day SMA crosses below the 200-day SMA
Shorter or front-weighted moving averages reduce lag during trend reversals but can generate more false whipsaw signals in sideways, range-bound markets
Moving averages sit at the heart of classical trend-following technical analysis, a core component of Domain 2 on the Chartered Market Technician (CMT) Level I exam. Raw price bars contain substantial day-to-day noise that obscures the underlying trend. By smoothing a sequence of closing prices into a rolling average, a moving average (MA) reveals trend direction, acts as dynamic support or resistance, and generates objective crossover signals. Because every moving average summarizes past data, it is inherently a lagging indicator—it confirms trends after they begin rather than predicting turning points in advance.
Simple Moving Average (SMA)
The Simple Moving Average (SMA) is the unweighted arithmetic mean of the most recent closing prices:
Every observation inside the -period lookback window receives an identical weight of , while every observation older than periods receives a weight of zero. That equal-weighting rule creates a well-known distortion called the drop-off effect (sometimes nicknamed the barking-dog effect). Subtracting yesterday's SMA from today's SMA shows why:
The one-period change in the SMA equals the difference between the newest price entering the window () and the oldest price leaving the window (). If an unusually large price spike or crash drops out of the window periods later, the SMA can lurch sharply in the opposite direction even if the current session closes unchanged.
Linearly Weighted Moving Average (WMA)
To make the average respond faster to current price action and reduce the drop-off jolt, the Linearly Weighted Moving Average (WMA) assigns weights that decrease linearly from on the most recent close down to on the oldest close in the window. The sum of these integer weights is the triangular number :
For a 5-day WMA, the weights sum to , placing of total weight on today's close and only on the price four days ago. Because the oldest price tapers down to a small fraction before exiting, the drop-off effect is substantially muted compared with an SMA.
Exponential Moving Average (EMA)
The Exponential Moving Average (EMA) avoids abrupt fixed-window drop-off by weighting all prior prices with geometrically decaying coefficients that never abruptly truncate to zero. Rather than recalculating a long sum each bar, the EMA updates recursively from the previous bar's EMA:
Here, is the smoothing constant, defined for a nominal lookback period as:
For example, a 9-day EMA uses (), while a 19-day EMA uses (). To begin the recursion on the first bars of a series, charting platforms typically seed using the initial -day SMA (or occasionally the first closing price ). Because older prices decay smoothly by on every subsequent bar, an EMA tends to respond more to recent price shocks than an SMA of the same nominal length while retaining a fading memory of the entire price history.
Wilder Smoothing
J. Welles Wilder used a different recursive weight, , in indicators such as RSI, ATR and directional movement. Initialize with the arithmetic average of the first observations; subsequent values follow . A 14-period Wilder average uses , the same recursive weight as an EMA of nominal length 27 (); initialization can differ. A 14-period ordinary EMA instead uses .
Worked Numerical Comparison: 5-Day SMA vs. WMA vs. EMA
Suppose a stock posts the following six consecutive daily closes: Day 1 at $50.00, Day 2 at $52.00, Day 3 at $51.00, Day 4 at $54.00, Day 5 at $58.00, and Day 6 at $59.00. Compute each 5-day moving average () on Day 5 and Day 6, seeding .
Day 5 Calculations (Window: Days 1–5)
- 5-day SMA (Day 5):
- 5-day WMA (Day 5): The denominator is :
- 5-day EMA (Day 5): Seeded at , with smoothing constant .
Day 6 Calculations (Close = $59.00; Window: Days 2–6)
- 5-day SMA (Day 6): Day 1 ($50.00) drops out and Day 6 ($59.00) enters:
- 5-day WMA (Day 6):
- 5-day EMA (Day 6):
| Moving Average Type | Weighting Scheme | Day 5 Value | Day 6 Value | Drop-Off Vulnerability |
|---|---|---|---|---|
| Simple (SMA) | Equal ( each) | $53.00 | $54.80 | High; exits abruptly |
| Weighted (WMA) | Linear ( down to ) | $54.20 | $56.20 | Low; oldest bar has smallest weight |
| Exponential (EMA) | Recursive ( on ) | $53.00 | $55.00 | None; weights decay smoothly forever |
Notice how both front-weighted averages (WMA at $56.20 and EMA at $55.00) track the Day 5–6 rally closer to price than the SMA ($54.80). In a sharp two-day surge, the 5-day WMA actually sits highest because it places on Day 6 and on Day 5 ( combined), whereas the 5-day EMA places on Day 6 and on Day 5.
Crossover Signals, Dynamic Levels, and Limitations
Technicians apply moving averages through three primary frameworks:
- Price Crossovers: A bullish signal occurs when price closes above a rising moving average; a bearish signal occurs when price closes below a declining moving average. To reduce false breaks, analysts often apply confirmation filters such as requiring a multi-day close beyond the average or a minimum percentage penetration (e.g., –). Wait for the moving average itself to slope in the direction of the trade to avoid fading established momentum.
- Dual-Moving Average Crossovers: Using two averages can smooth price noise, at the cost of added lag. A fast average crossing above a slow average generates a buy signal; crossing below generates a sell signal. On daily equity charts, two landmark institutional signals stand out:
- Golden Cross: The 50-day SMA crosses above the 200-day SMA, signaling a potential transition to a long-term bull regime.
- Death Cross: The 50-day SMA crosses below the 200-day SMA, signaling a potential transition to a long-term bear regime.
- Dynamic Support and Resistance: In sustained uptrends, analysts often watch pullbacks to the 20-day EMA (short-term momentum), 50-day SMA (intermediate trend), or 200-day SMA (primary trend). In downtrends, rallies frequently stall against these declining averages.
Important
Every moving average faces an inescapable lag vs. responsiveness trade-off. Shortening the lookback or switching from SMA to EMA reduces lag so entries occur earlier in a new trend, but it can increase whipsaws—rapid back-and-forth losing signals—when prices move sideways in a trading range. Extending (such as 100 or 200 days) filters range noise and preserves major trend rides, at the cost of delayed entries and giving back substantial open profit before exit triggers fire.
Moving Average Bands
Fixed-percentage moving average envelopes use an SMA or EMA as their center. If the mean is and the chosen offset is , the upper and lower bands are and . For instance, a 100 price average with 5% bands gives 105 and 95. These bands indicate percentage distance from the average; unlike Bollinger Bands, their percentage width does not adapt to volatility. Common daily trend horizons use roughly 20 sessions (one month), 50 sessions (intermediate) and 200 sessions (long-term), rather than mandatory lengths. Select lookbacks based on the analysis horizon and test them.
A stock's closing prices over five consecutive days are $40.00, $41.00, $42.00, $43.00, and $49.00. Using a 5-day Exponential Moving Average (EMA) seeded with the 5-day Simple Moving Average (SMA) on Day 5, what is the 5-day EMA on Day 6 if Day 6 closes at $52.00?
$46.00
$45.40
$46.60
$47.33
Which moving average signal is defined as a Golden Cross, and how do technical analysts interpret it?
The 20-day EMA crossing above the 50-day EMA, signaling an immediate intraday momentum reversal
The 50-day SMA crossing below the 200-day SMA, confirming a long-term bearish trend transition
The 50-day SMA crossing above the 200-day SMA, indicating a potential long-term bullish trend transition
Price closing above a flat 200-day SMA after a single-day volume spike, guaranteeing sustained institutional accumulation
When comparing a 10-day Exponential Moving Average (EMA) to a 50-day Simple Moving Average (SMA) during a choppy, sideways trading range, which statement best describes their relative behavior?
The 10-day EMA eliminates all false signals because it weights all historical prices equally
The 10-day EMA reacts faster to short-term swings and is generally more prone to whipsaws than the 50-day SMA
The 50-day SMA reacts faster to recent price turns and avoids lag at trend reversals
The 50-day SMA experiences zero drop-off effect when older outlier bars exit the lookback window
Sections you finish are checked off in the contents.