Moving Averages in Forex: SMA vs EMA, Crossovers & Trends

Intermediate5 min read
Stock Market Analysis Chart with Trend Lines
Image by Rafael Minguet Delgado on Pexels

What a moving average does

A moving average (MA) takes the closing prices of the last N candles, averages them, and plots the result as a line that updates with every new candle. It does not predict anything. Its job is to smooth out noise so you can see the underlying direction, and to give you an objective reference instead of a gut feeling.

The meaning changes with the timeframe: a 50-period average on the daily chart covers roughly ten trading weeks, while the same setting on a 5-minute chart covers just over four hours.

SMA vs EMA: the maths

The simple moving average (SMA) weights every candle equally. For a 5-period SMA with closes of 1.0800, 1.0810, 1.0805, 1.0820 and 1.0830, you add them up (5.4065) and divide by 5 to get 1.0813.

The exponential moving average (EMA) gives more weight to recent prices. Each new value is calculated as:

EMA today = (Close − EMA yesterday) × multiplier + EMA yesterday, where the multiplier is 2 / (N + 1).

For a 20-period EMA the multiplier is 2 / 21 = 0.0952, so the latest close contributes about 9.5% of the new value. For a 50-period EMA it is 2 / 51 = 0.0392, and for a 200-period EMA it is 2 / 201 = 0.00995, just under 1%. Worked example: if yesterday’s 20 EMA was 1.0800 and today’s close is 1.0842, the new EMA is (1.0842 − 1.0800) × 0.0952 + 1.0800 = 1.0804.

In practice the EMA turns sooner after a change in direction, while the SMA is smoother and slower. Neither is better: the EMA suits shorter-term work, the SMA long-term reference lines such as the 200-day.

Common periods and trend direction

  • 20-period: short-term momentum. On a daily chart it represents about one trading month.
  • 50-period: the medium-term trend, and a popular pullback reference.
  • 200-period: the long-term trend. The 200-day average is widely watched, which is why price often reacts around it.

There is nothing magical about these numbers; they matter mainly because they are widely followed. Tweaking a 20 to a 19 or 23 to fit past data is curve-fitting.

To read trend, look at the slope of the average and where price sits relative to it. Price above a rising 50 EMA, with the 20 above the 50 and the 50 above the 200, describes a healthy uptrend. The reverse stack describes a downtrend. Flat, tangled averages with price crossing back and forth describe a range — and in a range, moving average signals are at their least reliable.

A long signal on the 5-minute chart that points against the 4-hour and daily trend is a lower-quality setup. The live dashboard shows an EMA trend grid across the 5m, 1h, 4h and daily timeframes so you can see alignment at a glance, and the guide to multi-timeframe analysis explains how to combine them.

Dynamic support and resistance

In a trending market, pullbacks often stall around a moving average, which is why traders call it dynamic support and resistance. A typical approach in an uptrend is to wait for price to pull back into the area between the 20 and 50 EMA, then look for a bullish rejection candle before entering, with a stop below the recent swing low.

Treat the average as a zone rather than an exact line: price will often pierce it by several pips before turning. Using a fraction of the ATR as a buffer allows for normal noise.

Crossovers: golden cross and death cross

A crossover occurs when a faster average crosses a slower one. The best-known versions use the 50 and 200:

  • Golden cross: the 50 crosses above the 200, suggesting that medium-term momentum has turned up.
  • Death cross: the 50 crosses below the 200, suggesting the opposite.
EUR/USD daily candlestick chart with the 50-day and 200-day simple moving averages, marking a death cross where the 50 falls below the 200 and a later golden cross where it rises back above
Real EUR/USD daily candles with the 50-day (blue) and 200-day (orange) SMA. Both crosses confirmed moves that had already happened: when the 50 crossed back above the 200, price was already about 1,180 pips above its low.

Shorter pairs, such as the 9 and 21 EMA, produce the same kind of signal far more frequently. Either way, a crossover confirms a move that has already happened. By the time the 50 crosses the 200 on a daily chart, price may already have travelled several hundred pips from its low.

The limits: lag and whipsaw

Every moving average lags, because it is built from past prices. Shorten the period and you reduce lag but get more false signals; lengthen it and you get fewer signals that arrive later. No setting escapes this trade-off.

The second problem is whipsaw. In a sideways market, price chops across the averages and crossovers fire repeatedly in both directions, each one a small loss. Practical defences include taking signals only when the higher-timeframe averages are clearly sloping, requiring confirmation from price structure or candlestick patterns, and standing aside when the averages are flat and tangled.

Moving averages are a way to organise what you see, not a standalone system, and no setting removes the chance of a losing run. Forex and CFDs carry a high risk of loss; size positions conservatively and only risk money you can afford to lose.

FAQ

Is the EMA better than the SMA for forex trading?

Neither is better in every situation. The EMA weights recent closes more heavily, so it reacts faster to a change in direction but also produces more false signals in choppy markets. The SMA is smoother and slower. Many traders use EMAs for short-term work and the SMA for long-term references such as the 200-day.

What are the best moving average periods to use?

The 20, 50 and 200 periods are the most widely followed, covering the short, medium and long-term trend. Their usefulness comes largely from the number of traders watching them. Fine-tuning the period to fit past price data rarely helps; pick a standard set and learn how price behaves around it.

Why do moving average crossovers give so many false signals?

Crossovers are built from past prices, so they lag. In a trending market that lag is tolerable, but in a sideways market price chops back and forth across the averages and triggers repeated signals in both directions. Filtering by higher-timeframe trend and avoiding flat, tangled averages reduces, but never removes, these whipsaws.

Next lesson MACD Indicator Explained: Settings, Signals & Divergence Continue

More intermediate guides

Support and Resistance in Forex: How to Draw Key Levels How to Draw Trend Lines and Channels in Forex (Step by Step) Supply and Demand Zones in Forex: How to Find and Trade Them Forex Candlestick Patterns: Pin Bars, Engulfing, Doji & More Forex Chart Patterns: Reversal & Continuation Explained Forex Breakout Trading: How to Trade Breakouts & Avoid Fakeouts MACD Indicator Explained: Settings, Signals & Divergence RSI Indicator in Forex: Settings, Signals & Divergence Stochastic Oscillator Explained: Settings, Signals and Strategy Divergence Trading: How to Spot Regular and Hidden Divergence Bollinger Bands Explained: Squeeze, Band Walks & Signals Ichimoku Cloud Explained: A Simple Guide to All Five Lines Forex Pivot Points: Formula, Levels & How to Trade Fibonacci Retracement in Forex: Levels, Drawing & Examples ATR Indicator in Forex: How to Measure Volatility Most Volatile Currency Pairs (and the Calmest): How to Trade Them Best Forex Indicators for Beginners: The 7 Worth Learning Stop-Loss Strategies in Forex: Placement, Sizing & Trailing Take-Profit Strategies: When and Where to Exit a Winning Trade Risk-Reward Ratio Explained: What It Is and How to Use It Position Sizing in Forex: How to Calculate the Right Lot Size Forex Risk Management: Position Sizing & the 1-2% Rule How to Create a Forex Trading Plan (Simple Template Included) Forex Trading Styles: Scalping, Day, Swing & Position Forex Scalping for Beginners: How It Works, Costs and Rules Day Trading Forex: A Realistic Beginner’s Guide and Routine Swing Trading Forex: How to Catch Moves Over Days, Not Minutes Types of Forex Brokers: ECN vs STP vs Market Maker Explained EA Settings Explained: Lot Size, Magic Number, Stop-Loss & More How to Backtest an EA in the MT4 and MT5 Strategy Tester How to Choose a Safe Forex EA: A 12-Point Checklist Fundamental Analysis in Forex: What Moves Currencies Safe-Haven Currencies: Risk-On and Risk-Off Explained

Choose a regulated broker

Apply what you've learned with a top tier-1 broker, compared independently by ForexR.

Compare top brokers