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 MACD | With MACD |
|---|---|
| Trend looks strong, but momentum may be fading | Momentum deterioration becomes visible earlier |
| Crossovers in price can feel subjective | Bullish and bearish crossover rules become more explicit |
| Harder to judge trend acceleration | Histogram shows whether momentum is expanding or slowing |
| Easy to chase late moves | Zero-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:
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:
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.
| Metric | Value | Interpretation |
|---|---|---|
| 12-day EMA | 108 | Short-term trend is stronger |
| 26-day EMA | 103 | Long-term baseline is lower |
| MACD line | 5.0 | Bullish momentum is present |
| Signal line | 3.8 | Momentum is still above its trigger |
| Histogram | 1.2 | Bullish 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 condition | What It Typically Signals |
|---|---|
| MACD above 0 and rising | Bullish trend with improving momentum |
| MACD above 0 but falling | Uptrend still intact, but momentum is fading |
| MACD below 0 and falling | Bearish trend with deteriorating momentum |
| MACD crosses above signal line | Early bullish momentum shift |
| MACD crosses below signal line | Early bearish momentum shift |
| Histogram moves toward zero from either side | Momentum 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:
- It is lagging. By the time a bullish crossover appears, part of the move may already be over.
- It struggles in sideways markets, where repeated line crossings create noisy false signals.
- 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.
| Filter | Setting |
|---|---|
| MACD | > 0 |
| RSI | 50 - 70 |
| Price vs. 200-day SMA | Above |
| 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.
| Filter | Setting |
|---|---|
| MACD | > 0 |
| RSI | 45 - 65 |
| Price vs. 50-day SMA | Above |
| 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.