Where MACD comes from
MACD, short for Moving Average Convergence Divergence, was developed by Gerald Appel in the late 1970s. It turns two exponential moving averages (EMAs) of the same price into a single oscillator that moves above and below a zero line. It is both a trend and a momentum tool: the zero line speaks to trend direction, and the distance from it hints at momentum.
The three components
- MACD line. Positive when the faster EMA is above the slower one, negative when below. It widens when the averages pull apart (divergence) and narrows as they come together (convergence), which is where the name comes from.
- Signal line. A smoothed version of the MACD line. Because it is an average of the MACD line, it reacts later.
- Histogram. The gap between the two lines, drawn as bars. It crosses zero exactly when the MACD and signal lines cross, and shrinking bars show momentum fading before a crossover happens.
The 12, 26 and 9 values are the standard defaults. Many platforms let you change them, and faster settings give earlier but noisier signals.
How the signals are commonly read
Signal line crossovers
When the MACD line crosses above the signal line, momentum is turning up; when it crosses below, momentum is turning down. This is the most widely used MACD signal and also the most prone to false starts in sideways markets, where the lines cross repeatedly.
Zero line crosses
A cross of the MACD line through zero means the 12 EMA has crossed the 26 EMA. Traders often use it as a slower confirmation of a trend change.
Divergence
As with RSI, a price high that is not matched by a MACD high (or a low not matched by a MACD low) is watched as an early sign that the move is tiring. It is a hint, not a trigger.
Limitations
- Lag. It is built from moving averages, so it follows price. Crossovers often arrive after a meaningful part of a move has happened.
- Chop. In ranges the lines tangle and crossovers lose value.
- Not bounded. Unlike RSI there is no fixed 0 to 100 scale, so MACD readings are not comparable across instruments or timeframes without context. What counts as large depends on the market's price level and volatility.
- Settings sensitivity. Small changes to the three inputs change when the signals appear.
Reading the histogram in practice
The histogram is the quickest part of the indicator to read, because it moves before the lines cross. When bars grow taller in one direction, the gap between the MACD and signal lines is widening and momentum is building. When they shrink toward zero, the gap is closing and a crossover is getting closer. Traders sometimes watch for that shrinking as an early warning, though it can reverse and grow again without any crossover happening.
Timeframes
The same 12, 26, 9 settings behave very differently on a one-minute chart and a daily chart. On faster charts the lines cross often and many crossovers are noise; on daily charts crossovers are rarer and slower. Because the unit is price points, not a percentage, compare readings only on the same instrument and timeframe.
Pairing MACD
Since MACD is about momentum and trend, traders frequently combine it with something that describes structure or volatility, such as support and resistance, VWAP for intraday context, or ATR for stop distance. Using two indicators built from the same price data adds less new information than pairing different kinds.
MACD is among the indicators included with NinjaTrader 8, with fast, slow and smooth inputs matching the 12, 26 and 9 defaults. NinjaTrader Guru has walkthroughs for adding it to a chart and saving the setup in a template.
If you want to extend your chart with additional tools built for NinjaTrader 8, Browse the NinjaTrader software listing at Affordable Indicators, or ask questions in the Discord community.
Quick answers
- What do the numbers 12, 26, 9 mean?
- The MACD line is the 12-period EMA minus the 26-period EMA of the close; the signal line is a 9-period EMA of the MACD line.
- What does the MACD histogram show?
- The difference between the MACD line and the signal line. It turns positive when the MACD line is above the signal line and negative when below.
- Is MACD a leading or lagging indicator?
- Lagging, since it is derived from moving averages of past prices. Divergence and shrinking histogram bars are sometimes used as earlier hints, but they are not predictions.
Keep reading
Educational only, not financial advice. Futures trading involves substantial risk of loss.