TraderLex Logo
Portal
Back to Blog

What Is MACD? A Guide to the Trend and Momentum Indicator

What is MACD and how is it calculated? Learn the MACD line, signal line, histogram, crossover signals and divergence.

What Is MACD? A Guide to the Trend and Momentum Indicator

What Is MACD?

MACD (Moving Average Convergence Divergence) is a technical analysis indicator that measures the relationship between two exponential moving averages (EMAs) of different speeds, showing both trend direction and momentum at the same time. It was developed by Gerald Appel in the 1970s and, alongside RSI, has become one of the most widely used oscillators in trading today.

How Is MACD Calculated?

MACD has three components:

  • MACD Line: the difference between the 12-period EMA and the 26-period EMA. If short-term price action is accelerating faster than the longer-term trend, this line rises.

  • Signal Line: a 9-period EMA of the MACD line. It smooths the MACD line to generate signals.

  • Histogram: the difference between the MACD line and the signal line, shown as bars. It visualizes how fast momentum is building or fading.

Together, these three components let you read both the direction of price and whether the strength behind that direction is increasing.

How to Read MACD

  • When the MACD line is above zero, the short-term average is above the long-term average, generally pointing to an uptrend.

  • When the MACD line is below zero, a downtrend tends to dominate.

  • When the histogram is growing, the current trend is gaining strength.

  • When the histogram is shrinking, the trend may be losing strength, which can foreshadow a reversal.

MACD Crossover Signals

The most commonly used MACD signal is the crossover between the MACD line and the signal line.

  • Bullish Crossover: the MACD line crosses above the signal line. Interpreted as a potential buy signal.

  • Bearish Crossover: the MACD line crosses below the signal line. Signals increasing selling pressure.

A crossover above the zero line is considered stronger, since it confirms an already existing uptrend. Crossovers below zero are read the same way within a downtrend.

The Zero Line Crossover

The MACD line crossing the zero level is a separate type of signal.

  • Crossing above zero: the 12-period EMA has crossed above the 26-period EMA, pointing to a medium-term trend turning up.

  • Crossing below zero: signals a medium-term trend turning down.

This signal occurs less often than the line crossover but generally reflects a more significant trend change.

MACD Divergence

Divergence happens when price and the MACD indicator move in different directions, and it is often watched as an early signal of a trend reversal.

  • Bullish Divergence: price makes a new low while MACD makes a higher low. This suggests downward momentum is weakening and an upward reversal may be more likely.

  • Bearish Divergence: price makes a new high while MACD makes a lower high. This suggests upward momentum is weakening and a downward reversal may be more likely.

Divergence signals can appear early and sometimes take a long time to play out. They are not enough on their own to open a trade; confirmation is needed.

Combining MACD with Other Tools

Because MACD is a momentum indicator, it can produce signals somewhat independent of price itself. To increase reliability, combine it with:

  • RSI: a MACD crossover that aligns with overbought or oversold RSI levels strengthens the signal.

  • Moving averages: a MACD signal in the same direction as the 50 and 200-day averages adds trend confirmation.

  • Volume: a rise in volume at the time of a crossover shows the move is backed by real buying or selling interest.

  • Support and resistance levels: a MACD signal that forms near a key support or resistance zone carries more weight.

Common Mistakes When Using MACD

  • Trusting it in sideways markets: when price is stuck in a tight range, MACD crosses frequently and generates false signals.

  • Ignoring the lag: since MACD is based on moving averages, it is a lagging indicator. By the time a signal appears, part of the price move has usually already happened.

  • Looking at a single timeframe: confirming a daily signal on the weekly chart reduces false positives.

  • Treating divergence as an immediate trade signal: divergence is a warning, not a guaranteed reversal.

  • Skipping risk management: every MACD signal needs an invalidation level and a stop-loss.

Conclusion

MACD is a practical indicator that shows trend direction and momentum strength at the same time. Crossovers, zero-line crosses and divergences each offer a different kind of information. Because it is a lagging indicator, it works best not on its own but alongside moving averages, RSI and support-resistance levels.

At TraderLex, we evaluate MACD, RSI and moving averages together with Elliott Wave, Fibonacci and macro data across Bitcoin, gold, DXY, oil, forex pairs and US equities. Join our email newsletter and Telegram channel for up-to-date analysis.

Risk warning: This article is for educational purposes only and is not investment advice. Trading financial markets involves the risk of capital loss.