MACD Indicator Explained: Crossovers and Histogram
The moving average convergence divergence indicator (MACD) compares two exponential moving averages of price and a smoothed signal line. It can show changes in historical trend momentum, but its crossovers do not guarantee continuation or reversal. Interpretation depends on the input series, settings, market regime and executable trading costs.
MACD line calculation
A common MACD uses the difference between a 12-period EMA and a 26-period EMA of closing prices: MACD = EMA12−EMA26. Its units are in the same price units as the underlying instrument, rather than a universal percentage. For an illustrative EMA12 of 105 and EMA26 of 102, the MACD line equals +3 price units. That difference means the shorter EMA sits three units above the longer EMA at that observation.
Signal line and histogram
The signal line is commonly a nine-period EMA of the MACD line itself. The histogram equals MACD minus signal. Suppose MACD is +3.0 and its signal line is +2.2; histogram is +0.8. If MACD falls to +2.1 while the signal stays +2.2, the histogram becomes −0.1. The sign change reflects a crossover in smoothed historical relationships, not a guaranteed fall in the next price bar.
Zero line and crossover interpretation
When the MACD line crosses above zero, the shorter EMA exceeds the longer EMA. Crossing below zero indicates the reverse. A signal-line crossover can occur above or below zero and can happen repeatedly in a narrow range. These are distinct events. A positive histogram does not prove that the underlying price has increased in the latest bar, only that MACD sits above its signal measure.
Why the histogram changes before a line crossover
The histogram measures the gap between MACD and signal. Its bars can shrink while remaining positive, indicating the difference is narrowing. This is sometimes described as waning momentum, but price can continue rising during such a period. Avoid interpreting every smaller positive bar as bearish confirmation or assigning a forecast probability to the histogram without testing.
MACD settings and data inputs
Common 12/26/9 settings originated as a convention; they are not universally optimal. On a daily chart they span daily periods, while on a five-minute chart they span five-minute observations. EMA initialisation, closing-price series and trading-session cutoffs affect exact values. Comparing screenshots from two feeds requires checking these inputs before declaring a discrepancy.
Trend-following limitations
MACD generally reacts after price movements because it is built from moving averages. In a strong trend it may stay positive or negative for a long period; in a sideways range it may issue repeated crossovers without meaningful directional follow-through. Strategy results depend on when an order can actually execute after a completed signal, including spread and slippage.
Divergence versus reproducible signals
Analysts sometimes look for price making a new high while MACD makes a lower high. Such visual divergences can be subjective, particularly when swing-point definitions are unclear. To study them fairly, specify how highs and lows are identified using information available at the time, including any confirmation delay. A retrospective selection of dramatic examples does not establish predictive utility.
Practical research checklist
Calculate the two underlying EMAs, MACD line, signal and histogram explicitly on sample data. Confirm whether the plotted units are price or percentage. Define crossover timing, look-ahead restrictions and a complete exit rule. Compare results against transaction costs and simpler moving-average methods, with attention to range-bound failures.
For further learning on this method and its limitations, see technical indicators and MACD interpretation.
MACD arithmetic: crossover versus histogram
This educational comparison uses hypothetical figures and is not a prediction or investment recommendation.
| Measure | First observation | Next observation |
|---|---|---|
| 12-period exponential moving average | 105 | 106 |
| 26-period exponential moving average | 101 | 103 |
| MACD line (12 EMA − 26 EMA) | 4.0 | 3.0 |
| Signal-line value | 3.0 | 3.2 |
| Histogram (MACD − signal) | +1.0 | −0.2 |
| Interpretation | MACD above signal | MACD below signal |
The two columns are illustrative values, not a reconstructed price sequence or a forecast. A change in the histogram’s sign can describe a crossover between calculated series, but the resulting signal may lag a fast price move or reverse rapidly in sideways markets. Platform calculations vary with price input, EMA initialization and data history, so an identical chart window does not always reproduce identical indicator readings. Test any indicator-based idea on executable prices with realistic trading costs before interpreting a crossover as evidence of an edge.
Frequently asked questions
Does a positive MACD histogram mean price will rise?
No. It means MACD is above its signal line under the selected calculation.
Can MACD cross frequently in a range?
Yes. Short-lived changes in relative moving averages can create repeated signals.
Is MACD identical across all chart platforms?
Not always. EMA initialisation and underlying price series may differ.
