MACD
Moving Average Convergence Divergence: how two EMAs combine into one of the most popular momentum indicators, and how to read its crossovers.
What is the MACD?
MACD stands for Moving Average Convergence Divergence. It sounds complicated, but it is built from something you already know: two EMAs.
Take a fast 12-day EMA and a slow 26-day EMA. Subtract the slow one from the fast one. That number is the MACD line.
When recent prices are rising faster than older ones, the fast EMA pulls above the slow one and the MACD is positive. When the fast EMA drops below, the MACD turns negative. The two lines moving apart is "divergence," and moving together is "convergence."

The three parts
Every MACD panel shows three things:
1. MACD line: 12-day EMA minus 26-day EMA.
2. Signal line: a 9-day EMA of the MACD line itself. It is a slower, smoother copy.
3. Histogram: the bars show the distance between the MACD line and the signal line. Tall bars mean momentum is strong. Shrinking bars mean it is fading.

Reading the signals
Bullish crossover: the MACD line crosses above the signal line. Upward momentum is picking up.
Bearish crossover: the MACD line crosses below the signal line. Upward momentum is fading, or downward momentum is building.
Zero line cross: when the MACD itself crosses zero, the 12-day EMA has crossed the 26-day EMA. This is a slower but stronger confirmation of a trend change.
Shrinking histogram: often the earliest warning. The bars shrink before the lines actually cross.
Divergence: when price and MACD disagree
Sometimes price makes a higher high but the MACD makes a lower high. Price is still rising, but with less force behind it. This is called bearish divergence, and it can warn that a top is forming.
The opposite, price making a lower low while MACD makes a higher low, is bullish divergence.
Divergence tells you momentum is weakening. It does not tell you when the reversal will happen, and a trend can keep going for a long time while diverging.
Watch out
The MACD is built from moving averages, so it is a lagging indicator. It confirms moves after they start; it does not predict them.
In a sideways, choppy market the lines cross back and forth constantly, giving signal after signal that goes nowhere. These are called whipsaws. MACD works best when a real trend exists, so pair it with trend lines, support and resistance, or volume before acting.