What Is a Moving Average? SMA vs EMA Explained
A moving average is the average price of an instrument over a specific number of periods, updated with each new candle. It smooths out price noise and shows you the general direction of the trend. Moving averages are the foundation of countless trading strategies and indicators, and understanding them is essential for any trader.
Simple Moving Average (SMA)
The SMA calculates the average closing price over a set number of periods. A 20-period SMA on a daily chart adds up the last 20 closing prices and divides by 20. Each day, the oldest price drops off and the newest price is added.
The SMA gives equal weight to every price in the period. The close from 20 days ago has the same influence as yesterday's close. This makes the SMA smooth and stable, but also slow to react to recent price changes.
Common SMA periods: 20 (short-term trend), 50 (medium-term trend), 200 (long-term trend). The 200 SMA is the most widely watched moving average in trading — institutions and algorithms use it as a trend filter.
Exponential Moving Average (EMA)
The EMA also averages price over a period, but it gives more weight to recent prices. This makes the EMA react faster to current price changes compared to the SMA.
A 20 EMA responds more quickly than a 20 SMA when price suddenly moves. The most recent candles have a larger influence on the calculation, so the EMA stays closer to current price.
The EMA reacts faster because it weights recent price more heavily. The SMA is smoother because it weights all prices equally. Neither is inherently better — they serve different purposes.
Common EMA periods: 8 (very short-term), 21 (short-term), 50 (medium-term). Day traders tend to prefer EMAs over SMAs because the faster response matches the faster decision-making required in intraday trading.
SMA vs EMA: Which Is Better?
Neither is universally better. The choice depends on your trading style and what you need the moving average to do.
Use SMA when: you want a smoother, more stable trend indicator that filters out noise. The 200 SMA on the daily chart is the gold standard for long-term trend identification. It does not react to every whipsaw, which is exactly what you want for big-picture analysis.
Use EMA when: you need faster signals that respond to current price action. The 8 and 21 EMAs on intraday charts help you catch trend changes earlier than SMAs would.
Many traders use both: EMAs for short-term trading decisions and SMAs for higher-timeframe trend context.
Moving Averages as Support and Resistance
Moving averages act as dynamic support and resistance levels. In an uptrend, price tends to pull back to a moving average and bounce. In a downtrend, rallies often get rejected at a moving average.
The 20 EMA is a common pullback level for short-term trends. The 50 SMA catches medium-term pullbacks. The 200 SMA is the line in the sand for the long-term trend — price above it is broadly bullish, price below it is broadly bearish.
These levels are self-fulfilling because so many traders watch them. When price approaches the 200 SMA, thousands of traders react, creating the support or resistance that makes the level work.
Moving Average Crossover Strategies
A crossover occurs when a faster moving average crosses above or below a slower one. When the 20 EMA crosses above the 50 SMA, it is a bullish signal (the golden cross). When it crosses below, it is bearish (the death cross).
Crossovers are lagging signals — they confirm a trend change after it has already started. This means you will not catch the exact bottom or top, but you will be on the right side of the larger move.
Filter crossover signals by the higher timeframe trend. A bullish crossover on the 15-minute chart during a daily uptrend is high-probability. The same crossover during a daily downtrend is risky.
The EMA Stack
When multiple EMAs are aligned in order — 8 above 21 above 50 above 200 — the trend is strong and clearly defined. This alignment is called an EMA stack. It is one of the most reliable visual indicators of trend strength.
When the stack is aligned, look for pullback entries to the first or second EMA. When the stack is messy (averages tangled and crossing), the market is choppy and trend strategies should sit out.
Choosing Your Period
There is no magic number. The best period depends on the instrument, timeframe, and your strategy. Start with the standards (20, 50, 200) and observe how price interacts with them on your charts.
If price consistently respects a certain average, use it. If it constantly whipsaws through an average, it is not useful for that instrument. Let the chart tell you which averages matter, not a formula.
Featured Indicator
EMA Stack Scanner
Scan for perfectly aligned EMA stacks across multiple symbols using this EasyLanguage RadarScreen indicator for TradeStation.
View IndicatorJoin the Community
Got questions about this topic? Join our Discord to chat with other traders.
Join DiscordLooking for more trading tools and indicators?
Browse Trading Systems