By Swoopr Editorial Team

Published · Updated

AI-assisted content · Swoopr is responsible for the final published article.

What Is a Moving Average?

A moving average smooths price data by calculating the average closing price over a rolling period — 20 days, 50 days, 200 days, and so on. The simple moving average (SMA) weights each day equally; the exponential moving average (EMA) gives more weight to recent prices. Both are used to identify trend direction and potential support/resistance levels.

How Moving Averages Work

A moving average is a lagging indicator — it is derived from past prices, so it always trails the current price. As each new closing price is added to the calculation, the oldest price in the lookback window is dropped, causing the line to "move" across the chart. The longer the period, the smoother the line and the more lag it carries. A 200-day SMA changes slowly and filters out most short-term noise; a 10-day EMA reacts quickly but can generate false signals in choppy markets.

Traders use moving averages in two main ways. First, as a trend filter: when price is above a moving average, the trend is considered up; below it, the trend is considered down. Many systematic strategies only take long trades when price is above the 200-day SMA and short trades when it is below, using the moving average as a regime filter rather than a precise entry signal. Second, as dynamic support and resistance: widely-followed moving averages (20-day, 50-day, 200-day) often act as price magnets — stocks pull back to them during uptrends and rally to them during downtrends, because so many participants are watching the same level.

Moving average crossovers are another common technique. A "golden cross" — the 50-day SMA crossing above the 200-day SMA — is widely cited as a long-term bullish signal. A "death cross" — the 50-day crossing below the 200-day — is cited as bearish. These crossovers receive significant media attention but are lagging by nature: the price has often already moved substantially before the cross occurs. Active traders typically combine moving averages with momentum indicators, volume analysis, and price structure rather than relying on crossovers alone.

Key Points

Learn More

Moving averages are one component of a broader technical analysis toolkit. See Technical Indicators for a complete guide to momentum oscillators, volume indicators, and how they combine with moving averages in real trading setups.

Related answers: What Is Trading Volume? · How Do You Read a Candlestick Chart?

Related Questions

What is the difference between SMA and EMA?

The simple moving average (SMA) calculates a plain arithmetic mean of closing prices over the lookback period, treating each day with equal weight. The exponential moving average (EMA) applies a multiplier that gives progressively more weight to recent prices, causing it to react faster to price changes than the SMA with the same period. Swing traders and short-term momentum traders often prefer the EMA for its responsiveness; position traders and investors often prefer the SMA because its smoother line reduces the risk of reacting to short-term noise.

What does it mean when a stock crosses its 200-day moving average?

The 200-day simple moving average is widely watched as a long-term trend dividing line. When a stock's price crosses above its 200-day SMA, it is often interpreted as a bullish signal — the stock may be transitioning from a downtrend to an uptrend. A cross below the 200-day SMA is treated as a bearish signal. These crossovers matter partly because many institutional investors and algorithmic systems use the 200-day as a reference, creating a self-reinforcing effect around the level. Volume and the broader market context should be considered before acting on the signal alone.