The MACD, introduced by Gerald Appel in the 1970s, starts from a simple observation: two moving averages of different periods spread apart when the move accelerates and drift back together when it slows. Instead of eyeballing the two averages, the MACD plots their distance directly — and turns it into a measurement.
In plain terms — Two cars on the same road: one reacts instantly to traffic, the other keeps the average pace. If the first keeps pulling away, the flow is accelerating; if the second catches up, the acceleration is over. The MACD is the rangefinder between the two.
How it is built
Three elements, all derived from closes:
| Element | Formula | What it says |
|---|---|---|
| MACD line | EMA 12 − EMA 26 | Distance between short- and medium-term momentum |
| Signal | EMA 9 of the MACD line | The average of that distance: the reference |
| Histogram | MACD − signal | How fast the gap is widening or closing |
Two properties to fix in mind right away. Zero is a regime boundary: MACD above zero means EMA 12 above EMA 26 — a bullish average structure; below zero, bearish. The histogram leads the line: its bars shorten before the crossover happens, because they measure the speed at which the two lines are converging.
How to read the chart — Top: price with EMA 12 (gold) and EMA 26 (teal). Bottom: MACD line (blue), dashed signal (gold), green/red histogram around zero. Interactive — the highlighted points show the confirmed bullish cross, the stretch below zero and the histogram deflating before the turn.
Reading it in practice
- Position relative to zero — the most robust reading and the one beginners use least: above zero you look for bullish confirmations, below zero for defence. Changing sides of zero matters more than any crossover.
- MACD/signal crossover — the distance overtakes its own average: short-term momentum accelerates against the medium term. Read it in the context of the price panel: a bullish cross below zero and against the trend is worth little; the same cross above zero, with the trend, is worth more.
- A deflating histogram — ever-shorter bars while price keeps going the same way: thrust is running out. Often the first warning, ahead of the crossover and ahead of any visible turn in price.
- Divergences — rising price highs with falling MACD highs: same logic and same cautions as RSI divergences — a warning to verify on price, not a timer.
Limits and traps
Warning — The MACD is built from averages: it inherits their lag and their fragility in the absence of a trend. In a sideways market crossovers fire back and forth around zero; the "is there a trend?" filter (ADX) comes before any MACD signal.
- The line's absolute value depends on the instrument's price: it cannot be compared across assets (the normalised variant, PPO, exists for that).
- The 12-26-9 parameters were born on daily charts; on other timeframes they remain a sensible starting point, not a truth.
Links
- ema — the building block
- rsi — the other strength gauge, on a fixed 0–100 scale
- adx — the filter that decides whether MACD signals make sense
- trend · indicatori