MACD Trading Strategy: Crossovers, Histogram and Divergence

Trader at a desk studying a price chart with a momentum indicator panel on two monitors

A MACD trading strategy uses the moving average convergence divergence indicator to judge trend direction and momentum, then times entries when momentum turns back in the trend’s favour. In our experience it works best as a filter and a trigger together, read alongside price, not as a stand-alone buy and sell button.

Quick answer: what is a MACD trading strategy?

A MACD trading strategy reads the gap between a fast and a slow exponential moving average. Traders use the zero line to judge trend direction, crossovers of the MACD line and its trigger line to time entries, and the histogram to see momentum building or fading. Price structure and a stop still decide the trade.

MACD indicator explained: the three parts

If indicators are new to you, start with our best technical indicators for beginners, then come back here. MACD has three parts, and each one answers a different question.

The MACD line

The MACD line is the 12-period exponential moving average (EMA) minus the 26-period EMA. When the fast average is above the slow one, the line is positive; when it is below, the line is negative. It is, in effect, a moving average crossover shown as a single line, which is why our moving average crossover strategy guide is useful background.

The trigger line

The trigger line (often called the signal line) is a 9-period EMA of the MACD line itself. Because it smooths the MACD line, it turns later, and the moments when the two lines cross are what most traders call a MACD crossover.

The histogram

The histogram plots the gap between the MACD line and the trigger line. Taller bars mean the gap is widening; shrinking bars mean momentum is fading. Because it measures the gap, the histogram starts to shrink before the lines actually cross.

Trading platform screen with an indicator panel shown underneath a candlestick chart

Three ways traders use MACD

Most guides list the methods without saying when each one suits. Here is how we think about them.

The zero line as a trend filter

When the MACD line is above zero, the 12 EMA is above the 26 EMA, so short-term momentum favours buyers. Below zero favours sellers. We use this as a filter: long trades only above zero, short trades only below it, which keeps us on the side of the move.

The MACD crossover as a trigger

A bullish MACD crossover happens when the MACD line crosses above the trigger line; a bearish one is the reverse. On its own, a crossover fires constantly in sideways markets. With the zero-line filter, we only act on crossovers that line up with the trend, typically after a pullback.

Divergence as a warning

Bearish divergence is when price makes a higher high but MACD makes a lower high; bullish divergence is a lower low in price with a higher low in MACD. We treat it as a warning that a move is tiring, not an entry. The method is the same as on RSI, which our guide to RSI divergence trading with confirmation covers in full.

Trader drawing lines on a chart with a stylus on a tablet to compare price swings

A MACD trading strategy, step by step

This is the pullback approach we use when we reach for MACD at all. It combines the filter and the trigger, and lets price structure set the risk.

  1. Check the higher timeframe. Look for a clear trend of higher highs or lower lows; our guide to multiple timeframe analysis explains how.
  2. Apply the zero-line filter on your trading timeframe: longs only with MACD above zero, shorts only below.
  3. Wait for a pullback into a level such as a previous swing or a supply or demand zone.
  4. Watch the histogram shrink during the pullback, then turn back in the trend’s direction.
  5. Take the crossover in the trend’s direction as the trigger, ideally with a clear rejection candle.
  6. Place the stop beyond the pullback’s swing point, not at an indicator value.
  7. Size the trade so the stop costs a fixed slice of the account, and plan the exit before entry.
Calculator in front of monitors showing stock charts

When MACD works and when it misleads

MACD is built from moving averages, so it lags. It does best in markets that trend in clean swings, where pullbacks are shallow and momentum returns. It struggles in ranges, where the lines weave around each other and crossovers flip back and forth. For a faster momentum read in ranges, see our stochastic oscillator strategy.

Is there evidence that indicators carry any information at all? Lo, Mamaysky and Wang’s study, Foundations of Technical Analysis at MIT, concluded that several technical indicators do provide incremental information and may have some practical value. That is a long way from saying any one MACD rule makes money, so we test our own rules first; our guide on how to backtest a strategy shows how.

If the market is sideways, we either leave MACD off the chart or switch approach entirely, as in our range trading strategy for sideways markets.

MACD methods compared: what each one tells you and its main weakness
MethodWhat it tells youMain weakness
Zero lineWhich side of the trend momentum favoursLate at turning points
CrossoverMomentum turning on your timeframeWhipsaws in ranges
HistogramMomentum building or fadingEasy to over-read single bars
DivergenceA move may be tiringCan persist through a strong trend
Line chart on a laptop screen

Worked example: a hypothetical MACD pullback trade

All figures are hypothetical. On a £5,000 account we risk 1% per trade, which is £50. The daily chart of a currency pair shows a steady run of higher highs and higher lows.

  • Filter: on the 4-hour chart, the MACD line has stayed above zero throughout the advance.
  • Pullback: price dips to 1.2650, a previous swing high, while the histogram shrinks towards zero.
  • Trigger: the histogram turns up, the MACD line crosses back above the trigger line, and a bullish candle closes at 1.2670.
  • Stop: 1.2625, below the pullback low, so 45 pips of risk. At £1.10 per pip, that is about £50.
  • Exit plan: take half at 1.2760, the recent high (90 pips), and trail the rest behind new swing lows.

If price breaks 1.2625 instead, we take the £50 loss and wait. CFDs and spread bets are leveraged, so gaps and fast markets can move price through a stop and cost more than planned. Our guide to how much to risk per trade covers the sizing in more detail.

Hand writing in a notebook beside a keyboard

Common mistakes with MACD

  • Trading every crossover without a trend filter, which leads to repeated small losses in ranges.
  • Tweaking settings after each loss. Faster settings mostly add noise; consistency matters more than the numbers.
  • Shorting a strong uptrend on divergence alone. Divergence can repeat several times before a trend ends.
  • Setting stops at indicator levels instead of beyond a swing point on the price chart.
  • Stacking momentum tools. MACD, RSI and stochastics often say the same thing, so three agreeing is not three confirmations. Our guide to price action vs indicators explains why price comes first.

Frequently asked questions

What are the best MACD settings?

Most traders keep the default 12, 26 and 9, and we do too. Changing them alters how quickly the lines react, but no setting removes the lag or the whipsaws in ranges.

Is MACD a leading or lagging indicator?

It lags, because it is built from moving averages of past prices. The histogram turns a little earlier than the crossover, but it still follows price rather than predicting it.

Is MACD better than RSI?

Neither is better; they measure momentum in different ways. MACD suits trend-following pullbacks, while RSI is often used to spot stretched prices, and using both rarely adds much.

Does MACD work for day trading?

It can be used on intraday charts, but lower timeframes have more noise, so crossovers flip more often. A higher-timeframe trend filter matters even more there.

Next steps

MACD only helps once you can read the trend underneath it, so start with our trend following strategy with rules for riding trends, and compare it with the volatility view in our Bollinger Bands strategy guide.

Price action with technical analysis, and the filters and trigger process we use, are both part of our price action trading course, and the basics section is free to start.

This article is for education only and is not financial advice. Trading leveraged products such as CFDs and spread bets carries a high risk of losing money.