On this page
Moving averages are among the most popular and versatile tools in a forex trader's arsenal. As a trend indicator, they smooth out price data to reveal the underlying direction of the market, helping traders identify trends, find entry and exit points, and filter out market noise.
Simple moving average (SMA)
The SMA (Simple Moving Average) calculates the arithmetic mean of closing prices over a specified period. For example, a 20-period SMA adds the last 20 closing prices and divides by 20. The SMA gives equal weight to all data points in the period, making it a smooth trend indicator that reacts gradually to price changes.
Popular SMA periods include 20 (short-term trend), 50 (medium-term trend), and 200 (long-term trend). Institutional traders closely watch the 50 and 200 SMAs as key levels.
Exponential moving average (EMA)
The EMA (Exponential Moving Average) applies more weight to recent price data, making it more responsive to current market conditions. This faster reaction time makes the EMA particularly useful for short-term trading strategies and scalping. The 12-period and 26-period EMAs are widely used, as they also form the basis of the MACD indicator.
SMA vs. EMA: which should you use?
- SMA — Better for identifying long-term trends and significant support/resistance levels. Less prone to false signals but slower to react.
- EMA — Better for capturing short-term momentum and generating timely entry signals. More sensitive to price changes but may produce more false signals.
- Many traders use both — EMAs for entries and SMAs for trend confirmation and key levels.
The golden cross and death cross
Two of the best-known moving average crossover signals are the golden cross and the death cross:
- Golden Cross — Occurs when the 50-period moving average crosses above the 200-period moving average. It is read as a bullish signal that may mark the beginning of a long-term uptrend.
- Death Cross — Occurs when the 50-period moving average crosses below the 200-period moving average. This bearish signal warns of a potential long-term downtrend.
These crossover signals are generally given more weight on daily and weekly charts. On lower timeframes, they generate more false signals due to market noise. On any timeframe a moving average is built from past prices, so a crossover arrives after the move has begun, and the evidence that crossovers predict what follows is weak and disputed.
Moving average crossover strategies
Beyond the golden and death crosses, moving average crossover strategies use pairs of moving averages with different periods:
- Fast/Slow Crossover — Use a fast MA (e.g., 9 EMA) and a slow MA (e.g., 21 EMA). The rule reads a cross of the fast MA above the slow MA as a buy signal and a cross below as a sell signal.
- Triple MA System — Combine three MAs (e.g., 5, 13, and 34 EMAs). The rule enters trades when all three align in the same direction, which its users read as stronger trend confirmation.
Choosing the right period
The period you select for your moving averages depends on your trading style. Scalpers use 5-20 period MAs, swing traders prefer 20-50 periods, and position traders rely on 50-200 period MAs. Settings can be compared on historical data, but a configuration chosen because it fitted the past best will not necessarily fit what comes next.
Revised 4 October 2026. Moving averages and their crossovers were described as “reliable”; the lesson now says what a crossover is, that it arrives after the move has begun, and that the evidence that it predicts what follows is weak and disputed.
Try it yourself
The period of a moving average
Change the period of a simple moving average over one fixed price path. A longer period gives a smoother line that turns later.
The shaded band is the set of closes inside the average at its highest point.
- The price is highest in
- period 34 of 90
- The average is highest in
- period 41 of 90
- Mean change from one period to the next: price
- 2.4 pips
- Mean change from one period to the next: average
- 1.6 pips
A 10-period simple moving average: each point is the mean of the last 10 closes. On this path the price is highest in period 34 and the average is highest in period 41, 7 periods later. That delay is the lag: an average turns only after enough of the prices inside it have turned, so a longer period gives a smoother line that turns later.
SimulationEvery figure here is an invented round example: no real instrument and no real price. The path is drawn from a fixed formula on a scale of 0 to 100 example pips, and it is the same on every visit. On another path the lag would be a different number of periods. Educational information, not investment advice or a recommendation to trade.
Three questions
Check what you have read
Each answer is in the lesson above. Nothing is timed or graded: when all three are answered correctly, this browser remembers the lesson as completed, and nothing is sent anywhere.
Question 1 of 3
Question 2 of 3
Question 3 of 3
The lesson, in a limerick
An average smooths out the noiseand gives a rough trend, with some poise.But it follows behind:keep that fact in mind,for a line that is late has few joys.
Lesson 3 of 6 in Technical analysis. A suggested order: nothing here is graded, timed or certified.
