The MACD measures a trend’s momentum: it is the gap between a fast EMA (12) and a slow EMA (26). Positive, the short average is above the long one; negative, below.
Calculation: MACD = 12 EMA − 26 EMA. The signal line is the 9 EMA of the MACD. The histogram = MACD − signal. Example: 12 EMA = 105 and 26 EMA = 102 → MACD = +3; if the signal line is 2.4, the histogram is +0.6.
Reading it: MACD above zero = bullish momentum, below = bearish momentum. When the MACD crosses its signal line, momentum is changing pace. A shrinking histogram shows a move running out of steam, even before price turns.
In a trading plan, two roles are often combined: the sign of the MACD as a filter (buy only if it is above zero) and its crossing with the signal line as a trigger. The stop is still defined separately, on the price chart.
Pitfalls: the MACD has no bounds (no fixed thresholds like 70 / 30) and depends on the price level, so you don’t compare the MACD of two assets; it is built from averages, so it lags; and a divergence (higher price, lower MACD) can last a long time.
Examples
ELAN-X (fictional market) : The green EMA 20 follows the price closely. Picture a shorter EMA and a longer one: when they move apart the MACD grows; when they come together momentum runs out.
Gerald Appel and the 12 / 26 / 9 settings : The MACD was developed by US analyst Gerald Appel in the late 1970s. His 12, 26 and 9 settings have remained the default values on most charting platforms.