MACD, created by Gerald Appel, is one of the most popular technical indicators because it brings two pieces of information into one chart: the direction of the trend and the strength with which it is moving. It is built from exponential moving averages, so anyone who understands moving averages is already halfway there.
How MACD is calculated
- MACD line: the difference between the 12-period and the 26-period exponential moving averages.
- Signal line: a 9-period exponential moving average of the MACD line.
- Histogram: the difference between the MACD line and the signal line.
12, 26 and 9 are the defaults but can be adjusted. See the indicator applied in MACD line and histogram.
Reading 1: signal-line crossover
When the MACD line crosses above the signal line, short-term momentum is gaining strength relative to the slightly longer term; crossing below, losing it. It is the most common reading and also the one that suffers most in ranging markets, for the same reason as the moving average crossover: in directionless periods crossovers repeat and generate signals in a row.
Reading 2: the histogram
The histogram shows the distance between the two lines. Growing bars indicate acceleration; shrinking bars indicate the move is losing strength, even if price is still rising or falling. That is why the histogram often turns before the lines cross and is used as an early warning.
Reading 3: the zero line
When the MACD line is above zero, the short average is above the long one, which characterizes a bullish bias; below zero, bearish. Many traders use the zero line as a filter: they only consider longs with MACD above it.
Divergences
When price makes a new high but MACD makes a lower high, there is a divergence: the move is advancing with less strength. Divergences are warnings of possible loss of momentum, not reversal signals on their own. The topic is covered in depth in the guide on divergences between price and oscillators.
Caveats
- MACD lags: being based on averages, it confirms moves after they begin.
- No fixed bounds: unlike RSI, it does not range from 0 to 100, so there is no universal overbought level.
- Works best with context: combined with trend and support and resistance zones, signals become more selective.
Test before using
Crossovers, the zero-line filter and divergences can all become objective rules and be tested. The step-by-step is in the backtesting guide, and other momentum indicators are in the oscillators category.
Educational content. Nothing in this article is investment advice. Past results do not guarantee future results.
