Forex Trading12 min read

Moving Averages in Forex: SMA, EMA, 200-Day Data

Moving averages in forex: SMA vs EMA formulas, 50/200 golden and death crosses, common periods, and what 9 years of daily data show about the 200-day line.

Last Updated: 2026-11-01
Moving Averages in Forex: SMA, EMA, 200-Day Data

This site contains affiliate links. We may earn a commission if you sign up through our links. How we research

A moving average (MA) is the average closing price of the last N candles, redrawn after every new candle. It smooths out noise so you can see whether price is trending up, trending down or going sideways. It does not predict anything: it is a lagging description of where price has been.

This guide covers the formulas for the SMA and EMA, the periods traders use, how to read slope and crossovers, and what our own nine years of daily data say about the famous 200-day line and the golden and death crosses. Spoiler: a moving average is a useful ruler, not a signal.

Disclosure: OnForex may earn a referral commission from Exness links on this page. This is general education, not investment advice.

How a moving average is calculated

Simple moving average (SMA)

The simple moving average adds the last N closes and divides by N. Every close in the window counts equally.

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

Take five EURUSD daily closes: 1.0810, 1.0830, 1.0825, 1.0840 and 1.0850. They add up to 5.4155, so the 5-period SMA is 1.0831. When the next day closes at 1.0900, the oldest close (1.0810) drops out and the new SMA is (1.0830 + 1.0825 + 1.0840 + 1.0850 + 1.0900) / 5 = 1.0849.

Exponential moving average (EMA)

The exponential moving average gives recent closes more weight. It uses a smoothing multiplier k = 2 / (N + 1), and each new value is:

EMA now = EMA before + k x (close - EMA before)

With N = 5, k = 1/3. Starting from the 1.0831 above (a common seed is the SMA) and a new close of 1.0900, the EMA is 1.0831 + (1.0900 - 1.0831) / 3 = 1.0854. The SMA showed 1.0849 on the same data. The EMA moved further because it weighs the newest close more heavily.

Weighted moving average (WMA) and others

A weighted moving average (WMA) assigns linearly falling weights, so the newest close has weight N and the oldest weight 1. Smoothed (SMMA) and Hull averages exist too. Most traders only ever need SMA and EMA.

TypeWeightingReacts to new priceTypical use
SMAEqualSlowestLong-term reference lines (50, 100, 200)
EMAExponential, recent heavierFasterShort-term trend and pullback entries (9, 20, 21, 50)
WMALinear, recent heavierFastLess common; some prefer it to the EMA

Every moving average lags. A rough rule is that an SMA of N periods lags by about (N - 1) / 2 candles, so a 200-day SMA describes the market as it was around 100 days ago. A faster average lags less but gives more false turns. You cannot have both.

Common periods and what they are used for

There is nothing magical about these numbers. They are popular, which is why they are worth knowing: many market participants plot the same lines.

  • 9, 20 or 21 EMA: short-term trend. Used by day traders and swing traders to define pullbacks.
  • 50 SMA or EMA: medium-term trend, roughly one trading quarter on a daily chart.
  • 100 SMA: less common, but used as an intermediate line.
  • 200 SMA: the long-term trend reference. It is the line most often quoted in market commentary.

On the 4-hour or 1-hour chart the numbers are the same but the time they cover is shorter: the 200 on a 1-hour chart spans about 8 trading days, not 200 days.

EURUSD daily chart from November 2024 to October 2026 with 50-day and 200-day simple moving averages, a golden cross around March 2025 and a death cross around April 2026
EURUSD daily, November 2024 to October 2026. The 50-day SMA crossed above the 200-day SMA (golden cross) around March 2025 and back below it (death cross) around April 2026. Notice that both crosses came after price had already made a large part of its move.

The chart shows the main pattern. After the golden cross in early 2025, EURUSD was already well above its 200-day line, and the cross confirmed a trend that had been under way for weeks. The death cross in 2026 appeared after price had already fallen back toward the long average. That lag is the price of smoothing.

How to read a moving average

Slope and position

Two readings cover most uses:

  1. Slope. A line rising steadily shows an up-trend; a flat line shows a range; a falling line shows a down-trend. A flat moving average is a warning that crossover systems will whipsaw.
  2. Position. Price above a rising average is the classic "up-trend" picture; price below a falling average is the "down-trend" picture. Distance matters too: price far above a short average often pulls back toward it.

Dynamic support and resistance

In a trend, price often pulls back toward a rising average (for example the 20 or 50 EMA) and then continues. Traders call this dynamic support, or dynamic resistance in a down-trend. The line is not a wall. Price regularly slices through it, and a close through the average is simply information about momentum. For a full method, see our pullback trading guide.

XAUUSD 4-hour chart with 20 and 50 exponential moving averages in an up-trend, with pullbacks to the averages marked
XAUUSD 4-hour, 5 August to 1 September 2026. During the up-trend, pullbacks repeatedly slowed near the 20 and 50 EMA, but several candles closed through the 20 EMA before the trend resumed.

Moving average crossovers

A crossover occurs when a faster average crosses a slower one: for example the 20 EMA crossing above the 50 EMA. Some people trade the cross itself; others only use it as a trend filter. Because averages lag, a cross always comes after the move has started. In a sideways market, crossovers repeat in both directions and produce a string of small losses. That is called a whipsaw.

Multiple averages

Plotting three averages (for example 20, 50 and 200) lets you see whether they are stacked in order: fast above medium above slow in an up-trend. Japanese traders call this a "perfect order". Stacked averages tell you the trend has been consistent for a while. They do not tell you it will continue.

Golden cross and death cross

A golden cross is when the 50-day SMA crosses above the 200-day SMA. A death cross is the reverse. They are the most quoted moving average signals in the financial press, which is exactly why they are worth testing.

In our daily data (August 2017 to October 2026), each market produced only a handful of crosses:

EURUSDGBPUSDUSDJPYXAUUSD
Golden crosses in 9 years6976
Death crosses in 9 years71077
Price higher 60 days after a golden cross50.0%37.5%57.1%33.3%
Price lower 60 days after a death cross85.7%44.4%33.3%28.6%

Source: OnForex analysis of daily prices from Yahoo Finance, August 2017 - October 2026 (gold: COMEX gold futures).

With 6 to 10 events per market, each percentage rests on a handful of cases. A single event moves a number by 10 to 17 points, so these figures are anecdotes, not a pattern. The honest reading is that golden and death crosses are rare, late and not reliably followed by continuation in this sample.

What 9 years of data say about the 200-day line

The 200-day SMA is the line people use to answer "is this market in a long-term up-trend?" We tested whether the answer helped. For each day we recorded whether the close was above the 200-day SMA, then looked at the direction of price 20 trading days later.

EURUSDGBPUSDUSDJPYXAUUSD
Share of days with close above the 200-day SMA47.5%58.3%58.9%74.8%
Baseline: price higher 20 days later (all days)46.8%51.3%58.4%56.5%
Above the 200-day line: price higher 20 days later48.5%49.9%57.4%56.2%
Below the 200-day line: price lower 20 days later54.8%46.6%40.1%42.7%
Price crossed the 200-day line, times per year6.29.49.37.1

Source: OnForex analysis of daily prices from Yahoo Finance, August 2017 - October 2026.

The baseline is the share of all days when price was higher 20 days later. A signal only adds something if it beats that baseline clearly. Here it does not: above the 200-day line, price was higher 20 days later 48.5%, 49.9%, 57.4% and 56.2% of the time, versus baselines of 46.8%, 51.3%, 58.4% and 56.5%. USDJPY and gold rose over the period, so their baselines sit above 50% regardless of what the average said.

Two further points. First, price crossed the 200-day line 6 to 9 times a year, so on average every one to two months a "trend change" would have been announced and then reversed. Second, the line described the long-term trend well after the fact (gold spent three quarters of the days above it), but a description is not a forecast.

Using moving averages in a plan

A moving average is most useful as a filter and a measuring stick, not as an entry trigger.

  1. Choose the timeframe for direction. For a swing trade, use the daily chart and the 50 or 200 SMA to decide whether you want to look for longs, shorts or neither.
  2. Mark pullback zones. On the entry timeframe (for example 4-hour), note where the 20 and 50 EMA sit. A pullback that stalls there at the same time as a support level or a liquidity zone is more informative than the average alone. See support and resistance and market structure.
  3. Define the stop by structure and volatility, not by the line. Put it beyond the swing that would invalidate the idea, with a buffer based on ATR. Averages move, so a stop "just below the EMA" is a moving target. Remember that stop orders can fill with slippage when spreads widen around news and market opens.
  4. Size the position from the stop distance. Risk a fixed small percentage of the account. See position sizing for the formula.

Common mistakes

  • Treating a cross as a buy or sell signal. Crosses come late and repeat in ranges. Use them to describe, then wait for price to confirm at a level.
  • Optimising the period. Testing 5 to 200 on one chart and keeping the best will find a setting that worked in the past. It tends to fail on new data. Our backtesting guide shows an example where the best-looking in-sample setting did not hold out of sample.
  • Ignoring the slope. A flat average is not a trend filter. If the line is flat, the crossover system is likely to be whipsawed.
  • Using too many lines. Five averages on a chart add clutter, not information.
  • Forgetting costs. Short-term crossover systems trade often, and the spread is paid on every trade.
Chart of cumulative pips for a moving average strategy, showing the in-sample period in blue and the out-of-sample period in amber
A moving-average setting chosen for its in-sample results can look excellent and then flatten out of sample (cumulative pips, in-sample in blue, out-of-sample in amber). Testing on data the settings never saw is the minimum standard.

Moving average vs other indicators

Moving averages show direction. Other tools answer different questions: RSI and MACD measure momentum (MACD is itself built from two EMAs), Bollinger Bands wrap a 20-period SMA with a volatility envelope, and ADX measures trend strength without direction. The Ichimoku Cloud includes averages of highs and lows. Using one from each family is usually enough.

Key takeaways

  • A moving average is the average of the last N closes; the EMA weights recent closes more than the SMA.
  • Every moving average lags. A longer period smooths more and lags more.
  • In nine years of daily data, being above or below the 200-day SMA did not predict the next 20 days better than the baseline.
  • Golden and death crosses are rare (6 to 10 per market in nine years) and their follow-through varied from 29% to 86%, which is too few cases to rely on.
  • Use averages to describe the trend and to mark pullback zones, then size the trade from a structure-based stop.

Practise on a demo account first

Plot SMA and EMA on live charts, mark pullbacks and test your stops on a free Exness demo account before you risk money. Forex and CFD trading carries a high risk of loss.

Continue to Exness

Forex and CFD trading involves significant risk. You may lose your invested capital.

Risk warning: Forex and CFD trading carries a high risk of loss and is not suitable for everyone. Statistics on this page describe past prices from a limited sample and do not predict future results. Nothing here is investment advice.

Related Articles