MACD Explained: What It Measures and How to Read It
MACD is a momentum indicator built from the gap between two moving averages. See how the MACD line, the signal line, and the histogram are built and read.
By Imperial Analytics
MACD is one of the most widely used momentum indicators in retail trading, and one of the most commonly misread. It is built entirely from moving averages a trader already understands, yet the way its three parts fit together confuses more people than it helps. This post defines what MACD actually measures, walks through how the MACD line, the signal line, and the histogram are constructed, names the signals traders read from it, and marks the conditions where the reading quietly stops being useful.
By Imperial Analytics
What MACD actually measures
MACD, short for moving average convergence divergence, measures the momentum in a trend by tracking the gap between two exponential moving averages of price. When the faster average pulls away from the slower one, momentum is building in that direction. When the two converge, momentum is fading. The indicator was developed by Gerald Appel in the late 1970s.1
Hold one idea from the start: MACD is not a new measurement bolted onto price. It is a restatement of something a trader can already see on the chart, the distance between a short moving average and a long one, expressed as a single line that oscillates around zero. Everything MACD reports is a consequence of how those two EMA lines are moving relative to each other.
That relationship is what the name describes. Convergence is the two averages moving toward each other, which happens when a trend is slowing. Divergence, in the indicator's own name, is the two averages moving apart, which happens when a trend is accelerating. The word divergence carries a second, separate meaning later in this post, and keeping the two apart is half the work of reading MACD correctly.
How MACD is built
MACD has three parts. The MACD line is the twelve-period EMA of price minus the twenty-six-period EMA. The signal line is a nine-period EMA of the MACD line itself. The histogram is the MACD line minus the signal line, drawn as bars around zero. The default settings, twelve, twenty-six, and nine, are Appel's originals and remain the platform defaults today.1
The construction runs in three steps, in order. First, compute two EMAs of the closing price, one over twelve periods and one over twenty-six. Because the twelve-period average weights recent bars more and covers a shorter window, it turns faster than the twenty-six-period average. Subtract the slow EMA from the fast EMA. That difference is the MACD line. When the fast average is above the slow one, the MACD line is positive; when it is below, the line is negative.
Second, take a nine-period EMA of the MACD line. That smoothed version is the signal line. It lags the MACD line by construction, because it is an average of it, and that deliberate lag is what creates the crossover signals traders watch for.
Third, subtract the signal line from the MACD line and draw the result as a histogram. When the MACD line is above the signal line, the histogram bars sit above zero. When it is below, they sit below zero. The histogram is the fastest-moving of the three parts because it reacts to the gap between the other two.
Data note
The arithmetic here is the methodology. Any numerical example in this post is illustrative. Imperial Analytics only surfaces pattern claims on a trader's own data when the sample meets the minimums defined in the AI Operating Charter: twenty trades in the matching condition for behavioral patterns, fifteen for time-of-day claims, and ten for day-of-week claims.
A concrete check makes the relationship clear. Suppose on a five-minute ES chart the twelve-period EMA reads 5,218 and the twenty-six-period EMA reads 5,210. The MACD line is 5,218 − 5,210 = +8. If the nine-period EMA of that MACD line currently sits at +5, then the histogram is 8 − 5 = +3. A positive, rising histogram says the fast average is not only above the slow one but is pulling further ahead than its own recent average, which is the picture of momentum still building. None of these numbers is a signal on its own; they are a snapshot of the geometry.
The three signals traders read from it
Traders read MACD three ways. A signal-line crossover is the MACD line crossing its signal line. A zero-line crossover is the MACD line crossing zero, which marks the point where the two underlying EMAs cross. Histogram expansion and contraction shows momentum building or fading before either crossover completes. Each reads a different part of the same geometry.
The signal-line crossover is the most cited. When the MACD line crosses above the signal line, the histogram flips from negative to positive, and many traders read that as upward momentum taking over. The reverse cross reads as downward momentum. Because the signal line is a nine-period average of the MACD line, these crosses lag the actual turn in the MACD line, which is the cost of the smoothing.
The zero-line crossover reports something more structural. The MACD line equals zero exactly when the twelve-period and twenty-six-period EMAs are equal, so a cross of the zero line is the same event as the two moving averages crossing on the price chart. A trader who already watches a fast-slow moving-average cross, described in the primer on how SMA and EMA differ in responsiveness, is watching the MACD zero-line cross under a different name.
The histogram is the leading edge of the three, in the narrow sense that it changes before either crossover completes. A histogram that is still positive but shrinking says the MACD line is still above the signal line but the gap is closing, which is often the first visible sign that a signal-line cross is coming. This is where the "convergence divergence" in the name does its work bar to bar.
↳ Note
MACD does not add a new fact about price. It restates the distance between two moving averages so momentum is visible as a single line crossing zero.
What MACD divergence is and what it does not promise
MACD divergence is a mismatch between the direction of price and the MACD line. Price makes a higher high while the MACD line makes a lower high, or the reverse at a low. Traders read it as momentum failing to confirm price. It describes the current chart, not a forecast, and can persist while price keeps trending.
This is the second, separate meaning of divergence, and it is worth stating plainly because the name of the indicator already uses the word for something else. Here, divergence means price and the indicator disagree about strength. A bearish divergence is price printing a higher high while MACD prints a lower high, which says the second push had less momentum behind it than the first. A bullish divergence is the mirror image at a low.
The honest reading is that divergence describes a weakening, not a turn. A trend can make a series of lower MACD highs while price grinds higher for a long stretch, especially in the strong directional moves common in index futures. A trader who treats every divergence as a reversal entry is fading strength repeatedly and paying for it. The disciplined use is to treat divergence as one condition among several, confirmed by an actual break of structure or a level, never as a standalone entry. The same caution applies to any single indicator, which is the point of the primer on why stacking more indicators does not strengthen an edge.
Where MACD breaks down
MACD fails in three conditions. It lags, because every component averages past closes, so signals arrive after the turn. It whipsaws in chop, where a flat market pushes the line across the signal line repeatedly with no follow-through. And its scale is not comparable across instruments or timeframes, because the line is a raw price difference, not a bounded reading.
The lag is structural and cannot be tuned away. The MACD line is a difference of two EMAs, and the signal line is an average on top of that. Each layer of averaging adds delay. In a fast reversal the signal-line cross can print several bars after the actual high or low, which on a five-minute futures chart can be the difference between a workable entry and a chase. Shortening the settings reduces the lag but increases the number of false crosses, a trade-off with no free side.
The whipsaw case shows up in range-bound sessions, often around the midday lull. With price oscillating in a tight band, the two EMAs sit almost on top of each other, the MACD line hovers near zero, and it crosses the signal line repeatedly without any move to follow. Each cross looks like a signal and almost none of them pays. The honest read of MACD in that regime is that it has no information to add.
The scale problem is the one traders miss most often. Because the MACD line is a raw difference in price points, a reading of +8 on ES means something different from +8 on a lower-priced contract, and a reading on a daily chart is not comparable to one on a five-minute chart. Unlike a bounded oscillator such as the one covered in the RSI primer, MACD has no fixed overbought or oversold level. There is no universal number that means "extended." The only meaningful comparison is a MACD reading against its own recent history on the same instrument and timeframe.
How to use MACD without leaning on it
MACD earns its place as one input among several, with the settings fixed in advance and the signals measured against the trader's own outcomes. Tag every trade with the MACD state at entry, which crossover fired and whether the histogram was expanding, then check whether different states carry different expectancies. That turns the indicator from a belief into a measurement.
The principle is the same one that governs every indicator. The indicator is not the edge. The edge is whatever pattern the trader's own results reveal when the indicator is used inside a defined process. If MACD signal-line crosses taken with an expanding histogram produce a positive expectancy on a given setup, and crosses taken into a contracting histogram do not, that difference is worth keeping. If the two states produce roughly the same result after enough trades, that is also information, and the right response is to stop weighting the histogram in the decision.
The minimum journal fields to enable this check are the timestamp and instrument of the trade, the planned setup, the MACD settings in use, which signal fired at entry, the histogram direction at entry, and the realized P&L. Without those fields the question cannot be answered from the data. With them, it can be answered honestly the first time the sample reaches the threshold for a behavioral pattern claim, which is twenty trades in the matching condition. The reasoning behind that threshold is set out in the primer on what makes a behavioral pattern claim trustworthy, and the broader question of how many trades a signal needs before its win rate means anything is covered in the sample-size primer.
Frequently asked questions
Frequently asked questions
- q: Does MACD anticipate price moves or only react to them? a: MACD reacts. Every component is derived from moving averages of closes that have already printed, so it cannot anticipate the next bar from its own readings. The histogram changes faster than the crossovers, which is why some traders treat it as an early warning, but that is early relative to the other MACD components, not relative to price.
- q: What do the numbers 12, 26, and 9 mean in MACD? a: They are the default periods. Twelve and twenty-six are the lengths of the fast and slow EMAs that make the MACD line, and nine is the length of the EMA of that line that makes the signal line. They are Gerald Appel's original settings and remain the platform defaults, though a trader can change them at the cost of retuning every signal.
- q: What is the difference between a signal-line cross and a zero-line cross? a: A signal-line cross is the MACD line crossing its own nine-period average, which flips the histogram between positive and negative. A zero-line cross is the MACD line crossing zero, which is the exact moment the twelve-period and twenty-six-period EMAs cross on the price chart. They report different events and rarely happen at the same time.
- q: Can MACD be used on intraday futures charts? a: MACD is defined on any series of closes, so it can be computed on a one-minute, five-minute, or hourly futures chart. The interpretation of the three components does not change with the timeframe, but the noise level and the lag both scale with it, which is why intraday users often test shorter settings against their own results rather than assuming the defaults transfer.
- q: Why does MACD have no overbought or oversold line like RSI? a: Because the MACD line is a raw difference in price points rather than a bounded ratio. Its value depends on the price level and volatility of the instrument, so there is no fixed number that means extended across all markets. The only useful comparison is a MACD reading against its own recent range on the same chart.
Sources
Footnotes
-
Appel, Gerald. Technical Analysis: Power Tools for Active Investors. Financial Times Prentice Hall, 2005. Sets out the moving average convergence divergence indicator that Appel developed in the late 1970s, the twelve, twenty-six, and nine default periods, and the construction of the MACD line, signal line, and histogram. ↩ ↩2