Skip to content

Free Guide

MACD Indicator Explained: Crossovers, Histogram and Divergence

The MACD is the most popular momentum indicator in all of trading — and for good reason. It packs trend direction, momentum strength, and a divergence warning system into a single elegant tool that sits on nearly every trader's chart. Master how its three parts work together and you can read the market's momentum at a glance.

By the Zeebrain Editorial Team·Updated June 2026·11 min read

What is the MACD?

MACD stands for Moving Average Convergence Divergence. It was developed by Gerald Appel in the late 1970s and has since become one of the most widely used indicators in technical analysis.

The MACD is a trend-following momentum indicator that shows the relationship between two moving averages of price. By measuring how those averages converge and diverge, it reveals both the direction of the trend and the strength of momentum behind it — two things in one tool.

The MACD is plotted in a separate pane below the price chart rather than on the price itself. That gives it room to show its lines crossing and its histogram expanding and contracting as momentum shifts.

Key point

The MACD combines trend and momentum in a single indicator. That versatility — direction and strength together — is why it appears on nearly every trader's screen.

The three components

The MACD is built from three moving parts. Understanding each one is the key to reading the indicator.

MACD line

The 12-period EMA minus the 26-period EMA. This is the core momentum line and the heart of the indicator — it captures the gap between fast and slow price averages.

Signal line

A 9-period EMA of the MACD line. It is a smoothed trigger that lags the MACD line slightly, and crossovers between the two generate the indicator’s main signals.

Histogram

The difference between the MACD line and the signal line, drawn as bars. Bars growing means momentum is accelerating; bars shrinking means momentum is fading. It visualizes momentum strength at a glance.

Standard settings

The default and most widely used configuration is 12, 26, 9 — the fast EMA, the slow EMA, and the signal line. These are the values traders watch by convention.

The zero line

The zero line is the centerline the MACD oscillates around, and where the MACD line sits relative to it tells you about the underlying trend.

Above zero

When the MACD line is above zero, the 12-EMA is above the 26-EMA. Shorter-term momentum is stronger than longer-term momentum — a bullish condition.

Below zero

When the MACD line is below zero, the 12-EMA is below the 26-EMA. Shorter-term momentum is weaker than longer-term momentum — a bearish condition.

Why it matters

Crossing the zero line signals a shift in the underlying trend. It is a bigger-picture confirmation than a simple signal-line crossover.

MACD crossovers (the main signal)

The crossover between the MACD line and the signal line is the indicator's primary signal — the one most traders watch for entries and exits.

Bullish crossover

The MACD line crosses above the signal line. Momentum is turning up — a potential buy signal.

Bearish crossover

The MACD line crosses below the signal line. Momentum is turning down — a potential sell signal.

Context matters

Crossovers above the zero line are stronger bullish signals; crossovers below zero are stronger bearish signals. Crossovers near zero in choppy markets produce whipsaws — false signals that reverse almost immediately.

The histogram: early momentum read

The histogram is the most underrated part of the MACD. Because it measures the gap between the MACD line and the signal line, its peaks and troughs often turn before the crossover actually happens — giving you an early read on momentum shifts.

Growing bars mean accelerating momentum

When the histogram bars are getting taller, the MACD line is pulling away from the signal line. Momentum is accelerating in the direction of the trend.

Shrinking bars mean fading momentum

When the bars stop growing and start shrinking, momentum is decelerating — even if the lines have not crossed yet. Shrinking bars mean the move is losing steam.

It often turns first

Because the histogram tracks the gap between the lines, it peaks before they cross. That makes it an early warning system for a coming crossover.

MACD divergence

Just like RSI divergence, MACD divergence appears when price and the indicator disagree. It is one of the most powerful warning signs the MACD provides.

Bullish divergence

Price makes a lower low but the MACD makes a higher low. Downside momentum is weakening, hinting at a potential turn higher.

Bearish divergence

Price makes a higher high but the MACD makes a lower high. Upside momentum is fading, hinting at a potential turn lower.

Caveat

Divergence warns of potential reversals, but it is not a trigger on its own. It needs price confirmation — wait for the chart itself to break before acting.

MACD vs RSI

The MACD and the RSI are the two most popular momentum tools, and traders often ask which is better. The honest answer: they measure different things and complement each other.

MACDRSI
TypeTrend-following and momentum-basedBounded oscillator
Best forConfirming trend direction and shiftsOverbought / oversold and range divergence
ReadsMomentum and trend togetherExhaustion at extremes

Rule of thumb

Use the MACD for trend and momentum, and the RSI for exhaustion. Many traders run both together — each covers the other's blind spots.

Common MACD mistakes

The MACD is powerful, but it is easy to misuse. These are the errors that trip up most traders.

Trading every crossover in a sideways market

In a range, the MACD lines cross back and forth constantly, producing a stream of whipsaws. Most of those crossovers are noise, not signal.

Using the MACD as a standalone system

The MACD is not a complete strategy on its own. Without trend context, support, and price structure, its signals are far less reliable.

Forgetting it is a lagging indicator

The MACD is built from moving averages, so it confirms moves rather than predicting them. Treat its signals as confirmation, not prophecy.

Ignoring the zero line

Crossovers far above or below the zero line carry different weight than those hovering near it. The zero line tells you the bigger trend the crossover is happening inside.

Over-optimizing the settings

Endlessly tweaking the periods rarely improves real-world results. The standard 12, 26, 9 is the configuration everyone watches — and that shared focus is part of why it works.

Watch the MACD on live charts

Apply what you learned — track the MACD line, signal line, and histogram on real price data and spot the crossovers as they form.

The bottom line

The MACD packs trend direction, momentum, and a divergence warning system into a single elegant tool — which is why it's on nearly every trader's chart. But its signals shine in trending markets and crumble in choppy ones, where crossovers whipsaw back and forth. Read the histogram for an early sense of momentum shifting, use the zero line to gauge the bigger trend, and treat crossovers as confirmation rather than prophecy. Like every indicator, the MACD lags price — it's a rear-view mirror that helps you read the road, not a windshield that shows what's coming.

Frequently asked questions

What are the three parts of the MACD?+

The MACD has three components: the MACD line (the 12-period EMA minus the 26-period EMA), the signal line (a 9-period EMA of the MACD line), and the histogram (the difference between the two, drawn as bars). Together they show trend direction and momentum strength in one indicator.

What is a MACD crossover?+

A MACD crossover happens when the MACD line crosses the signal line. When the MACD line crosses above the signal line, it is a bullish signal suggesting upward momentum. When it crosses below, it is a bearish signal. Crossovers that occur above or below the zero line carry more weight than those near it.

What does the MACD histogram tell me?+

The histogram measures the gap between the MACD line and the signal line. Growing bars mean momentum is accelerating; shrinking bars mean momentum is fading. Because the histogram often turns before the lines actually cross, it can provide an early warning that momentum is shifting.

What are the best MACD settings?+

The standard and most widely used settings are 12, 26, and 9 — a 12-period fast EMA, a 26-period slow EMA, and a 9-period signal line. These defaults were chosen by Gerald Appel and remain the most common. Most traders use them as-is rather than over-optimizing, since custom settings rarely improve real-world results.

Is the MACD better than the RSI?+

Neither is better — they measure different things. The MACD is trend-following and excels at confirming trend direction and momentum shifts. The RSI is a bounded oscillator that excels at spotting overbought and oversold conditions. Many traders use both together: the MACD for trend and the RSI for exhaustion.

Technical analysis is for informational and educational purposes only. The MACD and its crossover signals do not guarantee future price movements. Past momentum behavior does not ensure similar behavior in the future. This content does not constitute investment or trading advice. Always manage risk carefully and consult a qualified financial professional before making any trading decisions.