Open almost any forex chart and you will find a moving average on it. Moving averages in forex matter because they turn a jagged price chart into a single smooth line, which makes the direction of the market easier to see at a glance.
That smoothness comes at a cost. A moving average is built from past prices, so it always runs behind the market. Used with that in mind, it is a handy tool. Used as a crystal ball, it will cost you money. This guide explains how the two main types are calculated, how traders put them to work, and the mistakes that catch beginners.
What is a moving average in forex
A moving average is the average closing price over a fixed number of candles. A 20-period moving average on a daily chart averages the last 20 daily closes. On a one-hour chart, the same setting averages the last 20 hourly closes.
The word "moving" is the important part. When a new candle closes, the oldest one drops out of the calculation and the newest one comes in. The average is worked out again and the line takes one step forward. Over time those points join up into the curve you see on the chart.
MT4 and MT5 offer several methods. The two you will meet most often are the simple moving average (SMA) and the exponential moving average (EMA).
Worked example: a 5-period SMA by hand
Say EUR/USD closes at these five levels on five days in a row (illustrative numbers, not real prices): 1.1000, 1.1010, 1.1020, 1.1030 and 1.1040.
Add them up and you get 5.5100. Divide by five and the 5-period SMA is 1.1020. That is the value plotted under the fifth candle.
Now a sixth day closes at 1.1100. The first close (1.1000) drops out and the new one comes in. The five closes are now 1.1010, 1.1020, 1.1030, 1.1040 and 1.1100, which add up to 5.5200. Divided by five, the SMA becomes 1.1040.
Look at what happened. Price jumped 60 pips in one day, from 1.1040 to 1.1100, but the average only rose 20 pips, from 1.1020 to 1.1040. That gap is lag, and it is built into every moving average.
SMA vs EMA: what is the difference
The SMA treats every candle in the window the same. The close from five days ago counts exactly as much as yesterday's.
The EMA gives more weight to recent prices. It uses a multiplier of 2 divided by (the period plus 1). For a 10-period EMA that is 2 divided by 11, or roughly 0.18. Each new EMA value is the old EMA plus about 18% of the gap between today's close and the old EMA. Older prices never fully drop out, but their influence fades quickly.
The practical result is that an EMA reacts sooner when price turns, and an SMA stays steadier. Neither is better in every market. Faster means earlier signals and more false ones. Slower means fewer false signals and later entries.
Which moving average settings do forex traders use
There is no magic number, but a few settings are watched by so many traders that they have become reference points.
- The 200-period line, especially on the daily chart, is the classic long-term trend filter. Many traders only look for buys when price is above it and sells when it is below.
- The 50-period line is a common medium-term guide.
- The 20 or 21-period line is popular for short-term trends and pullbacks.
- Short EMAs such as 8 or 9 are used by some intraday traders to follow fast moves.
Because many people watch the same lines, price sometimes reacts around them. That is crowd behaviour, not a law, so treat these levels as zones to watch rather than hard floors or ceilings.
How traders use moving averages
Reading the trend
The simplest use is also the most useful. If the line is rising and price is mostly above it, the market is trending up. If it is falling and price is mostly below, the trend is down. If the line is flat and price keeps crossing it, there is no clear trend, and many trend strategies stop working in exactly those conditions.
Dynamic support and resistance
In a steady trend, price often pulls back towards a moving average before carrying on. Some traders look for entries near the line, with a stop beyond the recent swing.
Crossovers
A crossover is when a faster average crosses a slower one. When the 50-day crosses above the 200-day, traders call it a "golden cross". When it crosses below, it is a "death cross". The same idea works on shorter settings and lower timeframes.
Crossovers are slow by design. By the time two averages cross, much of the move has often happened, and in a sideways market they flip back and forth with one losing signal after another.
Checking a trade with a moving average
- 1
Add a 200-period SMA to the daily chart and note whether price is above or below it.
- 2
Check whether the line is rising, falling or flat.
- 3
Drop to your trading timeframe and add a faster average, such as a 20-period EMA.
- 4
Only consider trades in the direction the daily chart shows, and skip the pair if the daily line is flat.
- 5
Put your stop beyond the last swing high or low, not just the other side of the line.
- 6
Work out the
lot size from the stop distance before you place the order.
Common mistakes with moving averages
- Expecting prediction. A moving average summarises the past. It cannot tell you what happens next.
- Stacking too many lines. Five averages on one chart usually create confusion, not confirmation.
- Trading every crossover. In a range, crossovers are mostly noise.
- Changing settings after each loss. Tuning the period to past data fits the noise, not the market.
- Forgetting the news. A strong data release can blow straight through any average. Check the economic calendar before big events.
In practice
- Use one slow average for trend direction and, at most, one faster average for timing.
- Pick an SMA for steadiness or an EMA for speed, then stick with it long enough to learn how it behaves.
- Treat lines like the 50 and 200 as zones of interest, not exact levels.
- Stand aside, or use a different approach, when the average is flat and price keeps cutting through it.
- Size every trade from your stop distance with the position size calculator, and keep the risk small. Forex trading with leverage can lose money quickly.
- Look up any term you are unsure of in the glossary.
Risk warning: Trading foreign exchange and CFDs on margin carries a high level of risk and may not be suitable for all investors. Leverage can work against you. Content on FXROLL is for information and education only and is not investment advice. Prices and data may be delayed or contain errors.