MACD is the difference between two exponential moving averages, used to read the momentum and direction of a trend through crossovers with its signal line.
Gerald Appel developed MACD. It subtracts a 26-session EMA from a 12-session EMA and compares that line with a signal line, the 9-session EMA of the MACD itself.
The gap between the MACD line and the signal line is the histogram. A positive histogram means upward momentum is in control.
MACD = EMA(12) − EMA(26); Signal = EMA(9) of MACD; Histogram = MACD − Signal
Stock Flow uses MACD(12, 26, 9). A positive histogram counts as BUY, a negative one as SELL. It is one of the trend indicators.
MACD lags price because it is built from moving averages. When price moves sideways the MACD line crosses its signal line repeatedly and produces a lot of noise.
Open the FPT page · Keep learning in the Guide · All terms
This content is for reference and education only, not investment advice. All investing carries risk.