Learn/Technical Analysis/Moving Averages
IntermediateTechnical Analysisยท14 min read ยท 2 quizzes

Moving Averages (SMA & EMA)

Price is noisy. Moving averages cut through that noise to show you the underlying trend โ€” and tell you exactly which side of the trade to be on.


Module 1Moving Average Fundamentals

What a moving average actually does

Every day a stock trades, it creates a new closing price. Plotted individually, those prices look jagged and chaotic โ€” impossible to interpret trend from. A moving average solves this by averaging the last N closing prices into a single smoothed line on the chart.

As each new day closes, the oldest price drops off and the new one is added โ€” so the average is always "moving" forward. The result is a line that filters out the daily noise and shows you the direction the market is actually moving.

This is not a predictive tool. A moving average only knows what has already happened. Its value is in making the underlying trend visible and giving you an objective framework: price above the MA = market is above its average = trend is up.

SMA vs EMA โ€” which one to use?

There are two main types of moving average. The difference matters in practice:

Simple Moving Average (SMA)

All N periods are weighted equally. A 50-day SMA is just the sum of the last 50 closes divided by 50. Simple, transparent, and consistent.

Best for: Identifying major trend levels and long-term support/resistance. The 200-day SMA is almost always an SMA.

Exponential Moving Average (EMA)

Recent prices are weighted more heavily using an exponential multiplier. The EMA reacts faster to new price information โ€” it follows price more closely.

Best for: Short and medium-term trading signals. The 12 and 26 EMA are the building blocks of MACD.

Price vs 9-period SMA vs 9-period EMA
PriceSMA (slow, smooth)EMA (fast, reactive)EMA closer to price

Notice how the EMA (yellow) tracks price more closely during sharp moves. The SMA (purple) is smoother but lags more.

๐Ÿ’กWhen to use each
Use the EMA when you need timely signals in a fast-moving trend โ€” it gets you in (and out) quicker. Use the SMA for big-picture trend analysis and identifying major support/resistance levels where institutions are positioned. Most traders use both: EMA for entries, SMA for the overall bias.

The three key moving averages every trader knows

You'll see these referenced constantly. They're standard because enough traders use them that they become self-fulfilling:

20-day MA
Used by: Short-term traders and swing traders
What it means: Reflects roughly one month of trading. Price above = short-term uptrend. Often the first MA to react when a trend changes.
How to use: Pullback entries in a short-term trend. If price is above and pulls back to touch the 20 MA without breaking it, swing traders often buy that touch.
50-day MA
Used by: Swing traders and medium-term investors
What it means: Reflects about two and a half months. The most watched MA by active traders. Respected as major dynamic support in bull markets.
How to use: Trend confirmation. Price consistently above the 50 MA = solid uptrend. Break below the 50 MA = potential trend shift. The 50/200 crossover generates the golden/death cross signal.
200-day MA
Used by: Long-term investors, institutional analysts, market commentators
What it means: Reflects nearly a full year of trading. Widely considered the dividing line between a bull and bear market. Institutions watch this closely.
How to use: Big-picture orientation. Is price above or below the 200 MA? This one question tells you the broad market context. In earnings seasons, the 200 MA is often cited directly by analysts.

๐Ÿง Quick Check โ€” 4 questions
Moving Average Fundamentals1 / 4

What is the core difference between an SMA and an EMA?


Module 2Trading with Moving Averages

Moving averages as dynamic support and resistance

In a strong uptrend, moving averages don't just indicate direction โ€” they act as moving support levels. Price pulls back to the MA, finds buyers, and bounces higher. In a downtrend, they act as dynamic resistance โ€” every rally toward the MA gets sold.

This is why the 200-day MA pullback is one of the most watched setups in markets. A stock in a clear long-term uptrend that pulls back to test the 200 MA โ€” and holds โ€” is a textbook entry setup for long-term investors. The stop is just below the 200 MA.

๐Ÿ“ŒThe MA bounce trade setup
1. Confirm the stock is in an uptrend (price well above the chosen MA, making higher highs).
2. Wait for a pullback toward the MA โ€” ideally to within 1โ€“2% of it.
3. Look for a bullish candle forming at the MA (hammer, bullish engulfing).
4. Enter with a stop just below the MA. If the MA breaks and price closes below it on volume, exit.

The golden cross and death cross

The most famous MA-based signals in investing are the golden cross and death cross โ€” produced when the 50-day and 200-day moving averages cross each other.

Golden Cross & Death Cross
Golden Cross โœ“Death Cross(50 below 200)50-day MA200-day MA

When the 50-day crosses above the 200-day: Golden Cross (bullish). Below: Death Cross (bearish).

โ˜€๏ธ Golden Cross (Bullish)

The 50-day MA crosses above the 200-day MA. Signals that short-term momentum has recovered above long-term trend. Historically followed by strong bull markets. Major institutions use this as a buy trigger.

๐Ÿ’€ Death Cross (Bearish)

The 50-day MA crosses below the 200-day MA. Signals that short-term momentum has broken below long-term trend. Often triggers selling from systematic funds. Notable precursor to extended bear markets in 2008 and 2020.

โš ๏ธThe lag problem with crosses
Crossovers are powerful in trending markets but lag significantly. The golden cross in March 2009 fired weeks after the market bottom โ€” you would have missed the first 30% of the recovery. Use crosses for big-picture trend confirmation, not as precise entry/exit timing signals.

Real-world example: SPY and the 200-day MA in 2023

2023 offers one of the cleanest recent examples of the 200-day MA acting as dynamic support. After the brutal 2022 bear market, SPY bottomed near $350. As the new uptrend took hold, each pullback throughout 2023 found buyers right at the 200-day SMA โ€” which was rising steadily.

SPY 2023 โ€” 200-day MA acting as dynamic support
Illustrative price action based on 2023 SPY trend
MA TouchBuy zoneNew highs โ†—SPY Price200-day MA

Each time SPY pulled back to the 200-day MA in 2023, buyers stepped in and the uptrend resumed.

How the trade set up each time

1
Confirm the trend

SPY was making higher highs and higher lows. Price was well above the 200-day SMA. The trend context was bullish โ€” so you were looking for buys, not shorts.

2
Wait for the pullback

On two separate occasions in early 2023, SPY pulled back 7โ€“10% from local highs and approached the 200-day MA. Volume dried up during the pullback โ€” no aggressive selling.

3
Look for the reversal candle

At the MA, bullish candles formed โ€” hammers and engulfing patterns. This was confirmation that buyers were absorbing the selling pressure right at the key level.

4
Enter and define the stop

Entry above the bullish candle's high. Stop placed just below the 200-day MA. If SPY closed below it with conviction, that was the signal the trade had failed โ€” and you exit.

5
The outcome

Both pullbacks to the 200-day MA were followed by strong bounces toward new highs. The risk/reward was attractive: the stop was tight (3โ€“4% below entry) while the upside was a return to the prior highs.

๐Ÿ”‘The institutional reason this works
Large funds and ETFs have mandates tied to the 200-day MA โ€” some systematic strategies automatically buy S&P 500 positions when price reclaims this level. When enough capital is programmed to act at the same price reference, the level becomes self-reinforcing. You are trading with institutional flow, not against it.

Module 3When MAs Fail & Common Mistakes

When moving averages fail

Moving averages have one significant weakness: they are useless in sideways markets. In a range-bound, choppy market, price crosses above and below the MA repeatedly โ€” generating a constant stream of false signals. You'd be whipsawed in and out of positions constantly.

Before using MA signals, always ask: is there actually a trend here? If a stock has been trading sideways in a $10 range for six months, a moving average crossover means almost nothing. Switch to support/resistance and range-trading tools instead.

Common mistakes โ€” and what they actually cost you

01
Using too many MAs at once
Why it hurts: Stacking 5โ€“7 moving averages creates visual noise and contradictory signals โ€” some will say buy while others say sell at the same moment.
How to avoid it: Pick two: typically a short-term (20 or 50 EMA) and a long-term (200 SMA). Use them consistently and know what each one means before you look at the chart.
02
Treating the MA as a precise entry trigger
Why it hurts: Moving averages are zones, not exact price levels. Waiting for price to touch the MA to the cent often means you miss the setup โ€” price gets within 0.3% and bounces without ever tagging the line.
How to avoid it: Treat the MA as a 0.5โ€“1% zone. If price is trading within that range with a bullish candle, that's close enough to be relevant. Wait for candle confirmation, not a pixel-perfect touch.
03
Acting on crossovers without trend context
Why it hurts: A 50/200 golden cross inside a bear market rally is far weaker than the same signal in a sustained bull market. Crossovers in choppy conditions generate whipsaws โ€” you enter, get stopped out, re-enter, get stopped out again.
How to avoid it: Always check the big-picture first. Is price above or below the 200-day MA? Use that as your bias filter. Only act on shorter MA crossovers when they align with the larger trend direction.
04
Confusing price touching the MA with the MA being support
Why it hurts: Price can slice right through a moving average โ€” especially in volatile or news-driven markets. A single touch does not make it support. Support is demonstrated by a bounce, ideally on above-average volume.
How to avoid it: Require two things before calling an MA support: (1) price approaches and holds above the MA, and (2) a bullish reversal candle forms at that level. The candle is the confirmation โ€” not the touch itself.
๐Ÿ“ŠQuick reference: MA signal strength by market condition
Market conditionMA usefulnessBetter tool
Strong uptrendHigh โ€” dynamic support signals reliableโ€”
Strong downtrendHigh โ€” dynamic resistance signals reliableโ€”
Choppy sideways rangeLow โ€” repeated false crossoversRSI, S/R levels
Post-crash recoveryModerate โ€” watch for golden cross lagVolume + S/R
News-driven spikeLow โ€” price moves too fast for MAsOrder flow, L2

๐Ÿง Quick Check โ€” 4 questions
Trading with Moving Averages1 / 4

SPY has been in an uptrend for 6 months and pulls back to the 200-day SMA. A bullish hammer candle forms right at the MA. What is the correct action?

See moving averages on real charts

Open any stock on Liv2Trade and observe the 50 and 200-day moving averages. Is price above or below? Is there a golden or death cross forming?

Up Next
RSI: Relative Strength Index โ†’
Next Article