The three components and what each represents
The indicator is simpler than it looks, and each component derives from the previous one:
MACD line = EMA(12) − EMA(26) | Signal line = EMA(9) of the MACD line | Histogram = MACD − signal
| Component | What it measures | How to read it |
|---|---|---|
| MACD line | The gap between a fast and slow average | Positive = upward momentum, negative = downward |
| Signal line | A smoothing of the MACD line itself | A comparison reference, nothing more |
| Histogram | The distance between the two lines | Measures the acceleration of momentum |
The histogram is the most useful and least understood component: because it measures the rate of change of the gap, it begins contracting before a crossover occurs. Shrinking bars are an early warning that momentum is fading while the two lines are still apart.
Signal-line versus zero-line crossovers — not the same thing
Most explanations conflate the two crossover types and treat them as one signal, although they answer entirely different questions:
| Crossover | What it means | Speed | Risk |
|---|---|---|---|
| MACD crosses the signal line | Short-term momentum has shifted | Faster and more frequent | Many false signals |
| MACD crosses zero | The fast average crossed the slow one — a broader trend shift | Slower and rarer | Late, but more reliable |
The practical difference is large: a signal-line cross can happen several times within one trend without anything fundamental changing, while a zero-line cross genuinely means the relationship between the averages has inverted. Trading every signal cross in a sideways market means repeatedly entering and exiting for a string of small losses — the most common way to lose money with MACD.
A worked example: reading the histogram before the crossover
Follow four gold candles to see how the histogram leads the crossover:
| Candle | MACD line | Signal line | Histogram | Reading |
|---|---|---|---|---|
| 1 | +4.0 | +2.0 | +2.0 | Strong upward momentum |
| 2 | +4.2 | +3.0 | +1.2 | Price rising but momentum slowing |
| 3 | +4.1 | +3.7 | +0.4 | A clear early warning |
| 4 | +3.6 | +3.8 | −0.2 | Only now does the crossover occur |
Note candle two: the MACD line is still rising (4.0 → 4.2) and price is up, but the histogram contracted from 2.0 to 1.2 — momentum began losing acceleration two candles before the crossover. Someone watching the histogram tightens their stop or trims at candle three; someone waiting for the crossover acts at candle four, after part of the profit has eroded.
This does not make contraction a sell signal in itself — histograms often contract then expand again within a continuing trend. Its value is as a position-management warning, not a reversal order.
When not to use MACD: limits and mistakes
- Do not use it in a sideways market; crossovers pile up without direction and small losses accumulate. Identify the environment first.
- Do not expect precise timing: built on averages, it is lagging by definition and confirms what has begun rather than what will.
- Do not conflate the two crossover types; a signal cross is tactical, a zero cross is broader.
- Do not compare MACD values across instruments — the number is in the instrument's price units, exactly as with ATR.
- 12/26/9 is not sacred: Gerald Appel chose it for particular markets and timeframes. Changing it is legitimate, but changing it after every loss prevents any evaluation.
- Beware extended divergence: as with RSI, divergence can appear repeatedly before any actual reversal.