i Short answer
MACD (Moving Average Convergence Divergence) consists of three parts: the MACD line (the difference between a 12-period and 26-period exponential moving average), the signal line (a 9-period EMA of the MACD line itself), and the histogram showing the gap between them.
A MACD line crossing above the signal line is generally read as bullish, crossing below as bearish, and many traders also watch for divergence between MACD and price as a more meaningful momentum signal than a simple crossover alone.
๐ ON THIS PAGE
MACD: The Core Components
12, 26, 9 is the conventional default, developed by Gerald Appel in the late 1970s.
1. The three components of MACD
MACD consists of three distinct parts working together. The MACD line itself is calculated as the difference between a 12-period and 26-period exponential moving average, capturing the relationship between shorter-term and longer-term price momentum.
The signal line is a 9-period exponential moving average of the MACD line itself, essentially a smoothed version used for comparison. The histogram, often displayed as bars beneath the main lines, shows the numerical difference between the MACD line and the signal line, visually representing how far apart the two currently are and in which direction that gap is changing.
2. What a MACD crossover signals
When the MACD line crosses above the signal line, it's generally interpreted as a bullish signal, suggesting upward momentum may be building in the underlying instrument. When the MACD line crosses below the signal line, it's generally interpreted as a bearish signal, suggesting downward momentum may be building instead.
Neither crossover guarantees a sustained move will follow, particularly in choppy or range-bound conditions where the two lines can cross back and forth repeatedly without a genuine sustained trend actually developing, producing misleading signals if traded mechanically every time.
3. MACD divergence: a deeper signal
Divergence occurs when price makes a new high (or low) that MACD does NOT confirm with its own corresponding new high (or low), suggesting the underlying momentum behind the move is genuinely weakening even as price itself continues moving in the same direction on the surface.
Many experienced traders consider divergence a more meaningful signal than a simple crossover alone, since it reflects an actual, measurable change in underlying momentum rather than just two lines crossing at an arbitrary point. Bearish divergence (price higher highs, MACD lower highs) can precede a reversal in an uptrend, bullish divergence the equivalent in a downtrend.
4. MACD versus RSI
MACD and RSI both measure momentum, but through entirely different mathematical approaches. MACD tracks the relationship between two exponential moving averages and isn't bounded to any fixed numerical range, while RSI is bounded between 0-100 and focuses specifically on the ratio of average up-moves to average down-moves over a set period.
Many traders use both together rather than relying on either in isolation, since they can occasionally give meaningfully different readings on the exact same price action, providing a useful cross-check that helps filter out signals only one indicator is flagging while the other isn't.
5. Can the standard settings be adjusted?
Yes, though 12, 26, 9 has become the widely used conventional default since Gerald Appel developed the indicator in the late 1970s. Shorter periods make MACD more sensitive and responsive to recent price action, generating more frequent signals but also more noise from insignificant short-term fluctuations.
Longer periods smooth the reading out considerably, producing fewer, generally more significant signals but with correspondingly more lag before the indicator reflects a genuine shift in underlying momentum, a trade-off worth calibrating to your specific trading timeframe and style.
6. Does MACD work the same across timeframes?
The underlying calculation applies identically to any timeframe, from 1-minute charts up to weekly charts, though the practical reliability and appropriate interpretation of the resulting signals can vary meaningfully between them. Shorter timeframes generally produce more frequent but noisier signals, reflecting the greater relative noise present in very short-term price action.
Longer timeframes produce fewer but generally more significant signals, worth aligning your chosen timeframe with your specific trading style and typical holding period, a day trader and a swing trader will reasonably find different timeframes more useful for the same underlying MACD calculation.
Key Takeaways
- MACD consists of three parts: the MACD line (12-period minus 26-period EMA), the signal line (9-period EMA of the MACD line), and the histogram showing their difference.
- A MACD line crossing above the signal line is generally interpreted as bullish, crossing below as bearish, though neither guarantees a sustained move.
- MACD divergence, where price makes a new high or low that MACD doesn't confirm, is considered by many traders a more meaningful signal than a simple crossover alone.
- MACD and RSI both measure momentum through different mathematical approaches, MACD is unbounded and tracks moving average relationships, RSI is bounded 0-100.
- 12, 26, 9 is the widely used conventional default setting, though shorter periods increase sensitivity and longer periods smooth the reading with more lag.
- MACD applies to any timeframe, shorter timeframes produce more frequent but noisier signals, longer timeframes produce fewer but generally more significant ones.
Where MACD struggled in 2026, and why
MACD is a trend-following indicator built from two moving averages, which means it performs best in sustained directional moves and worst in sharp reversals. South African markets supplied both this year.
The JSE All Share reached a record near 129,339 in March 2026, fell to about 115,306 by early August, then recovered to around 116,700 by early September. A trend indicator would have signalled the downtrend well after it began and the recovery well after it began, which is the lag inherent to any moving-average construction rather than a fault in the settings.
Individual sectors made it harder. Gold mining shares fell about 15% in June and rose about 38% in August. A reversal of that speed produces a MACD crossover after a large part of the move has already happened, and the trader following the signal enters near the point where the move is most extended.
This is the honest limit of the indicator, and it does not improve with different parameters. Shortening the periods produces earlier signals and more false ones; lengthening them produces fewer false signals and later entries. There is no setting that removes the trade-off.
The practical use that survives is as a filter rather than a trigger: take trades in the direction MACD indicates, but enter on something faster, and avoid relying on it in conditions like June 2026 when direction changed faster than any moving average can follow.
See also: What Is a Golden Cross and Death Cross in Trading?.
Frequently asked follow-up questions
What do the three components of MACD actually represent?
The MACD line is the difference between a 12-period and 26-period exponential moving average. The signal line is a 9-period exponential moving average of the MACD line itself. The histogram shows the difference between the MACD line and the signal line, visually representing how far apart the two lines currently are.
What does a MACD crossover actually signal?
When the MACD line crosses above the signal line, it's generally interpreted as a bullish signal, suggesting upward momentum may be building. When the MACD line crosses below the signal line, it's generally interpreted as a bearish signal, suggesting downward momentum may be building. Neither crossover guarantees a sustained move, particularly in choppy or range-bound conditions.
What is MACD divergence, and why do traders watch for it?
Divergence occurs when price makes a new high (or low) that MACD doesn't confirm with its own new high (or low), suggesting the underlying momentum behind the move is weakening even as price itself continues in the same direction. Many traders consider divergence a more meaningful signal than a simple crossover alone, since it reflects an actual change in underlying momentum.
How does MACD compare to RSI as a momentum indicator?
Both measure momentum but through different mathematical approaches, MACD tracks the relationship between two moving averages and isn't bounded to a fixed numerical range, while RSI is bounded between 0-100 and focuses specifically on the ratio of average up-moves to average down-moves. Many traders use both together as a cross-check, since they can occasionally give different readings on the same price action.
Can the standard 12, 26, 9 MACD settings be adjusted?
Yes, though 12, 26, 9 has become the widely used conventional default. Shorter periods make MACD more sensitive and responsive, generating more frequent signals but also more noise, while longer periods smooth the reading out, producing fewer, more significant signals with correspondingly more lag before reflecting a genuine shift.
Does MACD work equally well on all timeframes?
The underlying calculation applies to any timeframe, from 1-minute charts to weekly charts, though the reliability and appropriate interpretation of signals can vary. Shorter timeframes generally produce more frequent but noisier signals, while longer timeframes produce fewer but generally more significant ones, worth aligning your chosen timeframe with your specific trading style and holding period.
