Moving Averages: SMA, EMA, and WMA Use Cases

intermediatePublished: 2025-12-30

What Moving Averages Measure

Moving averages smooth price data by calculating average values over a specified lookback period. They reduce noise from daily price fluctuations and help identify the underlying trend direction.

The three primary types—Simple Moving Average (SMA), Exponential Moving Average (EMA), and Weighted Moving Average (WMA)—differ in how they weight historical data points. Each weighting scheme produces different responsiveness to recent price changes.

Simple Moving Average (SMA)

The SMA assigns equal weight to all prices in the lookback period.

Formula: SMA = (P₁ + P₂ + P₃ + ... + Pn) / n

Where:

  • P = Closing price for each period
  • n = Number of periods

SMA Calculation Example

Calculate a 5-day SMA using these closing prices:

  • Day 1: $50.00
  • Day 2: $51.25
  • Day 3: $50.75
  • Day 4: $52.00
  • Day 5: $51.50

SMA(5) = ($50.00 + $51.25 + $50.75 + $52.00 + $51.50) / 5 SMA(5) = $255.50 / 5 = $51.10

On Day 6, if the close is $53.00:

  • Drop Day 1 ($50.00), add Day 6 ($53.00)
  • New SMA(5) = ($51.25 + $50.75 + $52.00 + $51.50 + $53.00) / 5
  • New SMA(5) = $258.50 / 5 = $51.70

Characteristics:

  • Equal weight to all periods means old data affects the average as much as recent data
  • Slower to respond to price changes
  • Best for identifying longer-term trends
  • Common periods: 20-day, 50-day, 100-day, 200-day

Exponential Moving Average (EMA)

The EMA applies greater weight to recent prices using a smoothing multiplier.

Formulas: Multiplier = 2 / (n + 1) EMA = (Current Price × Multiplier) + (Previous EMA × (1 - Multiplier))

Where n = number of periods

EMA Calculation Example

Calculate a 5-day EMA:

Step 1: Calculate the multiplier Multiplier = 2 / (5 + 1) = 2 / 6 = 0.3333 (33.33%)

Step 2: Use SMA as the initial EMA value From our prior example, the initial EMA (using Day 1-5 SMA) = $51.10

Step 3: Calculate Day 6 EMA with close of $53.00 EMA = ($53.00 × 0.3333) + ($51.10 × 0.6667) EMA = $17.67 + $34.07 = $51.74

Compare to SMA on Day 6: $51.70 The EMA ($51.74) responds more quickly to the price increase.

Weight distribution in a 10-period EMA:

  • Most recent price: 18.2%
  • Second most recent: 14.9%
  • Third most recent: 12.2%
  • Remaining 7 periods share 54.7%

Weighted Moving Average (WMA)

The WMA assigns linearly decreasing weights to older prices.

Formula: WMA = (P₁ × n + P₂ × (n-1) + P₃ × (n-2) + ... + Pn × 1) / (n + (n-1) + (n-2) + ... + 1)

The denominator equals n × (n+1) / 2

WMA Calculation Example

Calculate a 5-day WMA using the same prices:

  • Day 1: $50.00 (weight: 1)
  • Day 2: $51.25 (weight: 2)
  • Day 3: $50.75 (weight: 3)
  • Day 4: $52.00 (weight: 4)
  • Day 5: $51.50 (weight: 5, most recent)

Denominator = 5 × 6 / 2 = 15

WMA = ($50.00 × 1 + $51.25 × 2 + $50.75 × 3 + $52.00 × 4 + $51.50 × 5) / 15 WMA = ($50.00 + $102.50 + $152.25 + $208.00 + $257.50) / 15 WMA = $770.25 / 15 = $51.35

Weight distribution for 5-period WMA:

  • Most recent (Day 5): 5/15 = 33.3%
  • Day 4: 4/15 = 26.7%
  • Day 3: 3/15 = 20.0%
  • Day 2: 2/15 = 13.3%
  • Day 1: 1/15 = 6.7%

Comparison of Responsiveness

Using our example data, here are Day 5 values:

TypeValueWeighting Method
SMA(5)$51.10Equal
EMA(5)$51.10*Exponential decay
WMA(5)$51.35Linear decay

*EMA equals SMA on the initial calculation

After Day 6 ($53.00 close):

TypeValueChange from Day 5
SMA(5)$51.70+$0.60
EMA(5)$51.74+$0.64
WMA(5)$51.82+$0.47

The WMA and EMA react more quickly to price changes than the SMA.

Common Moving Average Periods and Uses

Short-Term (5-20 periods)

  • 9-day EMA: Frequently used in MACD calculations
  • 10-day SMA: Short-term trend gauge
  • 20-day SMA: Approximates one trading month; common for swing traders

Intermediate-Term (21-100 periods)

  • 50-day SMA: Widely watched institutional benchmark
  • 50-day EMA: More responsive intermediate trend indicator

Long-Term (100+ periods)

  • 100-day SMA: Intermediate-to-long trend filter
  • 200-day SMA: Major trend indicator; bull/bear market threshold for many analysts

Moving Average Crossover Signals

Crossovers between two moving averages generate trading signals:

Golden Cross: Shorter MA crosses above longer MA (potentially bullish) Death Cross: Shorter MA crosses below longer MA (potentially bearish)

Crossover Example

50-day SMA and 200-day SMA values over four days:

Day50-day SMA200-day SMAPosition
1$48.50$49.2550 below 200
2$49.00$49.2050 below 200
3$49.30$49.1550 above 200 (Golden Cross)
4$49.75$49.1050 above 200

The golden cross occurred on Day 3 when the 50-day SMA ($49.30) crossed above the 200-day SMA ($49.15).

Lag consideration: Because both averages use historical data, crossovers occur after trends have already begun. A golden cross confirms an uptrend is underway rather than predicting one will start.

Use Cases by Average Type

SMA Best Applications

  • Identifying major support/resistance levels (50, 100, 200-day)
  • Long-term trend determination
  • Situations where you want to filter out short-term noise
  • Markets with relatively stable trends

EMA Best Applications

  • Short-term trading where responsiveness matters
  • As a component in other indicators (MACD uses EMAs)
  • Fast-moving markets or volatile securities
  • When early detection of trend changes has priority

WMA Best Applications

  • Custom indicator development
  • Situations requiring specific, linear weighting schemes
  • Less common than SMA and EMA in standard practice

Limitations and Tradeoffs

Lag is inherent: All moving averages lag price action. The longer the period, the greater the lag. A 200-day SMA reflects an average of prices from up to 200 days ago.

Whipsaw in ranging markets: When price oscillates around a moving average without a clear trend, signals generate frequent losses as price crosses back and forth.

No predictive power: Moving averages describe what has happened, not what will happen. A rising 50-day SMA indicates prices have generally increased over the past 50 days. It does not guarantee prices will continue rising.

Parameter sensitivity: Results vary significantly based on the period chosen. A 10-day EMA and a 12-day EMA will generate different signals. There is no universally "correct" parameter.

Practical Application Guidelines

Multiple timeframe analysis: Use longer-period averages (50, 200-day) to identify the primary trend direction, then use shorter-period averages (10, 20-day) for entry timing in the direction of the larger trend.

Support and resistance: Moving averages often act as dynamic support (in uptrends) or resistance (in downtrends). A stock in an uptrend may repeatedly bounce off its 50-day SMA.

Envelope and band creation: Adding fixed percentages above and below a moving average creates trading bands:

  • Upper band = SMA × 1.03 (3% above)
  • Lower band = SMA × 0.97 (3% below)

If SMA(20) = $50.00:

  • Upper band = $51.50
  • Lower band = $48.50

Next Steps

  1. Calculate a 10-day SMA, 10-day EMA, and 10-day WMA for a stock using the formulas provided, then compare how each responds when the stock makes a significant daily move.

  2. Plot 50-day and 200-day SMAs on a chart covering at least two years to identify any golden cross or death cross events and observe subsequent price action.

  3. Test how a 20-day EMA behaves as support or resistance for a trending stock by noting how often price bounces from the average versus breaks through it.

  4. Document the lag time between when a trend visually begins on a price chart and when a moving average crossover confirms the trend change.

  5. Compare signals from a 9/21 EMA crossover system to a 50/200 SMA crossover system on the same stock to observe how parameter selection affects signal frequency and timing.

Related Articles