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

Last updated: December 2026

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 nn closing prices:

SMAt=Pt+Pt−1+⋯+Pt−n+1n=1n∑i=0n−1Pt−i\text{SMA}_t = \frac{P_t + P_{t-1} + \dots + P_{t-n+1}}{n} = \frac{1}{n}\sum_{i=0}^{n-1} P_{t-i}

Every observation inside the nn-period lookback window receives an identical weight of 1/n1/n, while every observation older than nn 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:

SMAt−SMAt−1=Pt−Pt−nn\text{SMA}_t - \text{SMA}_{t-1} = \frac{P_t - P_{t-n}}{n}

The one-period change in the SMA equals the difference between the newest price entering the window (PtP_t) and the oldest price leaving the window (Pt−nP_{t-n}). If an unusually large price spike or crash drops out of the window nn 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 nn on the most recent close down to 11 on the oldest close in the window. The sum of these integer weights is the triangular number n(n+1)2\frac{n(n+1)}{2}:

WMAt=nPt+(n−1)Pt−1+⋯+1⋅Pt−n+1n(n+1)2\text{WMA}_t = \frac{n P_t + (n-1)P_{t-1} + \dots + 1 \cdot P_{t-n+1}}{\frac{n(n+1)}{2}}

For a 5-day WMA, the weights sum to 5(6)2=15\frac{5(6)}{2} = 15, placing 5/15=33.3%5/15 = 33.3\% of total weight on today's close and only 1/15=6.7%1/15 = 6.7\% 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:

EMAt=αPt+(1−α)EMAt−1=EMAt−1+α(Pt−EMAt−1)\text{EMA}_t = \alpha P_t + (1 - \alpha)\text{EMA}_{t-1} = \text{EMA}_{t-1} + \alpha\left(P_t - \text{EMA}_{t-1}\right)

Here, α\alpha is the smoothing constant, defined for a nominal lookback period nn as:

α=2n+1\alpha = \frac{2}{n + 1}

For example, a 9-day EMA uses α=29+1=0.20\alpha = \frac{2}{9+1} = 0.20 (20%20\%), while a 19-day EMA uses α=219+1=0.10\alpha = \frac{2}{19+1} = 0.10 (10%10\%). To begin the recursion on the first nn bars of a series, charting platforms typically seed EMAn\text{EMA}_n using the initial nn-day SMA (or occasionally the first closing price P1P_1). Because older prices decay smoothly by (1−α)(1 - \alpha) 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, α=1/n\alpha=1/n, in indicators such as RSI, ATR and directional movement. Initialize with the arithmetic average of the first nn observations; subsequent values follow Wt=Wt−1+(Pt−Wt−1)/nW_t=W_{t-1}+(P_t-W_{t-1})/n. A 14-period Wilder average uses 1/141/14, the same recursive weight as an EMA of nominal length 27 (2/282/28); initialization can differ. A 14-period ordinary EMA instead uses 2/152/15.

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 (n=5n = 5) on Day 5 and Day 6, seeding EMA5=SMA5\text{EMA}_5 = \text{SMA}_5.

Day 5 Calculations (Window: Days 1–5)

  • 5-day SMA (Day 5):
SMA5=50.00+52.00+51.00+54.00+58.005=265.005=53.00\text{SMA}_5 = \frac{50.00 + 52.00 + 51.00 + 54.00 + 58.00}{5} = \frac{265.00}{5} = 53.00
  • 5-day WMA (Day 5): The denominator is 5(5+1)2=15\frac{5(5+1)}{2} = 15:
WMA5=1(50.00)+2(52.00)+3(51.00)+4(54.00)+5(58.00)15=50+104+153+216+29015=813.0015=54.20\text{WMA}_5 = \frac{1(50.00) + 2(52.00) + 3(51.00) + 4(54.00) + 5(58.00)}{15} = \frac{50 + 104 + 153 + 216 + 290}{15} = \frac{813.00}{15} = 54.20
  • 5-day EMA (Day 5): Seeded at EMA5=SMA5=$53.00\text{EMA}_5 = \text{SMA}_5 = \text{\textdollar}53.00, with smoothing constant α=25+1=26=13\alpha = \frac{2}{5+1} = \frac{2}{6} = \frac{1}{3}.

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:
SMA6=52.00+51.00+54.00+58.00+59.005=274.005=54.80\text{SMA}_6 = \frac{52.00 + 51.00 + 54.00 + 58.00 + 59.00}{5} = \frac{274.00}{5} = 54.80
  • 5-day WMA (Day 6):
WMA6=1(52.00)+2(51.00)+3(54.00)+4(58.00)+5(59.00)15=52+102+162+232+29515=843.0015=56.20\text{WMA}_6 = \frac{1(52.00) + 2(51.00) + 3(54.00) + 4(58.00) + 5(59.00)}{15} = \frac{52 + 102 + 162 + 232 + 295}{15} = \frac{843.00}{15} = 56.20
  • 5-day EMA (Day 6):
EMA6=13(59.00)+23(53.00)=53.00+13(59.00−53.00)=55.00\text{EMA}_6 = \frac{1}{3}(59.00) + \frac{2}{3}(53.00) = 53.00 + \frac{1}{3}(59.00 - 53.00) = 55.00
Moving Average TypeWeighting SchemeDay 5 ValueDay 6 ValueDrop-Off Vulnerability
Simple (SMA)Equal (1/n=20%1/n = 20\% each)$53.00$54.80High; Pt−nP_{t-n} exits abruptly
Weighted (WMA)Linear (5/155/15 down to 1/151/15)$54.20$56.20Low; oldest bar has smallest weight
Exponential (EMA)Recursive (α=1/3\alpha = 1/3 on PtP_t)$53.00$55.00None; 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 33.3%33.3\% on Day 6 and 26.7%26.7\% on Day 5 (60%60\% combined), whereas the 5-day EMA places 33.3%33.3\% on Day 6 and 22.2%22.2\% on Day 5.

Crossover Signals, Dynamic Levels, and Limitations

Technicians apply moving averages through three primary frameworks:

  1. 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., 1%1\%–3%3\%). Wait for the moving average itself to slope in the direction of the trade to avoid fading established momentum.
  2. 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.
  3. 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 nn 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 nn (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 MM and the chosen offset is pp, the upper and lower bands are M(1+p)M(1+p) and M(1−p)M(1-p). 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.

Loading diagram...
Moving Average Selection and Signal Framework
Test Your Knowledge

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?

A

$46.00

B

$45.40

C

$46.60

D

$47.33

Test Your Knowledge

Which moving average signal is defined as a Golden Cross, and how do technical analysts interpret it?

A

The 20-day EMA crossing above the 50-day EMA, signaling an immediate intraday momentum reversal

B

The 50-day SMA crossing below the 200-day SMA, confirming a long-term bearish trend transition

C

The 50-day SMA crossing above the 200-day SMA, indicating a potential long-term bullish trend transition

D

Price closing above a flat 200-day SMA after a single-day volume spike, guaranteeing sustained institutional accumulation

Test Your Knowledge

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?

A

The 10-day EMA eliminates all false signals because it weights all historical prices equally

B

The 10-day EMA reacts faster to short-term swings and is generally more prone to whipsaws than the 50-day SMA

C

The 50-day SMA reacts faster to recent price turns and avoids lag at trend reversals

D

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.