Laverlane
Strategy & Trading Styles

What Is the MACD Indicator? A Beginner's Trading Guide

LLaverlane Team·Updated 26 Aug 2026
In this article
A financial chart with moving average lines and a momentum indicator displayed below price bars
Direct Answer

The Moving Average Convergence Divergence (MACD) indicator is a technical momentum tool that tracks the relationship between two exponential moving averages of an asset's price. It is calculated by subtracting a 26-period EMA from a 12-period EMA, with a 9-period EMA signal line plotted on top to highlight short-term directional momentum shifts.

The Moving Average Convergence Divergence (MACD) indicator is a trend-following momentum tool that shows the relationship between two exponential moving averages of an asset's price. Traders use it to assess changes in momentum and direction, as well as potential shifts in an existing trend.

Understanding how momentum develops can help traders interpret price movements, but relying on moving average signals alone can result in late entries. This guide explains how the MACD indicator is calculated and how to read its line crossovers and histogram signals. It also covers how trading costs such as spreads and slippage can affect strategies that rely on delayed indicator signals.

Quick Takeaways

  • The MACD measures market momentum by subtracting a 26-period exponential moving average from a 12-period exponential moving average.
  • Signal line crossovers can highlight changes in short-term directional momentum, although the use of lagging moving averages means signals may arrive late in fast-moving markets.
  • Divergence between price and the MACD line can indicate that momentum within an existing trend is weakening.
  • Sideways or consolidating markets can produce frequent false crossover signals, known as whipsaws, which may increase overall trading costs.

What Is the MACD Indicator and How Is It Calculated?

The MACD is a technical indicator created by Gerald Appel in the late 1970s. MACD stands for Moving Average Convergence Divergence. Rather than predicting future price movements, it uses moving averages of historical prices to help traders assess trend direction and changes in momentum.

The MACD consists of three main elements, which are usually calculated automatically by charting software:

  1. The MACD Line: The main line used to track momentum. It is calculated by subtracting a 26-period exponential moving average (EMA) from a 12-period EMA.
  2. The Signal Line: A 9-period EMA of the MACD line. Traders use it to identify changes in directional momentum.
  3. The MACD Histogram: A series of bars showing the difference between the MACD line and the Signal line. When the MACD line is above the Signal line, the histogram is above zero.

The standard formula for the main indicator line is:

MACD Line = 12-period EMA − 26-period EMA

Because the MACD is calculated from historical price data, it is a lagging indicator. It responds to price movements that have already taken place rather than forecasting future market turns. This lag is important when assessing potential entries in volatile markets.

How to Read MACD Signals: Crossovers and Divergence

Traders read the MACD by looking at how its lines interact with each other and with the central zero line. The three main types of signals are signal line crossovers, zero-line crossovers and divergence.

Signal Line Crossovers

A signal line crossover occurs when the MACD line crosses the Signal line.

  • Bullish Crossover: The MACD line crosses above the Signal line. This indicates that short-term momentum is strengthening relative to longer-term momentum.
  • Bearish Crossover: The MACD line crosses below the Signal line. This indicates that short-term downward momentum is strengthening relative to the longer-term trend.

In practice, many traders find that taking every signal line crossover can lead to overtrading, particularly when the moving averages are flattening around the zero line.

A bullish MACD crossover indicates a shift in momentum, but it works differently from a structural moving average crossover such as a golden cross. A golden cross is typically used to identify longer-term changes in trend direction on price charts.

Zero-Line Crossovers

The zero line represents the point at which the 12-period EMA and 26-period EMA are equal. When the MACD line moves above zero, the shorter-term moving average is above the longer-term moving average, indicating positive momentum. When the MACD line falls below zero, the shorter-term average is below the longer-term average, indicating negative momentum.

MACD Divergence

Divergence occurs when price and the momentum measured by the MACD move in different directions.

  • Bullish Divergence: Price makes a new lower low, while the MACD line forms a higher low. This can indicate that downward momentum is weakening.
  • Bearish Divergence: Price makes a new higher high, while the MACD line forms a lower high. This can indicate that upward momentum is weakening even though the price continues to rise.

Divergence can highlight a loss of momentum, but it does not confirm that a reversal will occur or indicate exactly when one might happen.

MACD in CFD Trading: Execution Costs and Delayed Signals

When trading Contracts for Difference (CFDs), using lagging technical indicators introduces practical trading costs that can affect overall performance. Because the MACD is calculated from past prices, a signal line crossover occurs only after the underlying price has already started to move.

When a trader acts on a delayed crossover, the market may already have moved several pips in the direction of the trend. This can result in a less favourable entry price. When leverage is involved, the position is then exposed to further market movements while also being subject to trading costs.

CFD trading costs can include the bid-ask spread — the difference between the buying and selling price — broker commissions and overnight fees for positions held beyond the broker's daily cut-off time.

For example, suppose a trader waits for a confirmed bullish MACD crossover on a 15-minute EUR/USD chart. By the time the crossover occurs, the price has risen 8 pips from the local swing low. If the bid-ask spread is 1.2 pips, the position effectively starts 9.2 pips away from that earlier reversal point. If the move then loses momentum, the position may move into a loss before the initial trading cost has been recovered.

Relying solely on delayed indicator signals without considering spreads, market conditions and risk management can make consistent account management more difficult.

Risks and Limitations: The Danger of Whipsaws

One important limitation of the MACD is that it can produce frequent false signals during ranging or low-volatility markets. When prices move sideways within a narrow range, the 12-period and 26-period moving averages can converge and cross repeatedly.

These false signals are commonly known as whipsaws. A trader who opens a position after a bullish crossover in a sideways market may see the MACD line cross below the Signal line again only a few candles later. Repeated entries and exits can result in trading losses while also accumulating spreads and other trading costs.

To reduce this risk, traders may avoid treating MACD crossovers as standalone trade signals. Instead, they can assess them alongside other information, such as support and resistance levels, volume analysis or broader trend filters.

Conclusion: Understanding the MACD Indicator

The MACD provides a visual way to assess trend direction and changes in market momentum by combining exponential moving averages within an oscillator-style indicator. By monitoring line crossovers, the histogram and divergence, traders can identify changes in momentum and situations where an existing trend may be losing strength.

However, because moving averages respond to historical price data, MACD signals can lag behind current price action. During sideways or range-bound markets, this can also lead to frequent false signals and unnecessary trading costs.

As of 2026, regulatory risk disclosures for CFD providers put the figure between 74% and 89% of retail investor accounts losing money — the exact percentage varies by broker, so it's worth checking the risk warning on each provider's site. Leveraged trading carries significant risk, and technical indicators cannot guarantee an outcome or remove market uncertainty. Combining momentum analysis with appropriate risk management and a broader understanding of technical indicators can help traders assess short-term market conditions more carefully.

FAQ

What is the MACD indicator used for?

You can use the MACD indicator to measure price momentum and identify potential trend changes. By comparing short-term and long-term exponential moving averages, the tool shows whether buying or selling pressure is strengthening or weakening over time.

Is the MACD indicator leading or lagging?

The MACD indicator is a lagging indicator because its calculations are based on historical price data. It confirms momentum shifts after a price move has already started rather than predicting future market turnarounds in advance.

What is a bullish MACD crossover?

A bullish crossover occurs when the primary MACD line crosses above the Signal line. This technical event indicates that short-term upward momentum is increasing faster than the longer-term moving average baseline.

Why does the MACD indicator create false signals in ranging markets?

In sideways or consolidating markets, moving average lines repeatedly converge and cross back and forth. These frequent crossovers generate false entry signals, known as whipsaws, which can lead to consecutive trading losses and higher spread expenses.

What is the difference between the MACD and the RSI?

The MACD measures the relationship between two moving average trend lines to evaluate directional momentum. The Relative Strength Index (RSI), by contrast, measures the velocity of recent price gains versus losses on an absolute scale from 0 to 100.