๐Ÿ“ŠStockCalc

Moving Average (MA)

A moving average smooths out price data by creating a constantly updated average price over a specific time period. It helps identify trends by filtering out short-term noise.

Formula

Simple MA = (Sum of closing prices over N periods) รท N

Example

For a 5-day SMA: if closing prices are $100, $102, $98, $105, $103, the SMA = ($100+$102+$98+$105+$103) รท 5 = $101.60

How to Interpret It

When price crosses above the MA, it signals an uptrend. Below signals downtrend. Common periods: 50-day (medium-term) and 200-day (long-term). The 200-day MA is closely watched โ€” a cross above it is called a 'golden cross.'

SMA vs. EMA: Which to Use?

FeatureSMA (Simple)EMA (Exponential)
WeightingEqual weight to all daysMore weight to recent prices
ResponsivenessSlower to reactFaster to react
Best forLong-term trend identificationShort-term trading signals
Common periods50-day, 200-day12-day, 26-day (MACD)
Noise filteringBetter at filtering noiseMore prone to whipsaws

Golden Cross & Death Cross: Historical Performance

The golden cross (50-day MA crossing above 200-day) and death cross (50-day crossing below 200-day) are widely watched signals. Over 97 years of S&P 500 data (1928โ€“2025):

SignalFinding
Death cross frequency49 occurrences over 97 years
Average drawdown after death cross13.2%
Death cross followed by gains73.5% of cases (36 of 49)
Worst death cross outcomes5 events with >45% losses (1929, 2008, etc.)
Golden cross (SPY backtest)$10K โ†’ $16,122 over 4 cycles (2021โ€“2026)

The key insight: death crosses often produce short-term rebounds, but the rare catastrophic events (like 2008's ~50% drop) make them dangerous to ignore. These signals work best combined with other indicators, not alone.

๐Ÿ’ก Pro Tip: Use MAs as Dynamic Support/Resistance

The 50-day and 200-day moving averages often act as dynamic support in uptrends and resistance in downtrends. Institutional traders watch these levels closely. When price pulls back to the 50-day MA in a strong uptrend and bounces, it's one of the highest-probability entry signals available.

Common Mistakes

1. Using MAs as standalone buy/sell signals. Moving averages are lagging indicators โ€” they confirm trends, they don't predict them. By the time a golden cross appears, the stock has often already moved significantly.

2. Over-optimizing the period. Backtesting to find the "perfect" MA period (17-day? 23-day?) is curve-fitting. Stick with widely used periods (20, 50, 200) because their effectiveness comes from self-fulfilling prophecy โ€” everyone watches them.

3. Ignoring the slope of the MA. A flat 200-day MA means the trend is neutral โ€” crossovers are noise. A sharply rising 200-day MA means a strong uptrend โ€” golden crosses in this context are more reliable.

4. Applying the same MA to all timeframes. A 50-day MA on a daily chart is meaningful. A 50-period MA on a 5-minute chart covers less than one trading day and is nearly useless. Match your MA to your trading timeframe.

Calculate Moving Average instantly:

Try Stock Return Calculator โ†’

Frequently Asked Questions

Which moving average is best for trading?

No single MA is best. The 50-day and 200-day SMAs are the most widely watched, making them somewhat self-fulfilling. Day traders prefer 9 or 21 EMA for faster signals. Swing traders use 20 and 50. Long-term investors watch the 200-day as a trend filter. The key is consistency โ€” pick one strategy and stick with it.

What is a golden cross and death cross?

A golden cross occurs when the 50-day MA crosses above the 200-day MA โ€” traditionally a bullish signal. A death cross is the opposite: 50-day drops below 200-day, signaling bearish conditions. While these signals have predictive value, they're lagging indicators and often occur after the major move has already happened.

SMA vs EMA โ€” which should I use?

EMA reacts faster to recent prices, making it better for short-term trading and quick signals. SMA is smoother and less prone to whipsaws, making it better for identifying long-term trends. Many traders use both โ€” EMA for entry/exit signals and SMA for trend confirmation.

Related Terms

Beta ROI