Moving Averages (SMA & EMA)

The foundation of trend analysis. Smooth price data to reveal the underlying direction and identify golden cross, death cross, and dynamic support levels.

Trend
Golden Cross Bounce off 20 EMA 20 EMA 50 SMA 200 SMA MAs fan out = strong trend $185 $165 $148 $130

Bullish Signals

Bearish Signals

What Are Moving Averages?

Moving averages are the most widely used technical indicators in trading. They smooth out price fluctuations over a chosen period, revealing the underlying trend direction. Instead of reacting to every tick, a moving average shows where price has been on average, making it easier to see whether the trend is up, down, or sideways.

There are two main types. A Simple Moving Average (SMA) calculates the arithmetic mean of the last N closing prices. Every price in the window gets equal weight, which makes the SMA smooth but slow to react. A Exponential Moving Average (EMA) applies a weighting multiplier that gives recent prices more influence. This makes the EMA faster and more responsive to new price data, but also more prone to reacting to noise.

Most traders use a combination of both. The 20 EMA is popular for tracking the short-term trend. The 50 SMA captures the medium-term trend and is the basis for many crossover strategies. The 200 SMA is the most watched level in all of technical analysis, used by institutions worldwide to define the long-term trend and major support/resistance.

How to Use Moving Averages

Trend Direction. The simplest use of a moving average is determining trend direction. If price is above the 200 SMA and the 200 SMA is sloping upward, the long-term trend is bullish. If price is below a declining 200 SMA, the trend is bearish. This single observation prevents many traders from fighting the trend.

Golden Cross and Death Cross. The golden cross occurs when the 50 SMA crosses above the 200 SMA, signaling that medium-term momentum is turning bullish. The death cross is the opposite, with the 50 SMA crossing below the 200 SMA. These are lagging signals by nature since they confirm trend changes that have already started, but they are powerful for positioning in multi-month moves. Historically, golden crosses in major indices have preceded average gains of 10-15% over the following year.

Dynamic Support and Resistance. Moving averages act as floating support and resistance levels that move with price. In a healthy uptrend, pullbacks frequently find buyers at the 20 EMA or 50 SMA. The price touches the average, bounces, and the trend resumes. In a downtrend, rallies often stall at these same levels. Watching how price reacts when it reaches a major MA tells you a great deal about the strength of the trend.

MA Crossover Strategy. When a shorter MA crosses above a longer MA, it signals upward momentum. When it crosses below, it signals downward momentum. Common pairings include 9/21 EMA for short-term trading, 20/50 for swing trading, and 50/200 for position trading. The key is that crossover signals are inherently lagging. They work best in trending markets and produce frequent whipsaws in sideways ranges.

Multiple MA Strategy. Plotting three MAs simultaneously (such as 20, 50, and 200) creates a comprehensive trend picture. When all three are aligned in order (20 above 50 above 200, all sloping up), the trend is unambiguously bullish. When they fan apart, the trend is accelerating. When they converge and begin to flatten, the trend is losing momentum and a reversal may be approaching.

Common Mistakes

Using MA crossovers in sideways markets. The single biggest failure mode for moving average strategies is applying crossover signals during a range-bound market. When price oscillates in a tight band, the MAs will repeatedly cross back and forth, generating a stream of false buy and sell signals. Always check whether the market is trending (using ADX or visual slope analysis) before relying on crossovers.

Expecting moving averages to predict the future. Moving averages are lagging indicators. They summarize where price has been, not where it is going. A golden cross confirms that an uptrend is in progress; it does not predict one. Using MAs for trend confirmation rather than prediction is the correct mindset. Many traders compound this mistake by shortening the MA period to reduce lag, which just increases noise.

Ignoring the slope. A flat 200 SMA means the long-term trend is neutral, regardless of where price currently sits relative to it. A price above a flat 200 SMA is not as bullish as a price above a rising 200 SMA. The slope of the MA is just as important as the price's position relative to it. Look for MAs that are clearly angled in the direction of the trade.

Overloading the chart with too many MAs. Plotting five or six moving averages creates a confusing tangle of lines and contradictory signals. Stick to a clean three-MA setup (short, medium, long) and master it before adding complexity. Clarity beats complexity.

Recommended Settings

Moving Average Type Best For
20 EMA Exponential Short-term trend and dynamic support. Reacts quickly to price changes. Ideal for swing trade entries and trailing stops.
50 SMA Simple Medium-term trend direction. The most important MA for crossover strategies. Used in the golden cross/death cross.
200 SMA Simple Long-term trend and institutional reference level. Price above the 200 SMA = bullish regime. Below = bearish regime.

Frequently Asked Questions

A Simple Moving Average (SMA) gives equal weight to every closing price in the period. An Exponential Moving Average (EMA) applies a multiplier that gives more weight to recent prices, making it react faster to new data. The EMA is preferred for short-term trading because it catches trend changes earlier, while the SMA is preferred for long-term analysis because it is smoother and less prone to false signals.
A golden cross occurs when the 50-day Simple Moving Average crosses above the 200-day Simple Moving Average. It is widely regarded as a bullish signal indicating that medium-term momentum is strengthening and aligning with the long-term trend. Golden crosses are lagging signals that confirm an uptrend already in progress rather than predicting the start of one. They are most reliable in broad market indices.
A death cross is the bearish counterpart of the golden cross. It occurs when the 50-day SMA crosses below the 200-day SMA, signaling that medium-term momentum has turned negative. It warns of a potential shift to a sustained downtrend. Like the golden cross, it is a lagging confirmation signal and often triggers after a significant portion of the decline has already occurred.
The most widely used combination is the 20 EMA for short-term trend, 50 SMA for medium-term trend, and 200 SMA for long-term trend. Day traders often use faster pairings like the 9 and 21 EMA on intraday charts. Swing traders rely on 20 and 50 day averages. The 200 SMA is the most important single level and is watched by institutional investors worldwide as the dividing line between bullish and bearish conditions.
Yes. Moving averages function as dynamic support and resistance levels that move with the price. In an uptrend, pullbacks frequently find buyers at the 20 EMA or 50 SMA. In a downtrend, rallies often stall at these same averages. The 200 SMA is especially powerful as a support or resistance level because large institutional traders use it as a reference point for buy and sell decisions.

Related Indicators

Related Tools & Guides

Part of our Technical Analysis Guide