Skip to content
Menu

Moving Averages: Smoothing Price to See the Trend

By Chad Smith, Director of Research & Analysis · Updated

On this page
  1. What a moving average is
  2. Simple moving average
  3. Exponential moving average
  4. Choosing periods
  5. Reading trend direction
  6. Moving averages as dynamic support and resistance
  7. Crossovers
  8. The main weakness: lag
  9. Combining moving averages with other tools
  10. Key takeaways

In this lesson you will learn

  • Calculate a simple moving average and explain how an EMA differs
  • Choose moving average periods for different purposes
  • Use moving averages to read trend direction and find pullback areas
  • Understand crossovers and the lag of all moving averages

Key terms

The trends lesson showed how to read direction from swing highs and lows. Moving averages offer a smoother, more objective view of the same thing. This lesson explains how they are calculated, how to choose settings and how traders use them, with their main weakness: lag.

What a moving average is

A moving average is the average price over a set number of recent periods, recalculated with each new candle. Plotted as a line on the chart, it smooths out short-term noise so the underlying direction is easier to see.

Most moving averages use closing prices. The period sets how many candles go into the average. A 20-period moving average on a 1-hour chart averages the last 20 hourly closes.

Simple moving average

The simple moving average (SMA) gives every price in the period equal weight.

SMA = (sum of the last N closes) ÷ N

Worked example (illustrative numbers): the last five closes are 1.1000, 1.1010, 1.1020, 1.1030 and 1.1040. The 5-period SMA is their sum, 5.5100, divided by 5, which is 1.1020. When the next candle closes at 1.1050, the oldest price drops out and the new one is added. The SMA becomes 1.1030.

ExampleLast 5 closes1.10001.10101.10201.10301.1040next?5.5100 ÷ 5 = 1.1020Next candle closes at 1.10501.10001.10101.10201.10301.10401.1050drops outnew SMA = 1.1030
A moving average slides forward one candle at a time: the newest close comes in and the oldest drops out.

Exponential moving average

The exponential moving average (EMA) gives more weight to recent prices, so it reacts faster to new moves.

Multiplier = 2 ÷ (N + 1)
EMA today = (close − EMA yesterday) × multiplier + EMA yesterday

For a 20-period EMA, the multiplier is 2 ÷ 21, or about 0.095. The faster reaction is useful in a trend, but it also means the EMA is pulled around more by noise. Other types, such as the weighted moving average and Hull moving average, change the weighting to reduce lag further.

Choosing periods

There is no single correct setting. Some periods are popular because so many traders watch them:

  • Short (around 9 to 21 periods): follows price closely; used for short-term momentum and pullbacks.
  • Medium (around 50 periods): a common gauge of the intermediate trend.
  • Long (around 100 to 200 periods): a common gauge of the long-term trend, especially on the daily chart.

Shorter periods react faster but give more false signals. Longer periods are steadier but slower. Pick one or two settings and use them consistently, rather than changing them after each trade.

Reading trend direction

Moving averages give simple rules for direction:

  • Slope: a rising average suggests an uptrend; a falling one suggests a downtrend; a flat one suggests a range.
  • Price position: price staying above the average suggests buyers are in control; below suggests sellers.
  • Order of averages: in a strong uptrend, the short average sits above the medium, which sits above the long. The reverse is true in a downtrend.

Many traders use a long average as a filter. For example: only look for buys when price is above the 200-period average on the daily chart, and only sells when it is below.

Moving averages as dynamic support and resistance

In trending markets, pullbacks often pause near a moving average. Because the average moves with price, it acts as a sloping, "dynamic" support or resistance level.

Worked example (illustrative numbers): GBP/USD is trending up on the 4-hour chart, and the 20-period EMA has caught the last three pullbacks. Price pulls back to the EMA at 1.2730 and forms a hammer. A trader buys above the hammer's high at 1.2742, sets a stop below the hammer's low at 1.2712 and targets the last swing high at 1.2802. That is 30 pips of risk for 60 pips of reward. The average does not guarantee the bounce; it highlights a place to look.

Crossovers

A crossover happens when a shorter average crosses a longer one.

  • A short average crossing above a long one is a bullish crossover.
  • A short average crossing below is a bearish crossover.
  • Price itself crossing an average is a simpler version of the same signal.

Crossovers are easy to define and test, which makes them common in rule-based systems. Their problem is timing. Because both averages lag, the crossover often arrives after much of the move has happened.

The main weakness: lag

All moving averages use past prices, so they always trail the market. They are a lagging indicator. In strong trends this lag is acceptable, because the trend lasts long enough. In sideways ranges, price crosses the average back and forth, producing a run of small losing signals, often called whipsaws.

TrendRangepricemoving averageprice holds one side of asloping average: few signalsflat average, price weavesthrough it: whipsaws (circled)
Moving averages help in trends but whipsaw in ranges, because they always lag price.

A practical response is to check whether the market is trending before using moving average signals. A flat average and price weaving through it both say "range". Tools such as the ADX measure trend strength directly.

Combining moving averages with other tools

Moving averages work best as part of a plan rather than alone:

  • With structure: confirm the trend with higher highs and lows, then use the average for entries.
  • With levels: a pullback to an average that also lines up with old resistance turned support adds confluence.
  • With momentum: an oscillator, covered in the next lesson, can show when a pullback is losing strength.

Key takeaways

  • A moving average smooths price over a set period to show direction.
  • The SMA weights all prices equally; the EMA weights recent prices more and reacts faster.
  • Slope, price position and the order of averages describe the trend.
  • Averages can act as dynamic support or resistance in trends, and crossovers give simple signals.
  • All moving averages lag and whipsaw in ranges, so confirm a trend before you act on them.

Check your understanding

  1. 1. A 5-period simple moving average of closes 10, 11, 12, 13 and 14 equals what?

    • A. 11
    • B. 12
    • C. 13
    • D. 14
    Show answer

    B. 12

  2. 2. How does an exponential moving average differ from a simple one?

    • A. It gives more weight to recent prices
    • B. It ignores the most recent price
    • C. It uses only highs
    • D. It does not lag at all
    Show answer

    A. It gives more weight to recent prices

  3. 3. In which market condition do moving average crossovers tend to give many false signals?

    • A. Strong trends
    • B. Sideways ranges
    • C. After a breakout
    • D. On weekly charts only
    Show answer

    B. Sideways ranges

Brokers with strong charting to practice on

Put this into practice on a demo account first, with no money at risk.