Home / Forex glossary / Moving Average

Moving Average

A moving average is a line that smooths price by averaging the last N closes. It shows the direction of a trend more clearly than raw candles and acts as a rough dynamic support or resistance.

MA smooths price
A line that smooths price by averaging the last N closes. The 20, 50, and 200 are the most-watched in forex.

How it works

A simple moving average (SMA) adds up the last N closing prices and divides by N. As each new candle closes, the oldest value drops out and the newest is added, so the line moves along with price.

A shorter period, such as 20, follows price closely. A longer one, such as 50 or 200, is smoother and slower. The 20, 50 and 200 are the most watched settings. The exponential moving average (EMA) gives more weight to recent prices and reacts faster than the SMA.

Moving averages lag, because they are built from past prices. They show what has already happened. In trends they can help to judge direction and pullback levels. In ranges, price crosses them back and forth, and crossover signals produce many false alarms.

SMA = (sum of last N closes) ÷ N

A worked example

Hypothetical: the last five closes on EUR/USD are 1.0850, 1.0860, 1.0845, 1.0870 and 1.0875. Their sum is 5.4300, so the 5-period SMA is 5.4300 ÷ 5 = 1.0860. If the next close is 1.0890, the oldest value (1.0850) drops out and the new SMA is (1.0860 + 1.0845 + 1.0870 + 1.0875 + 1.0890) ÷ 5 = 1.0868. The line moved 8 pips while price made a larger jump.

Common mistakes

  • Treating a crossover as a trade signal in a sideways market, where it whipsaws.
  • Expecting a moving average to predict. It describes the past average, not the future.
  • Stacking so many averages on a chart that they give no clear information.

Check yourself

Five closes are 1.0850, 1.0860, 1.0845, 1.0870 and 1.0875. What is the 5-period SMA?
Why do moving averages lag?

Common questions

What is a moving average?

An indicator that averages the last N closing prices to smooth out price movement and show the direction of the trend.

What is the difference between SMA and EMA?

The SMA weights every price equally, and the EMA gives more weight to recent prices, so it reacts faster.

Which moving average is best?

None is best. The 20, 50 and 200 are common because many traders watch them. The right choice depends on your timeframe and style.

Related terms

Use it on a demo account

The fastest way to make this stick is to use it. PipPath gives you a $10,000 demo account to practice position size, stops and targets with no real money at risk.

Start free

Educational content, not financial advice. Examples use made-up numbers.