moving average

Strategy & Trading Styles

What Is a Moving Average in Trading?

By Laverlane Team

A moving average is a technical indicator that smooths out past price data over a set number of periods. Traders use it to identify the overall direction of a market trend.

For CFD traders, a moving average can help filter out short-term price fluctuations. However, moving averages are lagging indicators, which means they respond to price movements after they have already happened.

For example, by the time a crossover signals a possible change in trend, the price may have already moved significantly. Following these signals without considering wider market conditions can be risky, particularly in a sideways market. False signals may lead to frequent trades, which can increase trading costs and gradually reduce your capital.

Quick Takeaways

  • Moving averages help identify existing trends, but they do not predict future price movements.
  • Shorter periods react more quickly to price changes, but they also tend to produce more false signals.
  • Crossover signals are less reliable in sideways markets and may lead to whipsaw trades and higher trading costs.

How Does a Moving Average Indicator Work?

A moving average indicator calculates the average closing price of an asset over a set number of previous periods. As each new price is recorded, the oldest data point is replaced, allowing the average to update continuously.

Instead of displaying every short-term price fluctuation, the indicator smooths price movements into a single line that makes the underlying trend easier to identify. When the price remains above the moving average, it generally suggests an upward trend. When it stays below the line, it may indicate a downward trend. Traders can adjust the indicator's sensitivity by changing the lookback period.

For example, a 20-period moving average responds quickly to recent price changes, making it useful for monitoring short-term momentum. However, it is also more likely to produce false signals. By contrast, a 200-period moving average reacts more slowly and is commonly used to identify the broader market trend while filtering out day-to-day volatility.

Understanding how to interpret moving averages is a fundamental part of what is technical analysis, as they help traders assess market trends rather than predict future price movements.

SMA, EMA, and WMA: What’s the Difference?

The main difference between a Simple Moving Average (SMA), an Exponential Moving Average (EMA), and a Weighted Moving Average (WMA) is how each one assigns weight to historical price data.

  • Simple Moving Average (SMA)Gives equal weight to every price within the selected period. For example, a 10-day SMA adds the closing prices from the last 10 trading days and divides the total by 10. It produces a smoother line but reacts more slowly to price changes.
  • Exponential Moving Average (EMA)Places greater weight on recent prices, making it more responsive to current market movements. Many short-term traders prefer the EMA because it can highlight potential trend changes sooner than an SMA.
  • Weighted Moving Average (WMA)Also gives more importance to recent prices, but uses a fixed linear weighting system. For example, in a 5-period WMA, the most recent price is multiplied by five, the previous price by four, and so on until the oldest price is multiplied by one. This makes it more responsive than an SMA while using a simpler weighting method than an EMA.

Building a Moving Average Strategy (and Its Limits)

A moving average strategy typically uses the indicator as dynamic support or resistance, or generates trading signals when a short-term line crosses a longer-term one.

One of the most common approaches is a crossover strategy. A Golden Cross occurs when a short-term moving average crosses above its longer-term counterpart, which may suggest that bullish momentum is strengthening. A Death Cross occurs when the short-term average crosses below the long-term average, which may indicate weakening momentum. Traders also use moving averages as dynamic support in an uptrend, looking for the price to pull back towards the line before continuing higher.

However, these patterns should not be treated as automatic buy or sell signals, since the indicator is a lagging one based entirely on historical price data. By the time the 50-day line crosses above the 200-day moving average, a significant part of the trend may already have taken place.

Crossover strategies also tend to be less reliable in sideways or range-bound markets, where frequent price fluctuations can produce false signals and repeated losing trades. For this reason, many traders combine moving averages with other technical indicators or price action analysis to help confirm trend strength before opening a position.

To learn how moving averages fit within a broader trading plan, see our guide to CFD trading strategies.

The True Cost of Whipsawing: Why Lagging Indicators Can Drain Trading Capital

Because moving averages are lagging indicators, they can generate false signals in sideways markets. This may lead traders to repeatedly open and close losing positions, increasing trading costs through spreads, commissions and, in some cases, overnight fees.

This is a limitation that is often overlooked. When a market is trending clearly, this smoothing effect can help filter out short-term price fluctuations. However, when prices move within a narrow range, the moving average tends to flatten, while the price repeatedly crosses above and below the line. This is known as whipsawing.

If you rely on a mechanical crossover strategy, a sideways market can trigger a series of false entry and exit signals. On a leveraged CFD account, these repeated trades can become particularly costly. Each new position requires you to cross the bid-ask spread, and some brokers also charge a commission. If a position is held overnight, you may also incur an overnight fee, depending on the instrument and market conditions.

For example, if five false crossover signals occur during a choppy trading session, the impact extends beyond small price losses. You may pay the spread and any applicable commission on every trade, while leverage can magnify the loss on each unsuccessful position.

Regulators such as the FCA and ESMA require CFD providers to disclose the percentage of retail investor accounts that lose money when trading CFDs, a figure that ESMA's analysis of national regulators' data across the EU found typically ranges from 74% to 89% depending on the provider. While there are many reasons for these losses, frequent false signals and rising trading costs in sideways markets can make it more difficult to achieve consistent trading results.

Conclusion

A moving average is a valuable technical indicator for filtering out short-term market noise and identifying the direction of an existing trend. However, it is a lagging indicator and should not be used to predict future price movements on its own.

Relying solely on crossover signals, particularly when trading leveraged CFDs in sideways markets, can result in frequent false signals, higher trading costs and unnecessary losses. Moving averages are most effective when used alongside other forms of technical analysis to confirm market conditions rather than anticipate them.

This article is for educational purposes only and does not constitute financial advice. Trading CFDs and other leveraged products involves risk, and losses can occur quickly. Always consider your own circumstances and seek professional advice if needed.

FAQ

Which Moving Average Is Best for Short-Term Trading?

Many short-term traders prefer the Exponential Moving Average (EMA) because it gives greater weight to recent price data. This makes it more responsive to changes in market momentum than a Simple Moving Average (SMA), although it can also produce more false signals.

Can a Moving Average Predict Future Price Movements?

No. A moving average is calculated using historical price data, making it a lagging indicator. It can help identify and confirm an existing trend, but it cannot predict where the price of an asset will move next.

What Is the 200-Period Moving Average Used For?

The 200-period moving average is commonly used to identify the long-term market trend. Because it is based on a large amount of historical price data, it reacts more slowly to short-term price fluctuations and may also act as a dynamic support or resistance level.

Why Are Moving Averages Less Effective in Sideways Markets?

In a sideways or range-bound market, prices frequently move above and below the moving average without establishing a clear trend. This can generate false trading signals and lead to repeated trades, increasing spreads, commissions and, where applicable, overnight fees.

How Many Moving Averages Should You Use on a Single Chart?

There is no fixed rule, but many traders use two or three moving averages with different timeframes, such as the 20, 50 and 200-period moving averages. This can provide a broader view of both short-term momentum and the longer-term trend while helping to avoid unnecessary chart clutter.