Forex MACD

MACD (Moving Average Convergence Divergence) is a momentum indicator built from two moving averages. It shows the direction of a trend, how strong it is, and when that strength starts to fade.


What is MACD?

MACD was created by Gerald Appel in the late 1970s. It measures the gap between a fast and a slow exponential moving average (EMA). If you are new to EMAs, read Moving Averages first.

When the fast EMA pulls away from the slow EMA, momentum is growing. When the two come back together, momentum is fading.

Note: "Divergence" in the MACD name means the averages spreading apart. It is not the same as price/indicator divergence, which you will meet later in this lesson.

The Three Parts of MACD

The standard settings are 12, 26, 9. They create three parts:

MACD line = EMA(12) − EMA(26)
Signal line = EMA(9) of the MACD line
Histogram = MACD line − Signal line
PartWhat it isWhat it tells you
MACD lineFast EMA minus slow EMADirection and strength of momentum
Signal lineA 9-period EMA of the MACD lineA smoother version, used as a trigger
HistogramBars showing MACD minus signalWhether momentum is speeding up or slowing down
Zero lineThe level where both EMAs are equalAbove = bullish bias, below = bearish bias

Example

On an EUR/USD 4-hour chart the 12 EMA is 1.0872 and the 26 EMA is 1.0860.

MACD line  = 1.0872 − 1.0860 = 0.0012   (12 pips)
Signal     = 0.0009                       (9 pips)
Histogram  = 0.0012 − 0.0009 = 0.0003   (3 pips, positive)

The MACD line is above zero and above its signal line. Momentum is bullish and still growing.

EUR/USD with the 12 and 26 EMAs. Watch how the MACD panel rises while the EMAs spread apart, then falls as they cross back.

Tip: MACD values are in price units, so they are not comparable between pairs. A reading of 0.0012 on EUR/USD and 0.25 on USD/JPY cannot be compared directly.


Zero Line Crossovers

The zero line is where the 12 EMA and the 26 EMA are equal. A cross of the zero line is the same thing as the two EMAs crossing on the price chart.

Zero line crosses are slow. They confirm a trend that has already started. Many traders use them as a filter: only look for buys when MACD is above zero, only sells when it is below.

Example

GBP/USD has been falling. The MACD line has been below zero for two weeks. Today it closes at +0.0004.

This is a bullish zero line cross. A trend-following trader stops looking for sells and starts looking for buy setups on pullbacks.

Signal Line Crossovers

The most common MACD signal is the signal line crossover. It happens more often than a zero cross, so it is faster but gives more false signals.

Crossovers are stronger when they agree with the zero line. A bullish crossover above zero is in line with the trend. A bullish crossover far below zero is a counter-trend signal and is riskier.

SignalLocationQuality
Bullish crossoverAbove zeroWith the trend — stronger
Bullish crossoverBelow zeroEarly reversal — weaker, needs confirmation
Bearish crossoverBelow zeroWith the trend — stronger
Bearish crossoverAbove zeroEarly reversal — weaker, needs confirmation

Warning: In a sideways market the MACD line and signal line cross back and forth many times. Each cross looks like a signal, but most of them lose money. Check the trend first (see Trends & Trendlines).


Reading the Histogram

The histogram is the distance between the MACD line and the signal line. It moves first, so it gives the earliest hint that momentum is changing.

Example

USD/JPY is rising. The last five histogram bars read 0.18, 0.24, 0.27, 0.21, 0.12.

The bars peaked at 0.27 and are now shrinking. Price is still going up, but momentum is slowing. A buyer might tighten the stop or take partial profit. It is not a sell signal on its own.

MACD Divergence

Divergence is when price and MACD disagree.

Bearish divergence: price makes a higher high at High 2, but the MACD peak is lower than at High 1. The slower second rally warned that the move was tiring.

Tip: Divergence can last a long time before price turns. Wait for confirmation, such as a signal line crossover or a break of a trendline. The Divergence Trading lesson covers this in depth.


Strengths and Weaknesses

Strengths

  • Shows trend and momentum in one panel.
  • Clear, rule-based signals.
  • Works on every timeframe and pair.
  • Histogram gives early warning of slowing momentum.

Weaknesses

  • Lagging — built from moving averages, so signals come late.
  • Many false crossovers in ranges.
  • No fixed overbought/oversold levels (unlike RSI).
  • Values cannot be compared across pairs.

A Simple MACD Checklist

  1. Check the zero line: above = look for buys, below = look for sells.
  2. Wait for a signal line crossover in that same direction.
  3. Confirm with price: a support or resistance level, or a candlestick pattern.
  4. Place a stop beyond the recent swing and size the trade with position sizing.

Remember: No indicator predicts the future. MACD describes what price has already done. Always use a stop loss and risk only a small part of your account per trade.

Test Yourself With Exercises

What are the standard MACD settings?

  1. 9, 14, 20
  2. 12, 26, 9
  3. 14, 3, 3
The default is 12, 26, 9: a 12 EMA, a 26 EMA, and a 9-period signal line.

The 12 EMA is 1.2735 and the 26 EMA is 1.2720. The signal line is 0.0018. What is the histogram value?

  1. +0.0015
  2. +0.0003
  3. −0.0003
  4. −0.0015
MACD = 1.2735 − 1.2720 = 0.0015. Histogram = 0.0015 − 0.0018 = −0.0003. The MACD line is below its signal line.

Price makes a higher high, but MACD makes a lower high. What is this called?

  1. Bearish divergence
  2. Bullish divergence
  3. A zero line cross
Higher high in price with a lower high in MACD is bearish divergence: upward momentum is weakening.

What does it mean when the MACD line crosses above zero?

  1. The pair is overbought
  2. The histogram has turned negative
  3. The signal line has crossed the MACD line
  4. The 12 EMA is now above the 26 EMA
MACD = EMA(12) − EMA(26). It is positive only when the 12 EMA is above the 26 EMA.

In which market condition does MACD give the most false signals?

  1. A strong uptrend
  2. A sideways range
  3. A strong downtrend
In a range the lines cross back and forth constantly, creating many signals that fail.