Moving Averages: SMA vs EMA, Key Periods & Crossovers
Moving averages smooth out day-to-day price noise so the underlying trend is easier to see. This guide covers how SMAs and EMAs are calculated, why traders watch the 20, 50, 100 and 200-day averages, how to read trend stacks such as EMA20 > EMA50 > EMA200, what golden and death crosses really tell you, and how to use moving averages in a stock screener.
What Are Moving Averages?
A moving average (MA) is the average price over a fixed number of periods, recalculated as each new bar closes. The oldest value drops out and the newest is added, so the line "moves" along with price. On a daily chart, a 50-day MA is the average closing price of the last 50 trading sessions.
Moving averages are trend tools. When price stays above a rising MA, the trend is up; when it stays below a falling MA, the trend is down; when price weaves back and forth across a flat MA, there's no clear trend. They are also the building blocks of other indicators, including MACD and Bollinger Bands (a 20-period SMA with bands two standard deviations above and below).
๐ก Why So Many Traders Watch the Same Lines
Because institutions, media and retail traders all watch the 50 and 200-day averages, these levels can attract buying or selling simply because so many people act around them. That effect is real but unreliable, so treat MAs as zones, not exact prices.
SMA vs EMA: What's the Difference?
Simple Moving Average (SMA)
The SMA gives every period equal weight: a 20-day SMA adds the last 20 closes and divides by 20. It's smooth and easy to interpret, but slow to react because a price from 19 days ago counts as much as today's.
Exponential Moving Average (EMA)
The EMA applies a weighting multiplier of 2 รท (N + 1) to the latest close and carries forward the rest from the previous EMA. For a 20-day EMA the multiplier is about 0.095, so today's close accounts for roughly 9.5% of the value. The result reacts faster to new moves.
SMA(N) = (Cโ + Cโ + โฆ + Cโ) รท N
EMA today = (Close โ EMA yesterday) ร 2/(N+1) + EMA yesterday
C = closing price. Most platforms default to closes, but you can apply MAs to highs, lows or other inputs.
| Feature | SMA | EMA |
|---|---|---|
| Weighting | Equal weight to all periods | More weight to recent prices |
| Responsiveness | Slower, smoother | Faster, more reactive |
| Common use | Long-term trend (50/200-day), widely cited levels | Short-term trend, swing entries, trend stacks |
| Whipsaws | Fewer | More |
๐ฏ Practical Approach
Many traders use SMAs for the widely followed long-term levels (50 and 200-day) and EMAs for shorter-term timing (9, 10, 20 or 21). The difference between a 50-day SMA and 50-day EMA is usually small; consistency matters more.
Popular Periods: 20, 50, 100 and 200-Day
About two weeks. Tracks fast momentum; strong trends often hold above it.
About one trading month. A common swing-trading trend line and the midline of Bollinger Bands.
About a quarter. Widely watched by institutions and in growth-stock trading.
About five months. A middle ground between the 50 and 200-day averages.
About ten months. The most-cited long-term trend filter for stocks and indexes.
On Indian and other markets you'll often see the abbreviation DMA (daily moving average), as in "price above 20 DMA" or "200 DMA." It means the same thing as a 20 or 200-day MA. On intraday charts the same numbers refer to bars, not days: a 20-period MA on a 5-minute chart covers 100 minutes.
Using Moving Averages to Identify the Trend
- Uptrend: price above the MA and the MA sloping upward
- Downtrend: price below the MA and the MA sloping downward
- Range: price crossing back and forth over a flat MA
Slope matters as much as position. Price above a falling 200-day MA is often a bounce inside a downtrend, not a new uptrend. Distance matters too: a stock 40% above its 50-day MA is extended, and pullbacks toward the average are common after such runs.
Simple Trend Filter (Educational)
- Plot the 50 and 200-day SMAs
- Consider long setups only when price is above both and the 200-day is flat or rising
- Consider short setups (or stay out) when price is below both
- When price sits between them, treat the trend as unclear and reduce activity
EMA Trend Stacks: EMA20 > EMA50 > EMA200
A moving-average stack lines up several averages in order. In a bullish stack, price > EMA20 > EMA50 > EMA200, with all three rising. This means short, medium and long-term trends agree. In a bearish stack the order is reversed.
Stacks are popular in screeners because they are easy to express as filters and quickly separate trending stocks from choppy ones. Variations include EMA 9 > 21 > 50 for faster swing trading, or 10 > 20 > 50 > 200 for growth-stock "trend templates."
Golden Cross, Death Cross and Faster Crossovers
Golden Cross
The 50-day MA crosses above the 200-day MA. It's widely reported and signals that the intermediate trend has caught up with the long-term trend. Because both lines lag, the cross often appears after a substantial rally from the low.
Death Cross
The 50-day MA crosses below the 200-day MA. Like the golden cross, it confirms a decline that has already happened. In history, some death crosses preceded long bear markets and others occurred near lows just before recoveries.
Faster Crossovers
Swing traders often use 9/21 EMA or 10/20 EMA crossovers, and day traders 5/13 EMA on intraday charts. Faster crosses trigger earlier but produce more false signals.
โ ๏ธ Caveats
Crossovers whipsaw in sideways markets: the averages flatten and cross repeatedly. They also give no information about where to place a stop. Combine them with price structure, volume and a volatility measure such as ATR to size risk.
Moving Averages as Dynamic Support and Resistance
In uptrends, pullbacks often pause near a rising MA; in downtrends, rallies often stall near a falling MA. Unlike horizontal support and resistance, these levels move with price.
Example Pullback Framework (Educational)
- Confirm the trend: price above a rising 50-day MA, 50-day above 200-day
- Wait for a pullback to the 20-day EMA or 50-day MA on lighter volume
- Look for a bullish reversal candle, such as a hammer or bullish engulfing (see candlestick patterns)
- Place a stop below the MA or swing low, allowing for normal volatility
- Plan an exit near the prior high or when price closes decisively below the MA
๐ฏ Strength Shows in the Pullback Depth
Strong trends often hold the 10 or 20-day average; healthy but slower trends pull back to the 50-day; deeper tests of the 200-day signal a weakening trend.
VWAP vs Moving Averages
VWAP (volume-weighted average price) averages price weighted by the volume traded at each level, and standard VWAP resets every session. It represents the average price paid per share today, which makes it an intraday benchmark used by day traders and institutions measuring execution quality.
| Moving average | VWAP | |
|---|---|---|
| Inputs | Closing prices | Price and volume |
| Window | Fixed number of bars (rolling) | Cumulative from session open (resets daily) |
| Main use | Trend on any timeframe | Intraday fair-value reference |
Screens such as "price above VWAP and above EMA20 and EMA50" combine intraday strength with the multi-day trend. Learn more in volume analysis.
Moving Average Screener Filters
Moving averages translate cleanly into filters on the free Tockmarket stock screener (TradingView). Example combinations, for education only:
| Goal | Example filters |
|---|---|
| Long-term uptrend | Price > 200-day SMA, 50-day SMA > 200-day SMA |
| Bullish EMA stack | EMA20 > EMA50 > EMA200, RSI(14) 55โ70, average volume > 500K, price > $5 |
| Short-term breakout | Price > 20-day MA, volume > 2ร 20-day average, price near 20-day high |
| Pullback in uptrend | Price > 200-day SMA, price within 3% of 50-day SMA, RSI(14) 40โ50 |
| Oversold within uptrend | Price > 200-day SMA, RSI(14) < 35 |
| Below long-term trend (avoid or short list) | Price < 200-day SMA, 50-day SMA < 200-day SMA |
Add liquidity filters such as minimum price, average volume and market cap. For a full menu of trend, momentum, volume and fundamental filters, see stock screener criteria.
Common Moving Average Mistakes
Using MAs in ranging markets
In sideways markets price crosses the average constantly. Check whether the MA is flat before trusting crossovers.
Expecting MAs to predict
Moving averages describe the past. They confirm trends; they don't forecast tops or bottoms.
Treating MAs as exact lines
Price frequently undercuts an average intraday before closing back above it. Think in zones and use closing prices.
Over-optimizing periods
The difference between a 19 and 21-period MA is negligible. Pick widely used periods and stay consistent.
Too many lines
Five or six averages on one chart create clutter. Two or three, each with a clear role, is usually enough.
Frequently Asked Questions
What is the difference between SMA and EMA?
A simple moving average (SMA) weights every closing price in the window equally. An exponential moving average (EMA) gives more weight to recent prices, so it reacts faster to new moves but also produces more false signals in choppy markets.
What does price above the 200-day moving average mean?
It means the latest close is higher than the average close of roughly the last ten months of trading. Many investors use it as a simple long-term trend filter, but it says nothing about valuation or what happens next.
What does EMA20 > EMA50 > EMA200 mean?
It describes a bullish moving-average stack: the short-term average is above the medium-term average, which is above the long-term average. It indicates that short, medium and long-term trends are all pointing up, and it is a common trend-following screener filter.
Is the golden cross a reliable buy signal?
The golden cross, the 50-day MA crossing above the 200-day MA, confirms that a trend has already improved. Because both averages lag, it often appears well after a low and can whipsaw in sideways markets. It is better used as context than as a stand-alone signal.
Which moving average is best for swing trading?
Swing traders commonly watch the 10 or 20-day EMA for short-term trend and pullback entries and the 50-day MA for the intermediate trend. There is no single best period; consistency and testing matter more than the exact number.
What is the difference between VWAP and a moving average?
A moving average averages closing prices over a set number of bars. VWAP (volume-weighted average price) weights each price by the volume traded and standard VWAP resets every session, so it is mainly an intraday reference.
Key Takeaways
Moving averages smooth price to show trend direction; slope matters as much as position.
EMAs react faster than SMAs; the 50 and 200-day SMAs are the most widely watched levels.
A stack such as EMA20 > EMA50 > EMA200 means short, medium and long-term trends agree.
Golden and death crosses confirm moves that already happened and whipsaw in ranges.
In a screener, combine MA filters with momentum, volume and liquidity criteria.