Back to Learn

What Is MACD? How to Spot Trend Shifts and Momentum Changes

Technical Analysis
7 min read
By ScreenerHub Team

What Is MACD?

MACD (Moving Average Convergence Divergence) is a momentum indicator that measures the gap between a stock's 12-period and 26-period exponential moving averages to highlight trend direction, momentum shifts, and possible bullish or bearish crossovers.

MACD is one of the most widely used technical indicators because it answers a practical question fast: is momentum strengthening, fading, or reversing? It builds on the logic behind moving averages, but instead of showing only a smoothed trend line, it shows whether short-term price action is pulling away from or falling back toward the longer-term trend.

TL;DR: MACD compares a short-term EMA with a longer-term EMA to show whether momentum is improving or deteriorating. A bullish MACD crossover can signal strengthening upside momentum; a bearish crossover can warn that momentum is fading. The zero line helps separate bullish from bearish territory. On ScreenerHub, MACD is a useful filter for momentum, breakout, and trend-confirmation screens.


Why MACD Matters for Stock Screening

Price alone tells you where a stock is trading. MACD helps tell you whether the move still has force behind it.

MACD is especially helpful when you want to avoid buying a stock just because it has gone up recently. A stock can still be above its 50-day moving average while momentum is already weakening underneath the surface. MACD helps expose that change earlier.

MACD vs. looking at price alone

Without MACDWith MACD
Trend looks strong, but momentum may be fadingMomentum deterioration becomes visible earlier
Crossovers in price can feel subjectiveBullish and bearish crossover rules become more explicit
Harder to judge trend accelerationHistogram shows whether momentum is expanding or slowing
Easy to chase late movesZero-line context helps avoid weak trend setups

How MACD Is Calculated

MACD has three parts: the MACD line, the signal line, and the histogram.

Formula:

MACD line=EMA(12)EMA(26)\text{MACD line} = \text{EMA}(12) - \text{EMA}(26)
Signal line=EMA(9 of MACD line)\text{Signal line} = \text{EMA}(9\text{ of MACD line})
Histogram=MACD lineSignal line\text{Histogram} = \text{MACD line} - \text{Signal line}

In plain English, MACD measures how far the faster EMA has moved away from the slower EMA. If the 12-period EMA rises above the 26-period EMA, MACD turns positive; if it falls below, MACD turns negative.

The signal line smooths the MACD line itself. When MACD crosses above it, traders call that a bullish crossover; when it crosses below, a bearish crossover. The histogram shows the distance between the two lines.

Worked example

Suppose a stock has:

  • 12-day EMA = $108
  • 26-day EMA = $103
  • 9-day EMA of the MACD line = 3.8

Then:

MACD line=108103=5.0\text{MACD line} = 108 - 103 = 5.0
Histogram=5.03.8=1.2\text{Histogram} = 5.0 - 3.8 = 1.2

That setup is bullish. The short-term average is comfortably above the long-term average, and the positive histogram shows MACD is still above its signal line. If the histogram starts shrinking from 1.2 to 0.5 to 0.1, momentum is still positive, but the move is losing force.

MetricValueInterpretation
12-day EMA108Short-term trend is stronger
26-day EMA103Long-term baseline is lower
MACD line5.0Bullish momentum is present
Signal line3.8Momentum is still above its trigger
Histogram1.2Bullish momentum is expanding

How to Interpret MACD

There are three practical ways to read MACD: the crossover, the zero line, and the histogram slope.

MACD interpretation guide

MACD conditionWhat It Typically Signals
MACD above 0 and risingBullish trend with improving momentum
MACD above 0 but fallingUptrend still intact, but momentum is fading
MACD below 0 and fallingBearish trend with deteriorating momentum
MACD crosses above signal lineEarly bullish momentum shift
MACD crosses below signal lineEarly bearish momentum shift
Histogram moves toward zero from either sideMomentum is slowing, even if trend has not flipped yet

The zero line separates bullish from bearish territory, and the histogram often shifts direction before the main lines cross. If the histogram bars get smaller while price still rises, momentum is fading even if the trend has not fully broken yet.

Context matters: MACD behaves differently across market regimes. In strong trending markets, crossovers can work well. In sideways, choppy markets, MACD can whipsaw and generate repeated false signals. Always judge MACD together with trend structure, price location, and at least one non-price filter.


When MACD Misleads

MACD is useful, but it has three common failure modes:

  1. It is lagging. By the time a bullish crossover appears, part of the move may already be over.
  2. It struggles in sideways markets, where repeated line crossings create noisy false signals.
  3. It says nothing about business quality or valuation, so it works best alongside filters such as revenue growth, market cap, or moving averages.

MACD in a Stock Screener

In ScreenerHub, MACD is most useful as a confirmation filter. Instead of screening only for price breakouts, you can ask for breakouts where momentum has actually turned positive.

Screener 1: Bullish momentum confirmation

Find stocks where momentum is already on the right side of the trend.

FilterSetting
MACD> 0
RSI50 - 70
Price vs. 200-day SMAAbove
Revenue Growth YoY> 5%

This setup looks for stocks with positive momentum, no obvious long-term downtrend, and some business growth underneath the chart.

-> Try this screen in ScreenerHub: MACD > 0 ->

Screener 2: Early trend-strength watchlist

Build a watchlist of stocks where MACD has turned positive, but price has not yet become obviously extended.

FilterSetting
MACD> 0
RSI45 - 65
Price vs. 50-day SMAAbove
Market cap> $500M

For the full workflow around technical momentum, see Find Momentum Stocks Using Trend Strength.


Common Mistakes When Using MACD

1. Treating every crossover as equally important Not all crossovers deserve the same weight. A bullish crossover above zero in a strong uptrend is very different from a bullish crossover below zero after months of weakness. The broader trend still matters.

2. Ignoring the zero line Many beginners focus only on whether MACD crossed the signal line. That misses half the picture. Crossovers above zero usually happen in stronger trends; crossovers below zero are often only early recovery attempts.

3. Using MACD without a second filter MACD can tell you about momentum, but not whether the stock is liquid, growing, profitable, or fundamentally attractive. Pair it with RSI, market cap, or growth filters to reduce noise.


Frequently Asked Questions

What is a good MACD for a stock?

There is no universal "good" MACD number because the indicator is relative to the stock's own recent price behavior. In practice, direction matters more than magnitude: MACD above zero suggests bullish momentum, MACD below zero suggests bearish momentum, and a rising histogram suggests improving momentum.

Is MACD better than RSI?

Neither is better in all cases. MACD is usually better for trend direction and momentum shifts; RSI is usually better for spotting overbought and oversold conditions. Many investors use both together: MACD for confirmation, RSI for timing.

What does it mean when MACD crosses above zero?

It means the short-term EMA has moved above the longer-term EMA. That usually signals improving bullish momentum. It does not guarantee further upside, but it often marks a better trend backdrop.

Can long-term investors use MACD?

Yes. Long-term investors can use MACD as a timing and confirmation tool rather than as a trading trigger. For example, it can help avoid buying stocks where the trend is still deteriorating even if the fundamentals look attractive.