Indicators · Beginner

MACD: Trend And Momentum Together

A falling MACD line does not mean price is falling. It means two moving averages are getting closer together.

Last reviewed by the MarketPro research desk · Editorial policy

In short

MACD subtracts a slower exponential moving average from a faster one, normally 26 and 12 periods, to produce the MACD line. A 9-period EMA of that line is the signal line, and the histogram is the gap between the two. Because the MACD line measures the distance between two averages rather than price itself, it can fall while price rises, which happens whenever an advance slows and the averages converge.

What to remember

  • The MACD line is a distance between two EMAs, so it falls whenever the averages converge, even while price is making new highs.
  • The histogram crosses zero at the same bar the MACD line crosses the signal line, which makes a shrinking histogram early notice of an approaching cross.
  • A crossover above the zero line and one below it are different signals. Sorting by side of zero splits continuation from counter-trend.
  • In a 40-pip range the two EMAs sit almost on top of each other, and crossovers fire on differences too small to trade.

Three numbers from two averages

MACD is built from two exponential moving averages and nothing else. The MACD line is the faster EMA minus the slower one. The signal line is a 9-period EMA of that difference. The histogram is the MACD line minus the signal line. Standard settings are 12, 26 and 9, which is where the shorthand 12/26/9 comes from.

Because the MACD line is a subtraction, it is a distance rather than a price. When the 12-period EMA pulls away from the 26-period EMA, the MACD line rises. When the two averages converge, it falls, regardless of which direction price itself is heading. That is the source of almost every misreading of this indicator: a falling MACD line does not mean price is falling. It means the gap between two averages is closing.

MACD on a 12/26/9 setup, worked through

Put EUR/USD on a 4-hour chart. The 12-period EMA reads 1.0918 and the 26-period EMA reads 1.0880. The MACD line is 1.0918 minus 1.0880, which is 0.0038, plotted as 38 pips above the zero line. The signal line, a smoothed version of recent MACD values, sits at 0.0030. The histogram is the difference, 0.0008, or 8 pips tall.

Four bars later price has pushed higher but the advance has slowed. The 12-period EMA is now 1.0932 and the 26-period EMA has caught up to 1.0900. The MACD line is 0.0032, and the signal line, still catching up to the earlier surge, has climbed to 0.0034. The histogram has flipped to minus 0.0002.

Read that sequence carefully. Price made a higher high. The MACD line fell, because the two averages moved closer together. And the histogram did not cross zero ahead of the crossover, it crossed zero because of it: a negative histogram is the arithmetic statement that the MACD line has gone below the signal line. The two events are the same event.

What arrived early was the shrinking. The histogram went from 8 pips to a fraction of a pip over four bars while the lines were still apart, and that contraction was visible on every one of them. The warning is in the trend of the bars, not in a zero cross that beats the crossover to it.

13 more sections in MarketPro

Finish this lesson in MarketPro

The rest of MACD: Trend And Momentum Together, a quiz that checks it landed, and your place kept in the curriculum.

  • 13 more sections of this lesson
  • All 320 lessons, with no cap and no paywall
  • Free on any account, including a free one
In your browserContinue on webor continue on web

Same account as the app · No install · Free to start

Or scan with your phone camera to get the MarketPro app.

Not investment advice. Past performance is not indicative of future results.

Run the numbers while this is fresh

Work it through on your own position size. Nothing leaves your browser and there is no sign-up: Pivot points calculator, Fibonacci calculator, Position size calculator.

Written and reviewed by the MarketPro research desk

MarketPro is a trading-signal and trading-education app operated by Harajuku Holdings LTD (Cyprus). Our signal desk publishes and tracks every trade idea in-app, and every page here is checked against the app's live behaviour before publishing. Last reviewed . How we produce signals and content · About MarketPro

FAQ

MACD: Trend And Momentum Together: questions

What do the numbers 12, 26 and 9 mean in MACD?
They are the periods of the three exponential moving averages involved. The MACD line is the 12-period EMA minus the 26-period EMA, and the signal line is a 9-period EMA of that result. The settings are conventions inherited from when the indicator was designed for daily charts, not optimised values.
Is the MACD histogram better than the crossover?
The histogram is earlier, because it shrinks towards zero while the two lines are still apart and crosses zero at the exact bar they cross. That makes it useful for managing an open position as momentum fades. It also produces more false alarms, since a histogram can contract for several bars and then expand again without any crossover occurring.
Why does MACD give false signals in a range?
MACD is built entirely from moving averages, so in a range both averages settle near the middle of that range and the gap between them stays close to zero. Crossovers then happen on very small differences, several times a week, with no sustained move behind them. A trend filter applied before any crossover is considered is the usual defence.
Trade · Learn · Earn

The whole academy is free in MarketPro

All 320 lessons, 12 guided paths, quizzes and a daily streak. Free on every account, in the app or your browser, with vetted free signals alongside it.

Same account as the app · No install · Free to start

Not investment advice. Past performance is not indicative of future results.