The MACD (Moving Average Convergence Divergence) was developed by Gerald Appel in the late 1970s and became one of the most popular indicators on any platform. Its appeal is that it combines two ideas in a single chart: the direction of the trend and the strength of momentum. Its weakness is the same as that of any moving-average tool: it lags, and it struggles in sideways markets.

How it is built

The MACD is calculated from exponential moving averages (EMAs), which give more weight to recent prices:

  1. MACD line = 12-period EMA − 26-period EMA.
  2. Signal line = 9-period EMA of the MACD line.
  3. Histogram = MACD line − signal line.

When the fast EMA (12) is above the slow one (26), the MACD line is positive: recent prices are rising faster than longer-term ones. When the difference grows, momentum is accelerating; when it shrinks, momentum is slowing.

The three main readings

1. Position relative to zero

A MACD line above zero means the short average is above the long one, which is typical of an uptrend. Below zero, the opposite. A zero-line cross is, in practice, equivalent to a crossover of the two exponential averages.

2. Crossover with the signal line

When the MACD line crosses above the signal line it is read as a bullish signal; when it crosses below, bearish. It is the most popular reading and also the noisiest: on low timeframes or in ranges, crossovers happen constantly.

3. The histogram

The histogram shows the distance between the MACD line and the signal line. Its usefulness is that it changes before the crossovers do: when the bars stop growing and start shrinking, momentum is weakening even if the trend continues. Many traders use it to anticipate crossovers or to spot the exhaustion of a leg.

Divergences

As with the RSI, a divergence appears when price and indicator disagree: price makes a higher high and the MACD (or its histogram) a lower one. It indicates that the move is losing momentum. But the MACD is not bounded between 0 and 100, and its values depend on the asset's price level, so its divergences can be misleading during very prolonged moves. The prudent approach is to treat them as an alert and wait for confirmation in price.

Why it fails in sideways markets

Moving averages need directional movement to separate. In a range, price oscillates around the averages, which cross again and again. The result is signals that reverse within a few bars: buys near the top of the range and sells near the bottom. That is why it is worth combining the MACD with a regime filter, such as the ADX (trend strength) or the price's position relative to a long-term average.

The lag is unavoidable

Because it is based on averages, the MACD confirms moves once they have been under way for a while. In long trends that lag does not matter much: you miss the beginning and the end but capture the middle. In markets that turn quickly, the lag can eat the whole profit. Shortening the periods (for example 5-35-5) reduces lag but increases noise; no setting removes that trade-off.

Comparing values across assets: a common mistake

The MACD is measured in price units. A MACD of 50 on an index trading at 30,000 points is not comparable with a MACD of 0.0010 on EUR/USD, or even with the same index when it traded at half the level. To compare momentum across assets or over time there is a normalised variant, the Percentage Price Oscillator (PPO), which expresses the difference between averages as a percentage.

One way to use it

  • Define the main trend on a higher timeframe (for example, daily).
  • On the trading timeframe, take only MACD crossovers that go with that trend.
  • Avoid signals when the ADX indicates no trend.
  • Place the stop based on price structure or a multiple of the ATR.
  • Use the histogram to manage the exit: reduce the position when momentum clearly weakens.

A worked example

Gold is in a daily uptrend, above its 200-day average. On the four-hour chart, after a pullback, the MACD histogram shrinks towards zero, the MACD line dips slightly below the signal line and then crosses back above it while price holds above the previous swing low. That crossover, aligned with the daily trend, is a reasonable entry trigger with a stop below the swing low. The same crossover against the daily trend would deserve much less trust.

Common mistakes

  • Trading every crossover without a context filter.
  • Treating divergences as an immediate reversal signal.
  • Optimising the periods on past data until they "fit".
  • Ignoring that during high-impact news the MACD reacts late and in jumps.

Conclusion

The MACD is useful for following trends and measuring whether momentum is accelerating or fading. It is not a complete system: it needs a regime filter, a price-based stop and coherent risk management. Understanding that it is a moving-average indicator — with its lag and its weakness in ranges — is what separates sensible use from a collection of false signals.

Educational content. Not an investment recommendation.