MACD Explained: How the Indicator Works
Last updated June 7, 2026

MACD (Moving Average Convergence Divergence) is a momentum indicator that tracks the relationship between two exponential moving averages of price. Created by Gerald Appel in the late 1970s, it plots a MACD line, a signal line, and a histogram to show the strength and direction of a trend's momentum.
Key takeaway
What is the MACD indicator?
MACD is a trend-following momentum indicator developed by Gerald Appel in the late 1970s. It belongs to the same family of momentum tools as the Relative Strength Index and sits at the center of the technical indicators most traders learn first. Its name describes what it does: it watches two moving averages converge and diverge.
The indicator answers a focused question: is the short-term trend gaining or losing strength relative to the longer-term trend? It does this by subtracting a slower exponential moving average (EMA) from a faster one. When the fast average pulls away from the slow average, momentum is building; when they drift back together, momentum is fading. Because MACD is unbounded rather than capped at fixed limits, it reads momentum strength directly off the chart rather than within a 0 to 100 range.
How is MACD calculated? (the formula)
MACD is built from three components, all derived from closing prices using the default 12, 26, 9 settings. Each piece adds a layer of information about momentum.
MACD Line = 12-period EMA - 26-period EMA
Signal Line = 9-period EMA of the MACD Line
Histogram = MACD Line - Signal Line
The MACD line is the difference between a fast 12-period EMA and a slow 26-period EMA of price. The signal line is a 9-period EMA of the MACD line itself, which smooths it and acts as a trigger. The histogram is the gap between the two lines, drawn as bars above or below a zero baseline.
The 12, 26, 9 defaults trace back to a six-day trading week, where 12 and 26 periods roughly represented two weeks and one month. The settings are conventions, not rules, and can be adjusted for faster or slower behavior.
What is a MACD crossover?
A MACD crossover occurs when the MACD line crosses the signal line, and it is the indicator's most-watched event. A cross of the MACD line above the signal line points to strengthening upside momentum, while a cross below points to strengthening downside momentum.
A second, slower signal is the centerline crossover, when the MACD line itself crosses zero. The MACD line is positive when the 12-period EMA sits above the 26-period EMA, and negative when it sits below, so a move through zero marks a shift in the underlying trend balance. Signal-line crossovers fire more often and earlier; centerline crossovers are rarer and tend to confirm a more established change. Neither is a standalone trigger. In choppy, sideways markets, crossovers produce frequent whipsaws, which is why traders confirm them against the broader trend rather than acting on every cross.
What does the MACD histogram tell you?
The histogram measures the distance between the MACD line and the signal line, plotted as bars around a zero line. It is the earliest part of the indicator to react, because it shows momentum building or fading before the lines themselves cross.
When the histogram bars grow taller, the MACD and signal lines are spreading apart and momentum is accelerating. When the bars shrink toward zero, the lines are converging and momentum is cooling, which often precedes a crossover. A histogram that flips from negative to positive marks the moment the MACD line crosses above the signal line, and vice versa. Reading the histogram is a way to anticipate a crossover a step ahead, though shrinking bars signal only that momentum is slowing, not that price will reverse.
What is MACD divergence?
MACD divergence happens when price and the MACD line move in opposite directions, which can hint that a trend is losing conviction. As with other momentum tools, divergence is a warning rather than a confirmed reversal.
- Bullish divergence: price makes a lower low, but the MACD line makes a higher low. This suggests downside momentum is weakening.
- Bearish divergence: price makes a higher high, but the MACD line makes a lower high. This suggests upside momentum is weakening.
Divergence is more reliable on higher timeframes and when confirmed by other evidence, such as a break of support or resistance, volume, or a candlestick pattern. A familiar caution applies: in a strong trend, MACD divergence can persist for a long time while price keeps extending, so divergence alone is not a setup.
What are the best MACD settings?
The standard setting is 12, 26, 9, and it works across daily, hourly, and intraday charts. Changing the periods trades responsiveness against reliability, the same way it does for other oscillators.
| Setting | Behavior | Often used for |
|---|---|---|
| Faster (e.g. 5, 35, 5) | Quicker crossovers, more signals, more noise | Short-term and intraday charts |
| Standard (12, 26, 9) | Appel's balanced default | General use across timeframes |
| Slower (e.g. 19, 39, 9) | Smoother, fewer but steadier signals | Swing and position trading |
Shorter EMAs make MACD react faster and generate more crossovers, at the cost of more false ones. Longer EMAs smooth the lines and cut the signal count while improving reliability. There is no universally best combination. The right choice depends on your timeframe and how much noise you are willing to tolerate, and any new setting should be reviewed against the specific asset before you rely on it.
Common MACD mistakes and limitations
MACD is versatile but easy to misread, and most errors come from treating it mechanically. Because it is built from moving averages of past prices, it is a lagging indicator by design.
- Trading every crossover. In ranging markets, the MACD and signal lines cross back and forth repeatedly, producing whipsaws and false signals.
- Ignoring the trend. MACD confirms momentum within a trend best; used against a strong trend, its counter-signals often fail.
- Forcing reversals from divergence. Divergence can run against price for a long stretch before resolving, if it resolves at all.
- Lag. Because it averages past closes, MACD reacts after a move is underway, so signals can arrive late in fast markets.
- Using it in isolation. MACD works best alongside trend analysis, volume, and price structure rather than as a complete system.
Putting MACD in context
Think of MACD as a momentum lens layered on top of the trend, not a signal generator to obey. It tells you whether a move is gathering or losing steam and roughly when that shift is happening, but it cannot tell you on its own whether price will reverse or merely pause. The strongest reads come from combining a crossover or histogram shift with the broader trend, key price levels, and confirmation from volume or patterns. Used that way, MACD becomes a disciplined way to gauge momentum rather than a shortcut to answers.
Frequently asked questions
- What does MACD stand for?
- MACD stands for Moving Average Convergence Divergence. It is a momentum indicator built from two exponential moving averages of price, created by Gerald Appel in the late 1970s.
- What are the default MACD settings?
- The standard settings are 12, 26, 9: a 12-period fast EMA, a 26-period slow EMA, and a 9-period EMA of the MACD line that forms the signal line. These work on any timeframe.
- What is a MACD crossover?
- A MACD crossover happens when the MACD line crosses the signal line. A cross above the signal line is read as strengthening upside momentum, and a cross below it as strengthening downside momentum.
- What is the MACD histogram?
- The histogram is the distance between the MACD line and the signal line, plotted as bars. Growing bars show widening momentum, and shrinking bars show momentum fading before a crossover.
- Is MACD better than RSI?
- Neither is strictly better. MACD tracks the relationship between two moving averages to gauge trend momentum, while RSI measures the speed of price changes on a 0 to 100 scale. Many traders use them together.
Put this into practice. Upload a chart screenshot and Lynx AI reads the structure, levels, and a long or short bias, with what would invalidate it.
Try Bullynx freeKeep reading
Educational only. Not financial advice. NFA. Bullynx is not a registered investment adviser or broker-dealer. Trading and investing involve significant risk of loss. Read the full risk disclosure.