MACD explained: line, signal, histogram and what each one tells you
The MACD calculation in full, the difference between the line, the signal and the histogram, and how to read crossovers without being whipsawed.
MACD is free on Basis — the button opens a live crypto chart with it already applied. No account, no trial and no limit on how many indicators you add.
Open the chartWhat it measures
MACD measures the distance between a fast and a slow exponential average of price. When the fast average is above the slow one the recent trend is stronger than the older one, and the indicator is positive.
It is a momentum measure derived from trend-following averages, which is why it lags — and why the histogram, which measures the rate of change of that distance, turns before the lines cross.
How it is calculated
These are the steps Basis performs, verified against the published definition.
- 1
Compute an exponential average of the source over the fast period and another over the slow period, each seeded with the simple average of its first values.
- 2
Subtract the slow average from the fast one. That difference is the MACD line.
- 3
Take an exponential average of the MACD line itself over the signal period. That is the signal line.
- 4
Subtract the signal from the MACD line. That difference is the histogram.
Settings
| Setting | Default | Range |
|---|---|---|
| Fast | 12 | 1 – 500 |
| Slow | 26 | 1 – 500 |
| Signal | 9 | 1 – 500 |
| Source | close | price source |
Twelve, twenty-six and nine come from a daily-chart era and survive mostly by convention. They are not sacred, but they are what other people are watching. If you shorten them, shorten all three proportionally rather than one alone.
How to read it
- The zero line separates regimes: above it the fast average is ahead of the slow one. Crossings of zero are slower and more meaningful than crossings of the signal.
- A signal-line crossover is the earliest event MACD produces and the least reliable. On a choppy market it fires constantly.
- The histogram shrinking while price still advances is momentum leaving the move before price reflects it.
- MACD is unbounded, so its absolute value is comparable across time on one instrument but not across instruments at different prices — use PPO for that.
Where it misleads
The signal line is an average of the MACD line, not of price, and it must be seeded from the MACD line’s own first defined value. Seeding it from the start of the price series shifts the whole signal series and moves every crossover — a subtle error that produces a chart which looks right and disagrees with everyone else’s. The other common trap is comparing MACD values between assets: a reading of 400 on Bitcoin and 0.4 on a small-cap are the same thing expressed in different units.
Plot MACD on a live chart
Basis is free. Every indicator, every chart type, order flow, derivatives, screening and backtesting — no paid tier and no account needed to open a chart.
Open a chart with MACDRelated indicators
Updated 2026-08-22 · Educational reference, not financial advice.