Strategies6 min read

MACD Indicator Explained

MACD (Moving Average Convergence Divergence) is a momentum indicator that shows the relationship between two moving averages. Most traders use it for crossovers — and most traders lose money with it. Here's what MACD actually tells you and how to use it properly.

How MACD Works

MACD has three components:

MACD Line — The 12-period EMA minus the 26-period EMA. This line measures the distance between two moving averages. When it's positive, short-term momentum is bullish. When it's negative, it's bearish.
Signal Line — A 9-period EMA of the MACD line. This smooths the MACD line and generates crossover signals. When the MACD line crosses above the signal line, it's a buy signal. When it crosses below, it's a sell signal.
Histogram — The MACD line minus the signal line. The histogram visualises the gap between the two lines. Growing bars mean momentum is accelerating. Shrinking bars mean momentum is fading.

The Crossover Strategy (And Why It Fails)

The standard MACD crossover strategy is simple: buy when the MACD line crosses above the signal line, sell when it crosses below. In trending markets, this works. In ranging markets — which is most of the time — it generates false signal after false signal.

The problem is lag. MACD is built from moving averages, which are lagging indicators. By the time the crossover happens, the move is often already halfway done. You're entering late and exiting late.

  • Crossovers work in trends but get whipsawed in ranges
  • MACD lags price — you enter late and exit late
  • Default settings (12, 26, 9) aren't optimal for all instruments

Divergence: The Real Edge

Divergence is when price and MACD disagree. This is where MACD becomes genuinely useful.

Regular Divergence — Price makes a higher high but MACD makes a lower high. This suggests the uptrend is losing momentum. A reversal may be coming. The opposite (price lower low, MACD higher low) signals potential bottoming.
Hidden Divergence — Price makes a higher low but MACD makes a lower low. This suggests the trend is still strong despite a pullback. Hidden divergence is a continuation signal, not a reversal signal. It's often more reliable than regular divergence.

Divergence doesn't guarantee a reversal — but it tells you momentum is shifting. That's information a crossover can't give you.

Combining MACD With Other Indicators

MACD works best as a confirmation tool, not a standalone signal. Here are three combinations worth testing:

1.
MACD + RSI — Use RSI for overbought/oversold levels, then wait for MACD divergence at those levels. RSI confirms the extreme; MACD divergence confirms the momentum shift.
2.
MACD + Support/Resistance — Only take MACD divergence signals at key support or resistance levels. Divergence at a random price level is noise. Divergence at a level that's been tested multiple times is a signal.
3.
MACD + EMA Filter — Only take buy signals when price is above the 200 EMA. Only take sell signals when below. This filters out counter-trend crossovers that whipsaw.

Backtesting MACD Strategies

When backtesting MACD, test the following:

  • Default settings vs. optimised (try 5, 35, 5 for slower signals)
  • Crossover-only vs. divergence-only vs. combined
  • With and without a trend filter (200 EMA)
  • Different instruments — MACD behaves differently on indices vs. forex vs. commodities

You can test MACD strategies across 50+ instruments on the backtester. Or browse the Strategy Lab to see which MACD setups are performing best in current market conditions.

Related Articles

→ RSI Indicator Explained→ EMA Crossover Strategy Guide→ Bollinger Bands Strategy

← Back to Blog · Open Backtester → · Strategy Lab →