Course progress
1
2
3
4
5
6
7
Lesson 6 of 7
6
Lesson 6 · 8 min

MACD: Moving Average Convergence Divergence

The most widely used momentum indicator — understand the MACD line, signal line, histogram, crossovers, and divergence signals.

In this lesson you'll learn
The three components of MACD: line, signal, and histogram
How to read bullish and bearish MACD crossovers
The zero line and what it reveals about trend direction
MACD divergence — the most powerful MACD signal

What is MACD?

MACD (Moving Average Convergence Divergence) was created by Gerald Appel in the late 1970s. It measures the relationship between two exponential moving averages of price, turning that relationship into a readable momentum indicator.

MACD answers a simple question: Is the short-term trend gaining or losing strength relative to the medium-term trend?

The MACD formula (default settings: 12, 26, 9)
MACD Line
12-day EMA − 26-day EMA

The primary line. Positive = short-term trend above medium-term (bullish). Negative = below (bearish).

Signal Line
9-day EMA of the MACD Line

A smoothed average of the MACD Line. Crossovers between MACD and Signal Line generate buy/sell signals.

Histogram
MACD Line − Signal Line

Bar chart showing the distance between MACD and Signal lines. Growing bars = momentum accelerating; shrinking bars = momentum slowing.

MACD crossover signals

The most widely watched MACD signals are generated when the MACD Line crosses above or below the Signal Line.

Bullish Crossover
MACD Line crosses ABOVE Signal Line

Short-term momentum is accelerating faster than medium-term momentum. Potential buy signal — especially reliable when occurring below the zero line (momentum reversing from oversold) or at a support level.

Stronger when: above zero line, at support, confirmed by RSI crossing 50
Bearish Crossover
MACD Line crosses BELOW Signal Line

Short-term momentum is decelerating relative to medium-term. Potential sell/short signal — especially reliable when occurring above the zero line (momentum reversing from overbought) or at a resistance level.

Stronger when: below zero line, at resistance, confirmed by RSI crossing below 50

The zero line: trend confirmation

The MACD Line crossing the zero line is a secondary but important signal — it tells you about the underlying trend, not just momentum shifts.

MACD Line crosses above zero

The 12-day EMA has crossed above the 26-day EMA — a genuine bullish trend is developing. Think of it as a slower, smoother version of a golden cross.

MACD Line holds above zero

The short-term trend is consistently above the medium-term trend. Bullish momentum is sustained — uptrend is intact.

MACD Line crosses below zero

The 12-day EMA has crossed below the 26-day EMA. Bearish trend is developing — equivalent to a death cross in slower form.

MACD Line holds below zero

Short-term trend is consistently below medium-term. Bearish momentum is sustained — downtrend is intact.

The histogram: visualizing momentum acceleration

The MACD histogram is the most visually intuitive part of the indicator. It's simply the difference between the MACD Line and the Signal Line, displayed as rising and falling bars.

↑ Green bars growing = bullish momentum accelerating | Red bars growing = bearish momentum accelerating
Green bars growing
Bullish momentum is accelerating — MACD line is moving away from Signal line upward
Green bars shrinking
Bullish momentum is slowing — potential for a bearish crossover approaching
Red bars growing
Bearish momentum is accelerating — MACD line is moving away from Signal line downward
Red bars shrinking
Bearish momentum is slowing — potential for a bullish crossover approaching

MACD divergence: spot reversals before they happen

Just like RSI, MACD can diverge from price — and MACD divergence is considered one of the most powerful signals in all of technical analysis.

Bullish MACD divergence

Price makes a new low, but MACD (or the histogram) makes a higher low. Sellers are running out of fuel. Often signals a major reversal when found at a key support level, especially in conjunction with RSI bullish divergence.

Bearish MACD divergence

Price makes a new high, but MACD (or the histogram) makes a lower high. Buyers are losing conviction. Often a warning signal before meaningful corrections — even if price continues higher for a while.

When RSI divergence and MACD divergence both appear at the same time — pointing in the same direction — the signal is especially powerful. Two independent momentum indicators agreeing that momentum is diverging from price is a much stronger signal than either alone. This is the concept of confluence we cover in the final lesson.

MACD limitations

Lagging indicator

MACD is built from exponential moving averages, which are calculated from past prices. It always lags the actual price move — by the time MACD signals a crossover, a significant portion of the move has already happened.

Whipsaw signals in choppy markets

In sideways, range-bound markets, MACD crossovers fire rapidly and frequently — many of them false. MACD works best in trending markets, not during consolidations.

Not useful for comparing across stocks

MACD values are in absolute price terms (dollars), so comparing MACD readings between a $20 stock and a $500 stock is meaningless. RSI's 0–100 scale is more portable across instruments.

Quick Knowledge Check
3 questions · test what you've just learned
1

The MACD line is calculated as the difference between which two exponential moving averages?

2

The MACD line crosses above the signal line while both are below the zero line. What does this typically signal?

3

A stock makes new all-time highs, but the MACD histogram is forming progressively lower peaks compared to the previous rally. What does this represent?

✓ Key takeaways from Lesson 6
MACD Line = 12-day EMA minus 26-day EMA. Signal Line = 9-day EMA of MACD. Histogram = MACD minus Signal.
Bullish crossover: MACD crosses above Signal Line. Bearish crossover: MACD crosses below Signal Line.
MACD above zero = bullish trend in force. Below zero = bearish trend. Zero line crosses are secondary trend signals.
Histogram bars growing = momentum accelerating in that direction. Bars shrinking = momentum fading — watch for a crossover.
MACD divergence (price vs. histogram/MACD line moving in opposite directions) is a powerful early warning of trend exhaustion.
Apply MACD with our backtesting tools

See how MACD crossover strategies have performed historically using BriMindInvest's backtesting tool — and compare MACD signals against actual price action.

Backtest MACD →Stock Charts
← Lesson 5: RSI: Relative Strength IndexLesson 7: Putting It All Together: A Complete TA Framework