MACD is built entirely from moving averages, which means it inherits their strengths and their lag. What it adds is a way to see whether momentum is accelerating or fading — a question a single moving average cannot answer. Understanding that distinction is what makes MACD useful rather than just another line on the chart.
What MACD measures
MACD stands for Moving Average Convergence Divergence. The name describes exactly what it tracks: whether two moving averages are pulling apart or coming together.
It has three components.
MACD line = 12 EMA − 26 EMA
Signal line = 9 EMA of the MACD line
Histogram = MACD line − Signal line
The MACD line is the gap between a fast and a slow moving average. When the fast average pulls away from the slow one, the gap widens and the line moves further from zero. That widening gap is accelerating momentum.
The signal line is a smoothed version of the MACD line, used as a trigger.
The histogram shows the distance between the two lines as bars. Growing bars mean the gap is widening; shrinking bars mean it is closing.
The zero line matters most
Most explanations of MACD start with crossovers. Starting with the zero line is more useful.
MACD is above zero when the 12 EMA is above the 26 EMA — an uptrend by that definition. Below zero means the reverse.
So the zero line divides the chart into “momentum is upward” and “momentum is downward,” and it does so more reliably than the crossover signals do.
Used as a filter — take long setups only while MACD is above zero, short setups only while below — it performs the same function as a moving average trend filter, and for the same reason. It keeps you positioned with the dominant direction.
The three signals
1. Signal line crossover
The most commonly cited MACD signal: when the MACD line crosses above the signal line, buy; when it crosses below, sell.
This works reasonably in trending conditions and poorly in ranges, exactly like a moving average crossover — which is unsurprising, since it is built from moving averages.
The crossovers that matter most are those occurring in the direction of the prevailing trend. A bullish crossover while MACD is above zero, during an established uptrend, is a considerably better signal than one occurring below zero in a downtrend.
2. Zero line crossover
When the MACD line crosses zero, the fast and slow averages have crossed. This is a slower, more significant signal than the signal-line cross.
It is also late. By the time MACD crosses zero, the trend change has been underway for some candles. As confirmation it is solid; as an entry trigger it gives away a meaningful portion of the move.
3. Divergence
As with RSI, divergence is where MACD adds something price does not show directly.
Price making a higher high while the MACD histogram makes a lower high indicates the push is losing force. The same logic applies inverted for bullish divergence.
MACD divergence is often considered more reliable than RSI divergence, because MACD is built from longer-period averages and therefore less reactive to single-candle noise. It is still a warning rather than a signal, and still requires price confirmation before acting.
Reading the histogram
The histogram is the component most traders underuse.
Bars growing taller mean the gap between the averages is widening — momentum accelerating. Bars shrinking mean the gap is closing — momentum fading, even if price is still moving in the same direction.
That last point is the useful one. A histogram that peaks and starts shrinking while price continues higher is the same information as bearish divergence, often visible slightly earlier and with less ambiguity.
Histogram bars: ▂▄▆█▆▄▂
Rising → momentum building
Peak → momentum at its strongest
Falling → momentum fading, trend maturing
A shrinking histogram does not mean reverse. It means the strongest part of the move is likely behind you, which is relevant if you are considering a new entry or managing an existing position.
MACD versus RSI
Both measure momentum, and traders often run them together without recognising the overlap.
| RSI | MACD | |
|---|---|---|
| Built from | Gain/loss ratio | Moving averages |
| Scale | Bounded 0–100 | Unbounded |
| Reacts | Faster | Slower |
| Better for | Ranges, timing | Trends, confirmation |
The unbounded scale is a genuine difference. RSI cannot exceed 100, so in a very strong trend it saturates and stops distinguishing between strong and extremely strong. MACD has no ceiling, so it continues to show acceleration in powerful moves.
Running both is defensible but they are answering similar questions. If you use both, treat them as one momentum input rather than two independent confirmations.
Where MACD fails
Ranging markets. The signal line crosses repeatedly around zero, producing whipsaw. This is the dominant failure mode.
Early trend changes. MACD is built from 26-period averages. It is structurally late, and no setting change removes that entirely.
Very short timeframes. On one and five-minute charts, MACD produces crossovers constantly. Most are noise.
After gaps and news spikes. The EMA calculation is distorted for a number of candles afterwards.
Settings
The standard is 12, 26, 9. These are the defaults on every platform and the values most traders watch.
Faster settings such as 5, 35, 5 produce earlier signals with more noise. Slower settings smooth further at the cost of additional lag.
As with every indicator in this section, the advice is the same: use the standard settings unless you have a structural reason not to. Optimising parameters against historical data produces results that look convincing and rarely survive live trading.
A workable MACD framework
Using MACD as one part of a method rather than as the method:
Trend filter. MACD above zero on the higher timeframe — long setups only. Below zero — short setups only.
Entry timing. Signal line crossover in the direction of that trend, ideally after a pullback rather than at an extended point in the move.
Momentum check. Histogram expanding in your direction. If it is already shrinking as you enter, you are entering late in the move.
Exit warning. Histogram shrinking against your position, or divergence forming, as a signal to tighten stops or take partial profit.
Position sizing. Unchanged by any of the above — stop placement from price structure, size from the Lot Size calculator.
MACD is a derivative of moving averages, which are a derivative of price. Every layer of derivation adds lag and removes information. This does not make MACD useless — the histogram genuinely shows something price does not display clearly. But it means MACD should never be the primary input. Price structure first, indicator second.
What to do next
You now have trend (moving averages) and momentum (RSI, MACD). The next lesson covers Bollinger Bands, which measure volatility — how much price is moving relative to its own recent behaviour, and where it sits within that range.
Frequently asked questions
What does MACD tell you?
Whether momentum is accelerating or fading, by tracking the gap between a fast and slow moving average. A widening gap means momentum building; a closing gap means it is fading, even if price is still moving in the same direction.
What are the best MACD settings?
The standard 12, 26, 9 works well and is what most traders watch. Faster settings produce earlier signals with more noise, slower ones add lag. Changing settings to match historical performance is curve fitting and rarely transfers to live trading.
What is the MACD histogram?
The distance between the MACD line and the signal line, shown as bars. Growing bars indicate accelerating momentum; shrinking bars indicate fading momentum. It is the component most traders underuse and arguably the most informative.
Is MACD better than RSI?
Neither is better — they suit different conditions. MACD is slower and works better in trends; RSI is faster and works better in ranges. MACD’s unbounded scale also means it keeps showing acceleration in very strong moves where RSI saturates near its maximum.
What is MACD divergence?
When price and the MACD histogram move in opposite directions, indicating that the price move is losing underlying force. It is generally considered more reliable than RSI divergence because MACD is less reactive to single-candle noise, but it still requires price confirmation.
Why does MACD give false signals in ranging markets?
Because it is built from moving averages, which oscillate around price when there is no trend. The MACD line crosses the signal line repeatedly, producing entries that each lose a small amount. A trend filter that keeps you out of ranging conditions is essential when using MACD crossovers.
