Skip to content

Explore Standard, Pro and ECN trading accounts designed for different trading styles.

Compare accounts
Indicatorsbeginner

Moving Averages Explained

What moving averages measure, how simple and exponential versions are calculated, the settings traders commonly use, and where they mislead.

Author
JDGlobalFX Research
Published
Updated
Updated
Reading time
5 min read

A moving average smooths price data by calculating the average close over a fixed number of periods and plotting that value as a line that updates with each new candle. Its purpose is to filter out short-term noise so that the underlying direction is easier to see. Moving averages are the most widely used indicator in forex, form the basis of several others such as MACD and Bollinger Bands, and are simple enough that every trader should understand exactly what they do and where they fail.

What a moving average measures

A moving average measures the average price over a lookback window. Because it is an average, it lags: the line reflects where price has been, not where it is going. When price is above a rising moving average, the recent period has, on balance, been bullish. When price is below a falling moving average, the recent period has been bearish. The slope of the line and the distance between price and the line are the two pieces of information most traders extract.

How it is calculated

Simple moving average (SMA)

The SMA adds the closing prices of the last N periods and divides by N. For a 5-period SMA with closes of 1.0850, 1.0860, 1.0855, 1.0870 and 1.0865:

(1.0850 + 1.0860 + 1.0855 + 1.0870 + 1.0865) ÷ 5 = 1.0860

When the next candle closes, the oldest close drops out of the window and the newest is added. Every price in the window carries the same weight, so a large move five candles ago affects the SMA as much as a large move in the most recent candle.

Exponential moving average (EMA)

The EMA applies a weighting multiplier that gives more importance to recent closes. The multiplier is 2 ÷ (N + 1). For a 10-period EMA the multiplier is 2 ÷ 11, or approximately 0.1818. Each new EMA value is:

EMA today = (Close today × multiplier) + (EMA yesterday × (1 − multiplier))

The first EMA value is usually seeded with an SMA. Because recent prices dominate, the EMA turns sooner than an SMA of the same period, which reduces lag at the cost of more sensitivity to noise.

Other variants

Weighted moving averages (WMA) apply linearly decreasing weights. Smoothed and Hull moving averages use further adjustments. These are less commonly used and rarely change conclusions materially; SMA and EMA cover the vast majority of practical applications.

TypeWeightingResponsivenessTypical use
SMAEqualSlowerLonger-term trend, widely watched levels (50, 200)
EMARecent prices weighted moreFasterShorter-term trend, dynamic support and resistance
WMALinear declineBetween SMA and EMALess common

Common settings

The period determines how much smoothing is applied. Standard choices in forex include:

  • 10 and 20: short-term direction; price tends to hug these in strong trends.
  • 50: medium-term trend; frequently used as a trend filter on daily and 4-hour charts.
  • 100: intermediate reference, less common.
  • 200: long-term trend; the 200-day SMA is widely regarded as the dividing line between bull and bear regimes in many markets.

The 20 and 50 EMAs are popular for intraday and swing trading; the 50 and 200 SMAs are standard on daily charts. Most platforms, including the JDGlobalFX terminal, let you set the period, type and the price used (close is standard) in the indicator settings.

Common interpretations

Trend direction and filter

The simplest use: trade only in the direction of the moving average slope, and only when price is on the corresponding side of it. For example, look for long trades only when price is above a rising 50 EMA. This does not generate entries by itself but removes counter-trend trades from consideration.

Dynamic support and resistance

In a trending market, pullbacks frequently pause near a moving average. Traders watch the 20 or 50 EMA for a bounce accompanied by a rejection candle, treating the average as a moving support or resistance level. This tends to work when the trend is orderly and fails when the trend is exhausting.

Crossovers

When a faster average crosses above a slower one, it signals that recent prices are rising faster than the longer average, a bullish crossover. The reverse is a bearish crossover. Widely cited combinations include the 50/200 SMA (the golden cross and death cross on daily charts) and the 9/21 or 20/50 EMA for shorter horizons.

Distance from the average

When price stretches far from a moving average, it often reverts toward it. Some traders use this as a caution against entering late in a move, although there is no fixed distance that defines "too far."

A worked example

Suppose EUR/USD is in an uptrend on the 4-hour chart, trading above a rising 50 EMA. Price pulls back and touches the EMA at 1.0880, then prints a bullish engulfing candle that closes at 1.0905. A trader enters long at 1.0910 with a stop at 1.0860, below both the EMA and the pullback low, a 50-pip risk. The target is the prior swing high at 1.1010, a 100-pip reward, or 2:1. The moving average defined the trend and the location; the candle provided the trigger; the level provided the target.

Limitations and false signals

Moving averages are simple, and their weaknesses are equally simple to state.

  • Lag. Every signal arrives after the move has started. A 200-period SMA can take weeks to reflect a genuine change in trend on a daily chart. Reducing the period reduces lag but increases noise.
  • Whipsaws in ranges. In sideways markets, price crosses back and forth across the average, and fast/slow crossovers flip repeatedly. A crossover system can lose steadily in these conditions.
  • No information about magnitude. A crossover says direction may have changed; it says nothing about how far price will travel.
  • Parameter sensitivity. Different periods give different signals on the same chart. Choosing a period because it worked on a specific past segment is curve-fitting.
  • Dynamic support is unreliable in isolation. Price touches a 20 EMA constantly; only touches that coincide with a horizontal level and a confirming candle deserve attention.

Because moving averages measure trend, they should be paired with tools that measure something different, such as momentum (RSI Explained) or volatility (Bollinger Bands Explained), rather than with another trend indicator that will simply repeat the same message.

Key takeaways

  • A moving average is the average close over N periods, plotted as a line; it identifies the direction of the recent trend and lags by design.
  • The SMA weights all periods equally; the EMA weights recent prices more heavily and reacts faster, at the cost of more false signals.
  • Common periods are 20 and 50 for short and medium-term trend and 200 for long-term trend, with the 50 and 200 SMA widely watched on daily charts.
  • Main uses are as a trend filter, as dynamic support or resistance during pullbacks, and via crossovers between a fast and slow average.
  • In ranging markets, moving averages whipsaw; combine them with horizontal levels and momentum or volatility tools rather than with more trend indicators.

Frequently asked questions

Educational content — not financial advice

This article is provided for general educational purposes only and does not constitute investment advice, a recommendation or an offer to trade any financial instrument. It does not take into account your objectives, financial situation or needs. Trading leveraged products involves significant risk of loss. Consider seeking independent advice before making any trading decision.

  • #moving averages
  • #indicators
  • #trend
  • #technical analysis

JDGlobalFX

Ready to trade global markets?

Open a JDGlobalFX account and access a professional trading environment with flexible account options and modern platforms.

Risk disclosure

Forex and CFDs are complex, leveraged instruments and carry a high risk of losing money rapidly. Past performance is not a reliable indicator of future results. Before trading, you should consider your investment objectives, level of experience and risk appetite, and only trade with capital you can afford to lose. Nothing on this website constitutes investment advice or a recommendation to trade. This website is not directed at residents of any jurisdiction where such distribution or use would be contrary to local law or regulation. Read the full risk disclosure.

Search

Search markets, accounts, tools, education and FAQs