MACD Indicator Explained: How to Use It for Trend, Crossovers and Divergence

MACD Indicator Explained: How to Use It for Trend, Crossovers and Divergence

The MACD is one of the most popular indicators in trading, and it turns up in a lot of the strategies I’ve seen. It’s a momentum indicator: it helps you judge how strong a move is, and whether that strength is growing or fading. In this guide I’ll explain how the MACD is built, the four main ways to use it, and its limits.

What is the MACD?

MACD stands for moving average convergence divergence. The clue is in the name. It’s built from two moving averages and tracks whether they are converging (moving towards each other) or diverging (moving apart). That tells you about momentum: when the averages pull apart quickly, the move has strength behind it.

The indicator was developed by Gerald Appel in the late 1970s, and the histogram was added in the 1980s. Today it comes as standard on virtually every trading platform.

The three parts of the MACD

PartHow it’s calculatedDefault setting
MACD lineFast EMA minus slow EMA12 and 26 periods
Signal lineAn EMA of the MACD line9 periods
HistogramMACD line minus signal line—

The MACD line is the difference between two exponential moving averages (EMAs): a fast one, usually 12 periods, and a slow one, usually 26. The fast EMA follows price closely and moves around a lot; the slow one is much smoother. When the fast EMA pulls away above the slow one, the MACD line rises.

I’ve tested other settings, and I’ve never found a good reason to move away from the defaults of 12, 26 and 9.

The signal line is simply a 9-period EMA of the MACD line itself.

The histogram shows the gap between the MACD line and the signal line as bars. When the two lines cross, the histogram is at zero. When they move far apart, the bars get bigger. It’s a quick visual guide to whether momentum is building or fading.

Four ways to use the MACD

1. Trend direction

If the MACD line is above the signal line and rising, it points to an uptrend with some strength behind it. If it’s below the signal line and falling, a downtrend is in play.

2. Signal line crossovers

  • Bullish crossover: the MACD line crosses up through the signal line.
  • Bearish crossover: the MACD line crosses down through the signal line.

This is the most common way traders use the MACD. On a daily chart of GBP/USD in the lesson, several crossovers caught good moves, but there were also stretches where the lines crossed back and forth and you’d have been whipsawed in and out for losses. Everything looks good in hindsight; real time is harder.

3. Zero line crosses

The zero line runs through the middle of the indicator. When the MACD line crosses above zero, the fast EMA has moved above the slow EMA, suggesting short-term momentum is turning higher. A cross below zero suggests momentum is turning lower.

4. Divergence

Divergence is a very popular way of using the MACD, and it features in a lot of strategies.

  • Bullish divergence: price makes a lower low, but the MACD makes a higher low. The selling is losing momentum, and the downtrend may be close to turning.
  • Bearish divergence: price makes a higher high, but the MACD makes a lower high. The buying is losing momentum, and the uptrend may be close to turning.

Divergence can be a great clue to a turning point, but it can also persist for a long time before price turns, so wait for price action to confirm.

Reading the histogram

What I like most about the histogram is how clearly it shows changes in trend strength. In a strong uptrend, the bars sit well above the zero line and keep growing. When they start to shrink, even while price is still rising, momentum is fading: the MACD line and signal line are converging. That’s an early warning that the trend could be running out of steam.

Setting it up

On most platforms, including TradingView, DXtrade and MetaTrader, you add it from the indicators menu: search for “MACD” and use the standard version. In the settings you’ll see the fast length (12), slow length (26) and signal smoothing (9).

The MACD’s limits

  • It lags. It’s built from moving averages, so it always reacts after price has moved.
  • It whipsaws in ranges. When the market is going sideways, crossovers come thick and fast and many fail.
  • It’s not a holy grail. No indicator is. I’d never use the MACD on its own. Use it alongside price action, support and resistance, or another indicator, and backtest your rules before trading them.

The MACD and prop firms

On a funded account, the whipsaws are the thing to watch. A string of small losing crossover trades in a sideways market can eat into your daily and overall drawdown limits quickly. A simple filter, such as only taking crossovers in the direction of the higher-timeframe trend, can cut a lot of those out.

Frequently asked questions

What does MACD stand for? Moving average convergence divergence.

What are the best MACD settings? The defaults: 12 and 26 for the moving averages and 9 for the signal line. I haven’t found a good reason to change them.

What is a MACD crossover? When the MACD line crosses its signal line. Crossing up is a bullish signal, crossing down a bearish one.

What is MACD divergence? When price and the MACD disagree: price makes a new low or high, but the MACD doesn’t. It can warn that the trend is losing momentum.

Is the MACD a leading or lagging indicator? Lagging, because it’s built from moving averages.

Watch the lesson

This article goes with lesson 19 of the Prop Trader Central Masterclass, MACD. https://youtu.be/abBBHe5SNuI

Trading forex and CFDs involves a high level of risk and may not be suitable for everyone. Most retail accounts lose money when trading CFDs. This article is for educational purposes only and is not financial advice.