Price prints a new high. Below the chart, the MACD histogram bars are shorter than they were at the previous high. Most traders read that as a warning. What it literally says is that the gap between two exponential averages is narrower than it was last time, which may or may not have anything to do with what happens next. Knowing which is which requires knowing what the three lines are made of.
Three components, one underlying calculation
Gerald Appel put the Moving Average Convergence Divergence together in the late 1970s, and the default settings have barely moved since. The MACD line is a 12-period exponential moving average of price minus a 26-period exponential moving average. When the fast average is above the slow one, the result is positive; when it is below, negative.
The signal line is a 9-period exponential average of the MACD line itself, so it is a smoothed version of a difference. The histogram, a later addition to the original two-line indicator, plots the distance between the MACD line and the signal line as bars. Everything you see in the panel derives from the same two averages of the same price series, which is why understanding those averages first makes the rest of it obvious rather than magical.
The zero line is the honest level
MACD has no fixed boundaries. It cannot be overbought, because there is no ceiling. The one level with an unambiguous meaning is zero, which is where the 12-period and 26-period averages are equal.
A cross above zero means the fast average has moved above the slow one. That is exactly the same event as a moving average crossover drawn on the price chart, occurring at exactly the same bar, presented in a different panel. Traders who run a crossover system and a MACD zero-line system together sometimes believe they have two confirmations. They have one, counted twice, and that mistake produces oversized positions on a single piece of evidence.
Two indicators built from the same inputs do not confirm each other. If a setup requires confirmation, the second source has to measure something different, such as price structure, volatility or session context.
Reading the histogram for what it is
The histogram measures the gap between the MACD line and its own smoothed version. When momentum accelerates, the MACD line pulls away from the signal line and the bars grow. When it decelerates, the bars shrink. The histogram crosses zero at the exact moment the MACD line crosses the signal line, so it does not predict that crossover, it renders it visibly in advance by showing the gap closing.
That earlier reading is the histogram's usefulness and its danger. Bars shrink constantly in trends that go on for weeks, because momentum in any real move is uneven. Treating every contraction as an exit produces a stream of early exits in exactly the trends worth holding. The more defensible use is as a prompt: shrinking bars are a reason to look at the position and check whether the structural reason for holding it still exists, rather than a reason to close.
Why MACD values cannot be compared
The output is expressed in the instrument's own price units. A MACD value of 0.0021 on a currency pair and a value of 14.2 on an index are not comparable, and neither is the same instrument's MACD across timeframes, since a 4-hour reading and a daily reading are computed from entirely different bars.
Two practical consequences follow. Any rule of the form "enter when MACD exceeds X" is instrument-specific and has to be recalibrated for everything it runs on, which is a fragile way to build a system. And a screener ranking instruments by absolute MACD value is ranking them mostly by price level and volatility, which is not what its user intended. This is the structural difference from RSI, which is bounded 0 to 100 and therefore comparable across anything, at the cost of throwing away magnitude.
Divergence, with the same warning as everywhere else
MACD divergence, where price makes a higher high and the indicator does not, is the most cited signal in the whole panel. It also fails frequently, and for a reason that is mechanical rather than psychological: momentum peaks earlier than price in most extended moves, so divergence shows up routinely inside trends that continue for a long time afterwards.
What makes divergence worth anything is what happens after it. If price then breaks the swing low that defined the trend structure, the divergence was part of a real change. If price simply consolidates and pushes on, the divergence was noise, and there will be another one at the next high. Traders who wait for the structural break give up some of the move and avoid most of the false signals, which is usually the better trade in a category where position size and stops decide the outcome anyway. Leveraged trading carries a high risk of loss, and no indicator pattern reduces it.
The settings question, answered briefly
12, 26 and 9 are conventions, not results. Shortening them produces more crossovers, more histogram flips and more of everything, good and bad. Lengthening them produces fewer signals and later ones. Because so many participants run the defaults, there is a weak self-fulfilling argument for keeping them, and no mathematical argument for any particular alternative.
What matters far more than the numbers is the timeframe they run on and whether the market is trending or ranging. MACD works reasonably as a trend follower and poorly as a range tool, since in a range it crosses back and forth producing a loss on nearly every signal. Deciding the market state first, then applying the indicator, gets more out of it than any parameter search will. And any parameter change should be tested on out-of-sample data, because an optimiser handed three parameters and enough history will always produce something that looks excellent and means nothing.
"MACD is a difference between two averages, plotted twice. When someone tells me their MACD confirmed their moving average crossover, I know they have not looked at the formula."
— Alex Onta, Executive Director, SINGUARD
Key Takeaways
- The MACD line, signal line and histogram all derive from the same two exponential averages of price.
- A zero-line cross is the same event as a moving average crossover, so pairing the two is one signal counted twice.
- Histogram contraction is normal inside healthy trends, which makes it a review prompt rather than an exit trigger.
- MACD values are in price units, so thresholds and screeners built on absolute values do not transfer between instruments.
Frequently Asked Questions
What do the numbers 12, 26 and 9 mean in MACD?
They are periods for three exponential moving averages. The MACD line is the 12-period average minus the 26-period average. The signal line is a 9-period average of that difference. The histogram plots the gap between the MACD line and the signal line, so all three are built from the same two underlying averages of price.
What does the MACD zero line represent?
Zero is the point where the fast and slow moving averages are equal. Above zero, the shorter average sits above the longer one, which is what most traders mean by an uptrend on that timeframe. A cross of the zero line is therefore the same event as a moving average crossover on the chart, arriving at the same time.
Is the MACD histogram an early warning?
The histogram turns before the signal line crossover, because it measures the gap that the crossover eventually closes. That earlier reading comes with more false alarms, since a shrinking gap frequently expands again without any change in trend. It is better used to prompt a review of an open position than as a standalone entry or exit trigger.