Trend Indicator

Moving Averages

Moving averages smooth price data to reveal the underlying trend direction. They're the foundation of trend-following strategies and one of the most versatile tools in technical analysis.

Death CrossGolden CrossPriceSMA (20)EMA (9)
Basics

What are Moving Averages?

A moving average calculates the average price over a specified number of periods, then "moves" forward as new data becomes available. This creates a smoothed line that filters out short-term price noise.

Moving averages are lagging indicators — they're based on past prices. This makes them excellent for confirming trends but less useful for predicting reversals. The longer the period, the smoother (and more lagging) the average.

Trend Direction
Price above MA = Bullish
Dynamic Support
MAs act as S/R levels
Crossover Signals
MA crosses = Trend change
Types

Types of Moving Averages

Simple Moving Average (SMA)

Calculates the arithmetic mean of prices over a period. All prices are weighted equally. Smoother but slower to react to price changes.

SMA = (P₁ + P₂ + ... + Pₙ) / n

Exponential Moving Average (EMA)

Gives more weight to recent prices, making it more responsive to new information. Faster signals but more prone to whipsaws.

EMA = (Close × k) + (EMA_prev × (1-k)) where k = 2/(n+1)

Weighted Moving Average (WMA)

Assigns linearly increasing weights to more recent prices. Falls between SMA and EMA in terms of responsiveness.

Comparison

SMA vs EMA: Which to Use?

AspectSMAEMA
ResponsivenessSlower, more lagFaster, less lag
False SignalsFewer whipsawsMore whipsaws
Best ForLong-term trendsShort-term trading
Popular Uses50, 100, 200 SMA9, 12, 26 EMA
Signals

Crossover Signals

When a faster MA crosses a slower MA, it signals a potential trend change. These crossovers are among the most watched signals in technical analysis.

Golden Cross

The 50-day MA crosses above the 200-day MA. This bullish signal suggests a major trend reversal to the upside.

  • • Major bullish signal
  • • Often marks start of bull markets
  • • Wait for confirmation close above both MAs

Death Cross

The 50-day MA crosses below the 200-day MA. This bearish signal suggests a potential major downturn ahead.

  • • Major bearish signal
  • • Often precedes bear markets
  • • Exit longs, consider hedging

Popular Crossover Combinations

9/21 EMA: Short-term trend changes
10/20 SMA: Day trading signals
20/50 SMA: Swing trading signals
50/200 SMA: Long-term trend signals
Advanced

Dynamic Support & Resistance

Moving averages often act as dynamic support in uptrends and resistance in downtrends. Traders watch for price to "bounce" off key MAs.

MA as Support

In uptrends, price often pulls back to the MA before continuing higher. This creates buying opportunities.

  • • Wait for price to touch the MA
  • • Look for bullish candlestick patterns
  • • Set stop below the MA

MA as Resistance

In downtrends, price often rallies to the MA before continuing lower. This creates shorting opportunities.

  • • Wait for price to touch the MA
  • • Look for bearish candlestick patterns
  • • Set stop above the MA

Key MAs to watch: The 20, 50, 100, and 200-period MAs are most widely followed and therefore most likely to act as S/R levels.

Settings

Popular MA Settings

PeriodTypeUse Case
9 EMAEMAShort-term trend, scalping
20 SMA/EMABothShort-term trend, day trading
50 SMASMAMedium-term trend, swing trading
100 SMASMAMedium-long term trend
200 SMASMALong-term trend, institutional level
Pro Tip: The 200-day SMA is perhaps the most important MA. When price is above it, the market is generally considered bullish; below it, bearish.

MA Ribbon Strategy

Plot multiple MAs (like 8, 13, 21, 34, 55 EMAs) to create a "ribbon". When ribbons expand and align in one direction, the trend is strong. When they contract and tangle, expect consolidation.

Frequently Asked Questions

What is a moving average?

A moving average (MA) smooths price data by averaging prices over a set number of periods. It helps identify trend direction and dynamic support/resistance. Common types are SMA (simple) and EMA (exponential); EMA gives more weight to recent prices.

What is the difference between SMA and EMA?

SMA gives equal weight to all prices in the period; EMA gives more weight to recent prices and reacts faster to new data. EMAs are often used for short-term signals; SMAs (e.g. 200-day) are widely used for long-term trend context.

What do moving average crossovers mean?

A golden cross occurs when a faster MA crosses above a slower MA (e.g. 50 above 200), often interpreted as bullish. A death cross is when the faster MA crosses below the slower MA, often interpreted as bearish. Lag means crossovers confirm rather than lead.

Which moving average periods are most used?

Common choices: 9/21 for short-term, 50 for medium-term, 200 for long-term trend. Day traders use 8, 20, 50 EMAs; swing traders often use 20, 50, 200. Choose based on your timeframe and style.

Can moving averages be used as support and resistance?

Yes. In uptrends, price often bounces off MAs (e.g. 20 or 50 EMA) as dynamic support; in downtrends they can act as resistance. The 200-day MA is widely watched as a major trend and support/resistance level.