Track the gap between two moving averages to read momentum and its turning points.
What is the MACD indicator?
MACD, or Moving Average Convergence Divergence, is a momentum indicator built by Gerald Appel in the late 1970s. The MACD line is the difference between a fast and a slow exponential moving average — conventionally the 12-period minus the 26-period. A 9-period EMA of that line, called the signal line, is plotted on top. Crossovers, the zero line and the histogram between the two lines all convey momentum information.
Illustrative MACD line and 9-period signal line derived from a synthetic price path. Data is for demonstration only.
MACD compresses two moving averages into a single oscillator that swings around zero. Rather than watching two lines converge and diverge on a price chart, you read their distance directly. This tool plots the 12/26 MACD line with its 9-period signal line so you can spot crossovers and momentum inflections.
MACD offers three distinct signals. A signal-line crossover fires when the MACD line crosses its 9-period average, flagging an acceleration in momentum. A zero-line crossover marks the point where the fast EMA overtakes the slow one, confirming a trend-regime change. The histogram — MACD minus signal — shows momentum building or fading before the lines actually cross, making it the most forward-looking of the three.
As with many momentum tools, MACD's subtler value is divergence. If price prints a higher high while the MACD line prints a lower high, the rally is being driven by weakening momentum, a classic bearish divergence. The bullish mirror appears at lows. Divergence is not a timing tool — momentum can fade for a long time before price follows — but it flags trends that are running on fumes.
Quadesto derives MACD straight from your uploaded price series. You set the fast, slow and signal periods, and the compute engine produces the MACD line, the signal line and the histogram as derived columns using proper EMA smoothing. Plot them as their own panel beneath price, as shown above, and embed the result so the indicator recalculates each time your data refreshes.
Upload a CSV or connect a live source, and Quadesto renders this exact chart — styled, computed, and embeddable in your reports and newsletters. Free to start.
Create free accountExplore all free financial tools, browse the finance glossary, or see how teams use Quadesto.