Skip to content
CFDs are leveraged products. Trading carries a high risk of losing money.Help center
FXBITI

MACD stands for Moving Average Convergence Divergence. It is a technical analysis indicator that compares two exponential moving averages, then displays their difference as a line. Traders use it to study momentum, trend changes and possible exhaustion, but it is not a prediction tool. It reacts to price data that has already printed, so every reading contains some lag.

What MACD measures

A moving average is a smoothed version of price. Instead of focusing on every candle, it averages a set of past prices to show the general direction more clearly. An exponential moving average, often called an EMA, gives more weight to newer prices than older prices. That makes it react faster than a simple moving average using the same number of periods.

The MACD line is usually built by subtracting a slower EMA from a faster EMA. A common setting is a 12-period EMA minus a 26-period EMA. If the faster EMA is above the slower EMA, the MACD line is above zero. If the faster EMA is below the slower EMA, the MACD line is below zero. This shows whether shorter term price action is stronger or weaker than the longer term average.

The signal line is usually a 9-period EMA of the MACD line itself. It smooths the MACD line and creates crossover signals. The histogram is the MACD line minus the signal line. When the histogram is positive, MACD is above its signal line. When it is negative, MACD is below its signal line.

Reading the lines and histogram

The basic bullish signal is a MACD line crossing above the signal line. The basic bearish signal is a MACD line crossing below the signal line. These signals can help identify a change in momentum, but they can also appear late or fail during choppy price action. A crossover is a clue, not a complete trading plan.

The zero line adds context. A bullish crossover above zero often means short term and longer term momentum are both pointing in the same direction. A bullish crossover below zero may only show that downside momentum is slowing. The same logic applies in reverse for bearish crossovers above and below zero.

The histogram helps traders see the distance between MACD and the signal line. Growing bars show that the gap is widening. Shrinking bars show that the gap is narrowing. A histogram turning smaller does not automatically mean price must reverse. It may only mean momentum is slowing while the trend continues.

Worked hypothetical example

Imagine a chart with round, hypothetical indicator values. The fast EMA is 110 and the slow EMA is 100. The MACD line equals 110 minus 100, so MACD is 10. Assume the previous signal line value was 8. For a 9-period EMA, the smoothing factor is 2 divided by 10, which equals 0.20. The new signal line is 8 plus (10 minus 8) times 0.20. That is 8 plus 0.40, so the signal line becomes 8.40.

The histogram is MACD minus the signal line. In this example, 10 minus 8.40 equals 1.60. The positive histogram shows that MACD is above its signal line. Now imagine the next reading has a fast EMA of 108 and a slow EMA of 102. MACD becomes 6. If the signal line is 7, the histogram is 6 minus 7, which equals negative 1. The shift from positive to negative shows that momentum has weakened compared with the signal line.

This example does not say whether to buy or sell. It only shows the arithmetic. A trader would still need to check trend context, volatility, trade cost, planned stop placement and position size.

Divergence and its caveats

Divergence means price and an indicator are not moving in the same way. A bearish divergence happens when price makes a higher swing high, while MACD makes a lower swing high. A bullish divergence happens when price makes a lower swing low, while MACD makes a higher swing low. Traders read this as a possible warning that momentum is fading.

Divergence is useful only when the swing points are chosen consistently. If one trader compares candle closes and another compares candle wicks, they may see different signals. Divergence can also appear many times before price turns, especially in a strong trend. It should not be treated as an automatic entry.

There is also a difference between MACD line divergence and histogram divergence. Histogram divergence can appear earlier because the histogram measures the gap between MACD and the signal line. Earlier signals are not always better. They may create more false alarms.

Common mistakes with MACD

  • Trading every crossover: Crossovers are frequent in sideways markets. Filtering by trend, volatility or chart structure can reduce noise.
  • Ignoring lag: MACD is based on moving averages. It responds after price changes, not before them.
  • Using one timeframe only: A signal on a short timeframe may conflict with a broader trend on a higher timeframe.
  • Confusing momentum with direction: A shrinking histogram can mean slower momentum, not an immediate reversal.
  • Forcing divergence: Divergence should compare clear swing highs or swing lows, not random candles.
  • Skipping risk control: No indicator removes the need for a defined stop, sensible position size and acceptance that losses can happen.

Practical MACD checklist

  1. Identify whether MACD is above or below the zero line.
  2. Check whether the MACD line is crossing, separating from or moving toward the signal line.
  3. Read the histogram as a measure of distance, not as a standalone buy or sell command.
  4. Mark only clear swing points before judging divergence.
  5. Compare the signal with price structure and the broader trend.
  6. Plan the trade size and invalidation point before entering, not after the indicator changes.

Educational content only, not investment advice. Leveraged trading can lose more than you expect.

FXBITI Insights

One email a week, nothing else

New explainers and glossary terms. No promotions.