Moving Averages

Lesson 5 of 20, about 16 minutes

What you will learn

  • Calculate a simple moving average from a set of prices
  • Explain how a moving average smooths noise to reveal the trend
  • Tell a simple moving average from an exponential one
  • Understand crossovers and the lagging-indicator limitation

Raw price data is noisy, jumping around from period to period in ways that hide the underlying direction. A moving average is the simplest and most widely used tool for cutting through that noise. By averaging the price over a window of time, it smooths out the short-term jitter and reveals the trend underneath. It turns the visual idea of a trend into a calculated line.

Moving averages: SMA and EMA explained for beginners (Alice Blue)

Covers what simple and exponential moving averages are and how they smooth price. Watch this before the calculation below.

What a moving average does

A moving average keeps recalculating the average price over a fixed number of recent periods as new data arrives, producing a smooth line that follows price at a lag. Because it averages away the small wiggles, it makes the overall direction easier to see, and the line itself can act as a guide to the trend.

Key terms

Simple moving average (SMA)
The plain average of the last N closing prices, giving each equal weight.
Exponential moving average (EMA)
A moving average that weights recent prices more, so it responds faster.
Golden cross
When a shorter average crosses above a longer one, such as the 50-day above the 200-day. Bullish.
Lagging indicator
One built from past prices, so its signals arrive after a move has already begun.
Worked example

Calculating a simple moving average

Compute the 5-day simple moving average for a stock whose last five closing prices were 10, 12, 11, 13, and 14.

  1. Add the prices. 10 plus 12 plus 11 plus 13 plus 14 is 60.
  2. Divide by the number of periods. 60 divided by 5.
  3. Read the result. That equals 12.
Result: The 5-day simple moving average is 12.

Why it matters: Each day, the oldest price drops off and the newest is added, so the average moves along with price, smoothing out the day-to-day jumps.

Calculation

Calculate a simple moving average

A stock's last four closing prices were 20, 22, 21, and 25. What is its 4-day simple moving average?

Need a hint?

Add the four prices, then divide by 4.

Simple versus exponential

  • A simple moving average gives equal weight to every period in its window. A fifty-day simple moving average is just the average of the last fifty closing prices, recalculated each day.
  • An exponential moving average gives more weight to recent prices, so it responds faster to new information and turns more quickly than a simple moving average of the same length.
  • The choice is a trade-off: faster averages catch changes sooner but produce more false signals, while slower ones are steadier but lag further behind.

How traders use them

Moving averages serve several purposes. The direction of the line indicates the trend, so a rising average with price above it suggests an uptrend, and a falling average with price below it suggests a downtrend. The average can also act as dynamic support or resistance, a moving level that price tends to bounce off. Common windows include the fifty-day average for the intermediate trend and the two-hundred-day average for the long-term trend, which are among the most watched lines in markets.

Crossovers

When two moving averages of different lengths cross, traders treat it as a signal. When a shorter average crosses above a longer one, it is considered bullish, and the specific crossing of the fifty-day above the two-hundred-day is called a golden cross. When a shorter average crosses below a longer one, it is considered bearish, and the fifty-day crossing below the two-hundred-day is called a death cross. These crossovers are popular precisely because they are simple and objective.

Which is the best moving average to trade with? (Rayner Teo)

Compares how SMAs and EMAs behave on price. Watch for how the trade-off between responsiveness and steadiness plays out in practice.

A moving average trades responsiveness for clarity. It will always tell you where the trend has been, never quite where it is going.
Decision scenario

Golden cross or death cross?

A stock's 50-day moving average has just crossed above its 200-day moving average. What is this called, and how is it usually read?

The lagging-indicator limitation

Here is the main weakness to keep in mind. A moving average is a lagging indicator, built entirely from past prices, so its signals necessarily arrive after a move has already begun. By the time a golden cross appears, a good portion of the move may have already happened. Worse, in a sideways, choppy market, moving averages generate frequent false signals called whipsaws, where price crosses back and forth across the average with no real trend. Moving averages shine in trending markets and struggle in directionless ones, a limitation that motivates combining them with other tools.

Reflection

The price of smoothing

A moving average trades responsiveness for clarity. Explain in a sentence or two what you gain and what you give up by smoothing price with a moving average.

Write an answer before comparing it with the model response.

The moving average is the foundation for many indicators. The next one, the MACD, takes two moving averages and turns the distance between them into a momentum gauge.

Quiz

This lesson ends with a 5-question quiz. Create a free account or sign in to take it, save your progress and earn points.