MACD Trading Secrets: Predicting Market Trends
By Forex & Brokers DeskUpdated Nov 10, 2026

Key takeaways
- The MACD line is the 12-period EMA minus the 26-period EMA, and the signal line is its 9-period EMA.
- A bullish crossover above zero aligns with the uptrend, while one below zero is a counter-trend signal.
- The zero-line cross lags the signal-line crossover but confirms a change in the trend of the averages.
- MACD is measured in price units, so raw readings cannot be compared across different instruments.
The MACD crossover strategy does not predict market trends in the sense of forecasting where price will go. It measures momentum: whether a short-term average of price is pulling away from, or falling back toward, a longer-term average. A trend change shows up on the MACD when that momentum shifts, and traders act on three main events: the MACD line crossing its signal line, the MACD line crossing zero, and divergence between the indicator and price. Each tells you something different, each arrives with a delay, and each produces false signals in markets that lack a clear direction.
How the MACD Is Built
Gerald Appel developed the indicator in the late 1970s. It has three components:
- The MACD line: the 12-period exponential moving average (EMA) of closing prices minus the 26-period EMA. When the faster average sits above the slower one, the MACD line is positive.
- The signal line: a 9-period EMA of the MACD line itself. Because it smooths the MACD, it moves more slowly and acts as a trigger line.
- The histogram: the MACD line minus the signal line, drawn as bars above or below a zero baseline.
An EMA gives more weight to recent prices than a simple moving average does. Its smoothing multiplier is 2 ÷ (n + 1), so the 12-period EMA weights the latest close at about 15.4%, and the 26-period EMA at about 7.4%. That difference in weighting is why the 12-period EMA reacts first when price changes direction, and why the gap between the two averages works as a momentum gauge.
Hypothetical example: a stock’s 12-period EMA is 101.50 and its 26-period EMA is 100.80. The MACD line is 101.50 − 100.80 = 0.70. If the signal line is 0.55, the histogram reads 0.70 − 0.55 = +0.15. The positive histogram says the MACD line is above its own average, meaning upward momentum is currently building rather than fading.
One consequence of this construction: MACD is measured in price units, not percentages. A MACD of 0.70 on a $100 stock and a MACD of 0.0007 on a currency pair can reflect similar momentum. You cannot compare raw MACD readings across instruments, or even across very different price levels of the same instrument.
Reading the MACD Histogram
The histogram is the visual shortcut to the relationship between the MACD line and the signal line. It is positive when MACD is above the signal line and negative when it is below. When the bars cross zero, a signal-line crossover has just occurred.
The length of the bars shows how fast that gap is changing. When price accelerates, the faster EMA pulls away, the MACD line moves away from its signal line, and the bars lengthen. When price movement slows, the bars shrink even if price is still rising.
That makes the histogram useful for spotting momentum changes ahead of a crossover:
- Shrinking positive bars during an uptrend show that upward momentum is slowing. A bearish crossover may follow if the bars reach zero.
- Shrinking negative bars during a downtrend show selling momentum easing.
- A bar that turns direction after a long run (sometimes called a hook) is an early sign that the gap has started to narrow.
Shrinking bars are a warning, not a reversal. Price can keep trending while momentum cools, and the histogram can expand again without ever crossing zero.
The MACD Crossover Strategy
The signal-line crossover is the core of most MACD trading systems because it is the most frequent and earliest of the standard signals.
- Bullish signal-line crossover: the MACD line crosses above the signal line. Momentum has turned upward relative to its recent average.
- Bearish signal-line crossover: the MACD line crosses below the signal line. Momentum has turned downward.
Used alone, these crossovers fire often, including many times inside a range. Traders typically add conditions to filter them:
- Location relative to zero. A bullish crossover that happens below zero occurs while the 12-period EMA is still under the 26-period EMA, so it is a counter-trend signal. A bullish crossover above zero aligns with the existing uptrend. Many trend-followers only take crossovers on the same side of zero as the trend.
- A trend filter. Some traders place a longer moving average on the price chart, such as a 50- or 200-period EMA, and take bullish MACD crossovers only when price is above it (and bearish ones only when price is below).
- Confirmation on the price chart. A crossover that coincides with a break of resistance or a reversal candle at a support level carries more context than one in the middle of a range (see support and resistance and candlestick charts).
Exits can use the opposite crossover, a fixed stop below the recent swing low, or a trailing stop. The crossover tells you when momentum turned; it says nothing about how far price might move, so risk per trade has to be set separately, for example with a position size calculator.
The Zero-Line Crossover
When the MACD line crosses zero, the 12-period EMA has crossed the 26-period EMA. The zero-line cross is therefore a moving average crossover expressed on the indicator panel.
- Crossing from below to above zero is a bullish signal, used to enter long positions.
- Crossing from above to below zero is a bearish signal, used to enter short positions as downward momentum increases.
Longer histogram bars around the cross indicate stronger momentum, which makes continuation more plausible but not guaranteed.
The zero-line cross lags the signal-line crossover. By the time the MACD reaches zero from below, price has usually already moved well off its low, because the 9-period signal line turned earlier. The trade-off is that the zero cross confirms a change in the trend of the averages, while the signal-line crossover only confirms a change in momentum. Some traders use the signal-line crossover for entries and the zero line as the trend filter, which combines both.
Identifying Divergence
Divergence occurs when price and the MACD stop moving together. It is the closest the indicator comes to “predicting” a trend change, because it appears while the trend is still in place.
- Bearish divergence: price makes a higher high, but the MACD (or its histogram) makes a lower high. The new price extreme was reached with less momentum than the previous one.
- Bullish divergence: price makes a lower low, but the MACD makes a higher low. Sellers pushed price further with less force.
Divergence can persist through several swings before price reverses, and in strong trends it may never be followed by a reversal at all. Acting on the first divergence often means entering too early. Traders commonly wait for a trigger after the divergence, such as a signal-line crossover in the direction of the expected reversal or a break of a recent swing point on the price chart.
What to Combine MACD With
MACD measures trend momentum. The tools paired with it usually add information it lacks: overbought and oversold levels, volume, or price structure.
RSI and a simple moving average
The relative strength index is a bounded oscillator, usually calculated over 14 periods and scaled from 0 to 100. The conventional overbought and oversold levels are 70 and 30, though some traders use more conservative levels such as 80 and 20. Where MACD shows the direction and strength of momentum, RSI shows whether price is stretched.
A three-part setup combines:
- MACD for trend direction and momentum shifts,
- RSI for overextended conditions and its own divergences,
- An SMA on the price chart as a lagging trend-following filter.
For example, a trader might take a bullish MACD crossover only when price is above its SMA and RSI is not already overbought, which avoids buying into a move that has already run.
Money Flow Index
The money flow index (MFI) uses price and volume to identify overbought and oversold conditions on a 0 to 100 scale, with readings below 20 treated as oversold and above 80 as overbought. Paired with MACD, it can confirm whether a momentum signal is backed by volume. Because MFI focuses on extreme bursts of price and volume, a combined MACD and MFI rule will trigger less often.
Relative Vigor Index
The relative vigor index (RVI) measures trend strength by comparing the closing price with the trading range, smoothed with a simple moving average. In a strong uptrend closes tend to sit near the top of the range, so the RVI rises. A rising RVI alongside a bullish MACD crossover adds a second, independently calculated measure of momentum.
MACD Settings
The 12, 26, 9 combination is the default on nearly every platform. A common explanation for those numbers is that Appel developed the indicator when markets traded six days a week, so 12 periods represented two weeks and 26 roughly a month. Nothing requires those values.
Shorter settings react faster but produce more false signals:
- Day traders working on 5- or 15-minute charts sometimes shorten the fast EMA to around 8 or 9 periods, with the slow and signal periods reduced in proportion. A configuration such as 5, 35, 5 or the faster 3, 10, 16 combination appears in trading literature as an alternative for quicker signals.
- On short timeframes, signals also depend on when liquidity is present. Crossovers during quiet hours carry less weight than those during active forex trading sessions.
Longer settings smooth out noise at the cost of later entries. Swing traders often keep the defaults on daily charts, or check the weekly MACD for direction.
Multi-timeframe MACD is a common way to get both speed and context: use the MACD on a higher timeframe (daily, for example) to define trend direction, and take signal-line crossovers on a lower timeframe (such as 1-hour) only in that direction.
For swing trading, MACD suits charts with a clear sequence of higher highs and higher lows (or the reverse), price respecting a rising or falling moving average, and histogram bars that expand with the trend and contract on pullbacks. Choppy charts with overlapping candles and frequent zero crosses are the opposite.
Changing settings changes the signals, so any adjustment should be tested over enough historical data, or on a stock market simulator, before it is used with real money.
Limitations of MACD
- False signals. A crossover can reverse within a single session. A trader who goes long on a zero-line cross from below loses if price keeps falling and the MACD drops straight back under zero.
- Poor performance in ranges. When price moves sideways between support and resistance, the two EMAs converge, the MACD drifts toward zero, and crossovers alternate with no follow-through.
- Lag. Every component is built from moving averages of past closes, so entries come later than they could have.
- No fixed scale. MACD is unbounded, so it has no standard overbought or oversold levels.
Worked Example (Hypothetical)
Consider a stock in a downtrend on the daily chart, with the MACD below zero.
- Price makes a new low, but the MACD histogram makes a higher low than at the previous price low. This is bullish divergence: the selling has lost momentum.
- A few sessions later, the MACD line crosses above its signal line while still below zero. A counter-trend trader might enter a small long position here, with a stop below the recent low.
- The histogram bars lengthen as price rises, and the MACD crosses above zero, meaning the 12-period EMA has moved above the 26-period EMA. A trend-follower who ignored the earlier crossover could enter at this point, accepting a higher entry price in exchange for confirmation.
- As the rally matures, price makes a higher high but the histogram makes a lower high, and the bars begin shrinking. When the MACD crosses below its signal line, both traders have an exit signal.
The same sequence can fail at any step. If price had turned down after step 2, the stop below the recent low would have defined the loss; in a range, steps 2 and 3 could repeat in both directions several times without a sustained move.
The Bottom Line
Traders who use MACD crossovers get a read on momentum shifts, not a forecast of where price will go. Signals arrive late and fail often in sideways markets, so filters such as the zero line, a longer moving average, or RSI help screen out weak setups. Any change to the default settings should be tested on historical data or a simulator first, and risk per trade still has to be set separately.














