Moving Average in Forex Explained: SMA, EMA and Uses

A moving average in forex is a line that shows the average closing price over a set number of candles and updates with every new candle. It smooths the noise of price so that you can see the direction of the trend more clearly. This guide covers the simple and exponential types, the common periods, three ways to use a moving average and the weaknesses you must plan for.

What is a moving average in forex?

A moving average (MA) takes the closing prices of the last N candles and averages them. When a new candle closes, the oldest value drops out and the newest is added, so the line moves along with price. Because it uses past prices only, it is a lagging indicator: it describes what has already happened and does not predict anything by itself. For the difference between lagging and leading tools see lagging vs leading indicators.

How is a moving average calculated?

The simple moving average (SMA) is the plain arithmetic mean of the last N closes.

Example

Hypothetical closes for a 5 period SMA: 1.1010, 1.1020, 1.1030, 1.1040, 1.1050.

  • Sum: 5.5150
  • SMA: 5.5150 / 5 = 1.1030

If the next close is 1.1060, the oldest value (1.1010) drops out: (1.1020 + 1.1030 + 1.1040 + 1.1050 + 1.1060) / 5 = 1.1040.

The exponential moving average (EMA) gives more weight to recent prices using a smoothing factor of 2 / (N + 1). For a 10 period EMA that factor is 2 / 11, about 0.18. Your platform does the maths, but you should know why the EMA reacts faster.

SMA vs EMA: which one should you use?

Feature SMA EMA
Weighting Equal for all candles More weight on recent candles
Speed Slower, smoother Faster, closer to price
False signals Fewer, but later More, but earlier
Typical use Long term trend, support zones Short term entries, trend filters

Neither is better in every case. A longer period SMA suits a slow trend filter, while an EMA suits pullback entries. See the detailed comparison in EMA vs SMA.

What are the best moving average settings?

There are no magic numbers. Popular periods are popular because many traders watch them, which can make them act as reference areas.

  • 10 or 20: short term direction and pullbacks.
  • 50: medium term trend.
  • 100: a middle filter some traders prefer.
  • 200: long term trend, often watched on the daily chart.

A shorter period follows price closely and gives more signals with more noise. A longer period gives fewer signals and later ones. Choose by your timeframe and test the choice. See how to backtest a forex strategy.

Three ways to use a moving average

1. Trend direction

If price is above a rising 50 period average, the trend is considered up; below a falling average it is considered down. When the line is flat and price crosses it repeatedly, the market is probably ranging and the signal is poor. See how to find trend direction.

2. Dynamic support and resistance

In a trend, price often pulls back to a moving average and continues. Traders watch for a rejection candle at the line. This works best together with static levels. See support and resistance and pullback trading.

3. Crossovers

A fast average crossing above a slow average is a bullish crossover and the reverse is bearish. The well known long term versions are covered in golden cross and death cross, and a shorter version in the EMA crossover strategy. Crossovers lag, so they often arrive after a large part of the move has happened.

Example: a simple trend filter with a 50 EMA

Example

Hypothetical setup on the 1 hour chart of EUR/USD. Price is above a rising 50 EMA, and pulls back to touch it.

  • Entry: buy at 1.1050 after a bullish candle closes at the average
  • Stop loss: 1.1020, 30 pips below entry
  • Target: 1.1110, 60 pips, for a risk to reward of 1:2
  • Risk 1% of a $5,000 account = $50. Pip value needed: $50 / 30 pips = $1.67 per pip, about 0.17 lot.

Nothing here is a promise: the same setup loses often, which is why the stop and the size are fixed before entry.

Multiple timeframe use

Many traders read the daily 200 average for the big picture and trade pullbacks to a 20 or 50 average on the 1 hour or 4 hour chart. This keeps trades in line with the larger direction. See multiple timeframe analysis and, for a variation with several lines, the moving average ribbon.

Limits of moving averages

  • They lag. By the time a crossover appears, price may have moved far.
  • They whipsaw in ranges, giving repeated false signals.
  • They say nothing about where to place a stop; use structure or ATR.
  • Changing the period until the past looks perfect is curve fitting, and it rarely holds in the future.

Common mistakes with moving averages

  • Using many lines that disagree with one another.
  • Trading every touch of the average without a trend.
  • Using a very short period on a very low timeframe and drowning in noise.
  • Entering a crossover late with a stop far away.
  • Never testing the settings before using them with real money.

Checklist before you trade with a moving average

  1. Is the market trending or ranging?
  2. Which timeframe sets the trend, and which one gives the entry?
  3. Where is the nearest support or resistance level?
  4. Where is the stop, and does the position size fit your risk?
  5. Is there high impact news? See the economic calendar guide.

How to combine moving averages with other tools

A moving average works best as a filter rather than a trigger. Use it to decide which direction you are allowed to trade, then let price structure decide the entry. For example, only look for buys while price is above the 50 period line, and take the signal from a bullish candle at a support level. This keeps the number of trades low and each one tied to a clear reason you can write in your journal.

It also helps to compare the slope of the line with the distance from price. When price is stretched far from a moving average, a pullback toward it is common, and chasing a new entry at that point means a wide stop and a small position. Waiting for the return to the average gives a tighter stop and a better ratio, though the pullback may never come, and missing a trade is cheaper than forcing a poor one.

Risk note

No indicator predicts the market. Moving average strategies can lose money for long stretches. Always use a stop loss and risk only a small share of your account on each trade.

Frequently asked questions

What is the best moving average for forex?

There is no single best. Many traders use the 20 or 50 for pullbacks and the 200 for the long term trend. Test the settings on your pair and timeframe.

What is the difference between SMA and EMA?

The SMA weights all candles equally, while the EMA weights recent candles more, so it reacts faster and gives earlier but noisier signals.

Is a moving average a leading or lagging indicator?

It is lagging, because it is calculated from past prices.

How do I trade a moving average crossover?

Wait for the fast line to cross the slow line, confirm with the trend on a higher timeframe, place a stop beyond the recent swing and size the trade from that distance.

Does the 200 moving average work as support?

Price often reacts around it because many traders watch it, but it does not hold every time, and it should be combined with other evidence.

Which timeframe works best?

Moving averages are used on every timeframe. Higher timeframes such as 4 hour and daily give fewer but more meaningful signals.

Trading leveraged products carries a high level of risk and may not suit every investor. This article is news and general information, not financial advice. Any decision to trade is yours alone.