Moving averages in Forex help traders make sense of price movement without reacting to every candle. A moving average (MA) takes a selected number of recent prices, calculates their average and plots the result as a line on the chart. Each time a new candle is completed, the calculation is updated. The line is usually smoother than price itself, but it also reacts later. It describes recent market behaviour; it does not predict the next move.

The two versions most traders encounter are the simple moving average (SMA) and the exponential moving average (EMA). They use the same price history in different ways: the SMA gives every observation in its period equal weight, while the EMA gives more weight to recent prices. That difference affects how quickly each line turns, how often it is crossed and how traders tend to use it.

This guide explains the SMA and EMA formulas, what common Forex moving average settings actually represent, and how traders read slopes, price interactions and crossovers. It also covers the limitations that matter in live trading, including sideways markets, spreads, slippage and the difference between an unfinished candle and a confirmed close.

Moving Averages in Forex: SMA, EMA
Moving Averages in Forex: SMA, EMA

What Does a Moving Average Show in Forex?

A moving average is a rolling calculation based on past prices. On a chart, it turns a sequence of closes into a single line. When the line is rising, the average of the selected window is increasing. When it is falling, that average is decreasing. A nearly flat line suggests that prices in the window have been moving without producing much change in the mean.

The position of price relative to the line adds context. If candles close mostly above a rising average, recent trading has generally been stronger than the average of the selected period. If they close below a falling average, recent trading has generally been weaker. These observations can help describe a Forex trend, but they do not establish a trade by themselves. A moving average is one tool within technical analysis, not a complete trading method.

Most chart platforms calculate the line from closing prices by default. That means the high and low of each candle do not affect a close-based average. Some platforms also let the trader select the open, high, low, median price or typical price. A typical price is usually calculated as (high + low + close) ÷ 3. The selected source matters: two averages with the same period can sit at different levels if one uses closing prices and the other uses typical prices.

It is also useful to separate a moving average from an actual price level. Support and resistance are areas where price has previously reacted. A moving average is a calculated value that changes as new prices arrive. Traders sometimes use it as a reference for a pullback, but it is not an order waiting in the market and it does not have to hold. For a closer look at horizontal price areas, see the guide to Forex support and resistance.

Simple Moving Average (SMA): Formula and Example

A simple moving average, or SMA, adds the latest N prices and divides the total by N. Each price in the window has the same weight. For a five-period SMA, the five latest closing prices are added together and the result is divided by five.

SMA formula:

SMA = (P1 + P2 + … + PN) ÷ N

Here is a five-period example using made-up EUR/USD closes. These figures are for explaining the calculation, not a record of actual market prices.

The five closes are 1.1000, 1.1010, 1.1005, 1.1020 and 1.1015. Their sum is 5.5050, so the 5-period SMA is 5.5050 ÷ 5 = 1.1010. The next candle closes at 1.1030. The oldest close, 1.1000, leaves the window and the new close enters it. The updated calculation is (1.1010 + 1.1005 + 1.1020 + 1.1015 + 1.1030) ÷ 5 = 5.5080 ÷ 5 = 1.1016.

CalculationCloses in the five-period window5-period SMA
First window1.1000, 1.1010, 1.1005, 1.1020, 1.10151.1010
After the next close1.1010, 1.1005, 1.1020, 1.1015, 1.10301.1016
Change in the latest close1.1015 to 1.1030+15 pips
Change in the average1.1010 to 1.1016+6 pips

The latest price moved up by 15 pips, while the average increased by 6 pips. The difference is not an error. Four older closes remain in the calculation, so the new price cannot pull the five-period SMA all the way to itself in one update. This is one way to see why moving averages lag behind price.

A longer SMA changes more slowly because each new close represents a smaller part of the total. In a 20-period SMA, a new close accounts for one twentieth of the window. In a 200-period SMA, it accounts for one two-hundredth. The older observations remain in the calculation until they roll out. A 200-period SMA on a daily chart therefore provides a much slower view of the market than a 20-period SMA on the same chart. It can keep rising after price has turned down because many earlier, higher closes are still included.

Exponential Moving Average (EMA): Formula and Example

An exponential moving average, or EMA, also uses past prices, but it gives more weight to the newest observation. The weight is controlled by a smoothing multiplier calculated from the selected period:

EMA multiplier:

2 ÷ (N + 1)

EMA formula:

New EMA = Previous EMA + Multiplier × (Current close − Previous EMA)

For a five-period EMA, the multiplier is 2 ÷ (5 + 1), or approximately 0.333. Suppose the previous EMA is 1.1010 and the new candle closes at 1.1030. The difference between the close and the previous EMA is 0.0020. Multiplying that difference by 0.333 gives approximately 0.00067. The updated EMA is therefore about 1.1017.

The example assumes that a previous EMA value is already available. Platforms need an initial value before the recursive calculation can continue. A common approach is to seed the EMA with an SMA, although charting software can differ in its initialization and available historical data. As more candles are added, the effect of the starting value becomes less significant, but two platforms can show small differences near the beginning of a data series.

Unlike the SMA, the EMA does not drop an old observation out of the calculation in one step. Its influence becomes progressively smaller. This makes the EMA more responsive to recent price changes, although it can also turn more quickly during short-lived moves. A faster reaction is not automatically a better signal: it can mean an earlier entry in a sustained trend, but it can also mean more false turns in a choppy market.

SMA vs EMA: What Is the Difference?

The key difference between an SMA and an EMA is how they weight historical prices. The SMA treats every price in its selected window equally. The EMA places greater weight on recent prices and lets the influence of older prices fade gradually. Both are lagging indicators, and neither is consistently superior in every currency pair or market condition.

FeatureSimple Moving Average (SMA)Exponential Moving Average (EMA)
Price weightingEqual weight for every price in the windowMore weight on recent prices
Oldest priceDrops out when a new price enters the windowIts influence fades over time
Reaction to recent changesUsually smoother and slower to turnUsually responds more quickly
Typical chart useBroader trend context and longer reference periodsShorter-term direction and pullback analysis
Main drawbackCan react late when the market changes directionCan react to temporary price movements and produce more false signals

A trader looking for a slower reference line may prefer an SMA. Someone who wants the average to follow recent prices more closely may choose an EMA. These are preferences about responsiveness, not evidence that one calculation predicts price more accurately. It is sensible to compare both on the currency pairs and timeframes that will actually be traded, using the same entry and exit rules.

Some platforms offer other versions, including the weighted moving average (WMA) and smoothed moving average (SMMA). A WMA applies a different weighting scheme, while an SMMA smooths the series using its own calculation. They can be useful for particular methods, but learning how the SMA and EMA behave is usually enough to understand the role of moving averages in a chart-based trading plan.

Forex Moving Average Settings: 9, 20, 50, 100 and 200 Periods

The period is the number of candles included in the calculation. It is not a fixed number of minutes, hours or days. A 20-period moving average on a 15-minute chart uses 20 fifteen-minute candles. On a daily chart, it uses 20 daily candles. The same setting can therefore describe very different stretches of market activity.

Traders commonly experiment with 9 or 10, 20 or 21, 50, 100 and 200 periods. These values are conventions, not settings that the Forex market is required to respect. The table describes common ways they are used; it is not a recommendation to place all five lines on one chart.

PeriodCommon interpretationWhat to keep in mind
9 or 10Very short-term price movementResponds quickly but can be difficult to read in noisy conditions
20 or 21Short-term trend and pullback contextIts meaning changes considerably between intraday and daily charts
50Intermediate trend referenceOften used to put shorter-term moves into a broader context
100Slower medium- to long-term referenceCan help show whether a move is persistent or losing momentum
200Longer-term trend contextOn a daily chart, it reflects roughly 200 trading sessions rather than 200 calendar days

A 20-period average on a one-hour chart covers 20 hourly candles, or roughly one trading day of hourly observations. The same setting on a daily chart covers 20 trading sessions, which is close to one trading month. A 200-period daily average is a much slower reference, covering approximately 200 sessions. Always state the timeframe alongside the period. “The 50 moving average” is incomplete information on its own.

The price source and calculation type should also be recorded. A 50-period EMA based on closing prices is not the same study as a 50-period SMA based on typical prices. When comparing charts, testing a strategy or reviewing a trade, keep the period, type, source and timeframe consistent.

Small differences can also appear between platforms. Forex is an over-the-counter market, and chart providers may receive prices from different liquidity sources or build candles using different server-time boundaries. The resulting closes, and therefore the moving average, may not match tick for tick. A difference of a few points does not necessarily indicate a faulty indicator.

A D V E R T I S E M E N T Headway $150 No Deposit Bonus Banner

How to Use Moving Averages in Forex

There is no single moving average strategy that suits every pair and timeframe. In practice, traders use the line for a limited number of jobs: to describe the direction of the recent move, compare short- and long-term momentum, assess a pullback or filter trades against a broader trend. The role should be decided before the average is added to the chart.

1. Read the Direction and Slope

A rising average shows that the mean of the selected prices is moving higher. A falling average shows that it is moving lower. A flat line suggests that the mean has changed little over the window. This is a straightforward way to describe recent direction, but it is not a complete definition of market structure. Higher highs, lower lows, swing points and the location of price relative to previous ranges still matter.

For example, if EUR/USD is making higher swing highs and higher swing lows while a 50-period average is also rising, the line supports the view that the recent move has been upward. If price is repeatedly crossing a flat average while remaining between established highs and lows, the market may be ranging instead. The average helps summarize the chart; the candles show how price is behaving around it.

2. Compare Price With the Moving Average

Some traders use the closing price’s position relative to an average as a directional filter. They may focus on long setups while price is above a rising average, or short setups while it is below a falling one. This can reduce the number of trades taken against the recent direction. It can also make a trader late to a reversal because the average may continue pointing the old way after price has started to turn.

A single close above a falling average is not enough to establish a new uptrend. It may be the beginning of a change, but it may also be a temporary recovery inside a broader decline. Look at the sequence of price swings and nearby support and resistance areas before assigning the move a wider meaning.

3. Watch for a Moving Average Crossover

A moving average crossover occurs when one average moves across another. When a shorter-period average crosses above a longer-period average, the recent price window has strengthened relative to the longer one. When it crosses below, the shorter window has weakened relative to the longer one.

A common example is the 50-period and 200-period combination. A 50-period average crossing above a 200-period average is often called a golden cross. A cross below is known as a death cross. These names are widely used in chart analysis, but they do not make the crossover a reliable entry signal. The event is confirmed only after the prices that produced it have been recorded, so the market may have moved a considerable distance before the lines cross.

Shorter combinations can cross more often and respond sooner, but they are also more exposed to noise. Longer combinations produce fewer signals and can stay on the wrong side of a turning market for longer. A crossover is best treated as information about the relationship between two price averages. It still needs a defined entry, exit and risk rule.

4. Use the Average as a Moving Reference During Pullbacks

In an established trend, a pullback sometimes slows near a rising moving average. In a downtrend, a recovery can stall near a falling average. This behaviour is why traders sometimes call the line dynamic support or dynamic resistance.

The wording can be misleading. The moving average does not create a fixed barrier, and price does not have to reverse when it reaches the line. A trader watching a pullback may look for a change in candle structure, a break of a minor swing point or another pre-defined sign that buyers or sellers are returning. The moving average provides an area of interest, not a reason to enter on contact alone.

5. Combine a Higher Timeframe With a Lower Timeframe

Another approach is to use a slower chart for context and a faster chart for timing. For example, a trader might use a rising average on a four-hour chart to describe the broader direction, then look for a pullback or a price pattern on a one-hour chart. The higher-timeframe filter may remove some counter-trend trades, but it will also delay recognition of a genuine reversal.

The two charts need separate rules. A 50-period average on a four-hour chart represents 200 hours of candles, while a 50-period average on a one-hour chart represents 50 hours. They are not interchangeable simply because they use the same period number. This approach should also fit the trader’s trading style and the amount of time available to monitor positions.

A Practical Example: Reading Two Moving Averages Together

Consider a hypothetical EUR/USD four-hour chart with a 20-period EMA and a 50-period SMA. The 50-period SMA is rising, price is trading above it and the 20-period EMA is also pointing higher. After a short advance, price retreats towards the faster EMA.

A trader using this layout might describe the broader context as positive and mark the pullback as an area to watch. That does not mean a buy order should be placed as soon as the candle touches the EMA. The trader still needs to decide what would count as a failed pullback, what price action would justify an entry, where the trade idea would be invalidated and how large the position can be. If price breaks below the 50-period average and the previous swing low, the original interpretation may no longer apply.

The same chart can be read differently by a trader who uses moving averages only as a trend filter and waits for entries at horizontal support. Neither method is validated by the two lines alone. The example shows how averages can organize a decision, not how to obtain a guaranteed result.

Moving Averages in Trending and Sideways Markets

Moving averages are easiest to interpret when price moves persistently in one direction. The line gradually follows the trend, and a shorter average may stay above a longer one during an advance or below it during a decline. Even then, the average will lag the move and can give back part of the advance before a reversal becomes clear.

Sideways markets are more difficult. Price repeatedly moves above and below a relatively flat average, so crossover rules can produce a sequence of entries and exits without a sustained move to capture. The problem is not that the indicator has stopped working. It is doing what its formula is designed to do: averaging prices that are moving back and forth.

A flat moving average can be a warning that a trend-following signal is less useful, but it does not identify every range by itself. Check the chart for repeated reactions at similar highs and lows, overlapping candles and a lack of progress beyond recent swing points. A strategy designed for a directional market should have a rule for staying out when the market does not meet its conditions.

The Limitations of Moving Averages

Every moving average is based on historical data. The line cannot know whether the next candle will continue the trend, reverse sharply or remain inside a range. Its main limitations follow directly from that design.

The current candle also needs attention. While it is still forming, its latest price changes, so a moving average calculated from that candle can move as well. A crossover may appear during the candle and disappear before it closes. Traders who use close-confirmed signals should wait for the relevant candle to finish. Those who act before the close need to test and define that intrabar rule separately.

Spread, Slippage and Swap: The Costs Behind an MA Signal

A moving average is calculated from the selected chart prices. It does not subtract the spread or include the commission charged on a trade. A crossover that appears to capture a small move can lose much of its value once execution costs are included. This matters particularly on short timeframes, where the expected movement may be only a few pips.

Trading conditions can also vary during the day. Spreads on a major pair may be tighter during active market hours than during quieter periods, although this depends on the broker, account type and market conditions. A back-test that assumes one fixed spread for every candle can therefore give an unrealistic picture. The time of day in which a rule operates is part of its test conditions, because liquidity and trading costs can change between sessions.

For a slower strategy, overnight financing matters too. A position held across the broker’s rollover may incur or receive swap. The moving average does not account for that charge, and a signal that looks acceptable on a price-only chart can have a different result after financing is included. Scheduled economic releases can also cause sharp moves, wider spreads or slippage. A stop order does not guarantee execution at the requested price in a fast market. Check the economic calendar when event risk is relevant to the holding period.

How to Test a Moving Average Strategy

Before using an MA rule with real money, turn it into a set of conditions that another trader could follow in the same way. Specify the currency pair, timeframe, moving average type, period, price source and whether a signal requires a candle close. Then define the entry, stop-loss, exit and position-sizing rules. “Buy when the price looks strong above the average” is too vague to test consistently.

Use historical data that includes both directional and sideways periods. Record every qualifying signal, not only the examples that look clean on a chart. Include realistic spread, commission and slippage assumptions, and account for swap if positions are held overnight. Separate the data used to develop the rule from the data used to evaluate it; repeatedly changing the settings to improve historical results can create a strategy that fits the past but does not hold up on new prices.

Review more than the percentage of winning trades. Average win and average loss, the largest losing streak, drawdown and net results after costs all matter. A rule that wins often can still lose money if its losing trades are much larger than its winners. Once the historical test is complete, practise the same rules on a Forex demo account with conditions close to the intended live account.

A Disciplined Way to Use Moving Averages

Keep the chart readable. One or two averages with clearly defined roles are usually easier to interpret than a collection of lines that all try to describe the same price movement. For example, one average can provide broader trend context while another helps monitor shorter-term pullbacks. If two lines do not serve distinct purposes, one of them may not be needed.

Set the rules before the trade, not after a loss. Decide which close confirms a signal, what would invalidate the idea and where the stop belongs in relation to actual price structure. Then calculate the position size from the stop distance and the amount of money at risk. The guide to calculating Forex position size explains why the lot size must reflect the distance to the stop, while Forex risk management covers the wider process.

Do not move from a 20-period EMA to a 50-period SMA simply because the first setting produced a losing trade. That changes the method after seeing the result and makes performance difficult to evaluate. Keep a trading journal, record the market conditions and review a meaningful sample before making adjustments. The purpose of the moving average is to make one part of the chart easier to read, not to remove uncertainty from the market.

Frequently Asked Questions About Moving Averages in Forex

What is a moving average in Forex?

A moving average is an indicator that calculates the average of a selected number of recent prices and plots the result as a line. It smooths short-term price fluctuations and helps traders describe the direction of the selected period. Because it uses past prices, it is a lagging indicator.

What is the difference between an SMA and an EMA?

An SMA gives every price in its calculation window equal weight. An EMA gives more weight to recent prices using a multiplier of 2 ÷ (period + 1). The EMA usually responds more quickly to new prices, while the SMA is often smoother. Neither is better in every market condition.

Which moving average period is best for Forex?

There is no universally best period. Traders commonly test 9 or 10, 20 or 21, 50, 100 and 200, but the right setting depends on the timeframe, strategy and purpose of the line. A period should be selected using clear rules and evaluated on the currency pairs being traded.

Is the 50 or 200 moving average more important?

They describe different windows. A 50-period average gives a shorter view than a 200-period average on the same chart. Some traders use the 50-period line for intermediate context and the 200-period line for a longer-term filter. Their usefulness depends on the chart and the trading rules, not on the numbers alone.

What does a moving average crossover mean?

A crossover happens when a shorter-period moving average passes above or below a longer-period average. A move above indicates that the recent price window has strengthened relative to the longer window; a move below indicates relative weakness. The crossover is based on completed price changes and does not guarantee that the trend will continue.

What are the golden cross and death cross?

A golden cross commonly refers to a 50-period moving average crossing above a 200-period moving average. A death cross is the opposite event. The terms describe a relationship between two averages; they are not automatic buy or sell instructions and can appear after a large part of a move has already taken place.

Can a moving average act as support or resistance?

Traders sometimes watch a rising average as a possible area where a pullback may slow, or a falling average as a possible area where a recovery may stall. The line is a changing calculation, not a fixed price level. Price can cross it without reversing, so a touch alone is not confirmation of a trade.

Do moving averages work in a sideways market?

They can still describe the average price, but trend-following signals often become less useful in a range. Price may cross a flat moving average repeatedly, producing false entries and exits. Traders should identify market structure separately and test how their rules behave during both trending and sideways conditions.

Does a moving average change before a candle closes?

Yes. The value based on the current, unfinished candle can change as its price changes. A crossover may appear and then disappear before the candle closes. A rule that requires confirmation at the close avoids treating every temporary intrabar cross as a completed signal.

Does a moving average include spread, commission or swap?

No. A standard moving average is calculated from the selected chart prices. Spread, commission, swap and slippage are separate trading costs and must be included when evaluating a strategy. This is particularly important for short-term systems, where costs can represent a large part of the expected move.

Summary: Using Moving Averages in Forex

Moving averages turn recent price data into a smoother line that can help describe direction, compare different periods and put pullbacks into context. An SMA weights every observation in its window equally. An EMA gives greater weight to recent prices. The choice between them is a choice about how the calculation responds to new data, not a way to remove lag or predict the next candle.

The period, price source and timeframe all affect what the line shows. Crossovers and moving-average touches can help organise a trading plan, but neither should replace price analysis, a defined exit or position sizing. Test any rule across different market conditions and include spread, commission, swap and slippage before judging its results.

To put moving averages into a wider chart-reading process, continue with the guides to Forex trends, chart types, support and resistance and position sizing. The Forex education hub contains the rest of the site’s trading guides.

Trading Forex and CFDs with leverage involves a high level of risk and may not be suitable for every investor. This article is for educational purposes only and is not investment advice. The numerical examples use illustrative prices; they are not market data or forecasts.

LEAVE A REPLY

Please enter your comment!
Please enter your name here