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.

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.
| Type | Weighting | Reacts to new price | Typical use |
|---|---|---|---|
| SMA | Equal | Slowest | Long-term reference lines (50, 100, 200) |
| EMA | Exponential, recent heavier | Faster | Short-term trend and pullback entries (9, 20, 21, 50) |
| WMA | Linear, recent heavier | Fast | Less 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.

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:
- 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.
- 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.

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:
| EURUSD | GBPUSD | USDJPY | XAUUSD | |
|---|---|---|---|---|
| Golden crosses in 9 years | 6 | 9 | 7 | 6 |
| Death crosses in 9 years | 7 | 10 | 7 | 7 |
| Price higher 60 days after a golden cross | 50.0% | 37.5% | 57.1% | 33.3% |
| Price lower 60 days after a death cross | 85.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.
| EURUSD | GBPUSD | USDJPY | XAUUSD | |
|---|---|---|---|---|
| Share of days with close above the 200-day SMA | 47.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 later | 48.5% | 49.9% | 57.4% | 56.2% |
| Below the 200-day line: price lower 20 days later | 54.8% | 46.6% | 40.1% | 42.7% |
| Price crossed the 200-day line, times per year | 6.2 | 9.4 | 9.3 | 7.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.
- 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.
- 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.
- 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.
- 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.

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 ExnessForex and CFD trading involves significant risk. You may lose your invested capital.
Related guides
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

ADX Indicator: Settings, +DI/-DI and What Our Data Shows
ADX indicator guide: how ADX and +DI/-DI are calculated, what 20, 25 and 40 mean, how to use ADX to pick a method, and what our data shows on four markets.

Ichimoku Cloud Explained: Five Lines, Signals and Settings
Ichimoku cloud explained: the five lines, how to read the cloud, sanyaku kōten and gyakuten, the 9-26-52 settings and what our daily data shows.

MACD Forex Guide: MACD Indicator Settings (12, 26, 9) and Use
MACD forex guide: what the default 12, 26, 9 settings mean, the MACD indicator formula with a worked example, signal line, histogram, divergence and limits.

Bollinger Bands: Settings, Squeeze and What the Data Shows
Bollinger Bands explained: the 20/2 formula, %B and bandwidth, the squeeze, walking the bands and a W-bottom, with hit rates from our own hourly forex data.

Forex Day Trading Guide 2026: Sessions, Setups and Risk
A practical guide to forex day trading: which sessions to trade, entry and exit rules, position sizing, and the mistakes that most often cost day traders money.

ATR Indicator: Formula, Settings and ATR Stop-Loss in Forex
ATR explained: how Average True Range is calculated with a worked example, the 14-period setting, ATR stops, position sizing and our stop-hit data.