
MACD Explained: Crossovers, Divergence, and Trading Strategy
Updated August 2026
MACD is one of the most widely used momentum indicators precisely because it packages several ideas into one visual tool built from moving averages traders already understand: trend, momentum, and the gap between them.
This guide covers what the three components actually measure, how to read a crossover and a divergence, a basic strategy for combining them, and the mistake of forgetting that MACD, like most moving-average-based tools, confirms a move more often than it predicts one, including how it applies to commodities via Ouinex's commodities derivatives markets.
What Is MACD?
MACD (Moving Average Convergence Divergence) is a trend-following momentum indicator made of a MACD line, a signal line, and a histogram, used to spot changes in a trend's strength and direction.
It was developed by American technical analyst Gerald Appel in the late 1970s, built around a simple observation: the relationship between a faster and a slower moving average tells you something meaningful about momentum that either moving average alone doesn't fully capture. Rather than requiring a trader to watch two separate moving average lines and mentally track how far apart they are, MACD calculates that gap directly and plots it as its own indicator, oscillating above and below a zero line as the two underlying moving averages converge and diverge over time.
The core idea is that when a faster moving average pulls away from a slower one, momentum is building in that direction; when the two moving averages converge back toward each other, momentum is fading. MACD is built entirely to track that convergence and divergence between the two averages, which is where the full name comes from. Because it's built from exponential moving averages rather than raw price, MACD tends to be smoother than an indicator built directly from price swings, at the cost of reacting somewhat more slowly to sudden changes. That trade-off between smoothness and speed shows up throughout the mistakes section further down.
The Three Components of MACD
MACD is made up of three related pieces, as Corporate Finance Institute's breakdown of the indicator also lays out:
MACD line: calculated as the 12-period exponential moving average (EMA) minus the 26-period EMA. This is the core measure of the gap between the faster and slower average: a positive value means the faster average sits above the slower one, and a negative value means the reverse.
Signal line: a 9-period EMA of the MACD line itself. Because it's a moving average of the MACD line, it lags slightly behind it, which is what makes crossovers between the two meaningful: the signal line acts as a smoothed reference the faster-moving MACD line crosses through.
Histogram: calculated as the MACD line minus the signal line, plotted as bars above or below a zero line. The histogram visualizes the gap between the MACD line and signal line directly: taller bars mean the two lines are further apart (stronger momentum), while shrinking bars mean they're converging (fading momentum), often ahead of an actual crossover.
MACD Crossovers: How to Read Buy and Sell Signals
The relationship between the MACD line and the signal line is the most commonly used part of the indicator:
Bullish crossover: occurs when the MACD line crosses above the signal line, generally read as a signal that upward momentum is building.
Bearish crossover: occurs when the MACD line crosses below the signal line, generally read as a signal that downward momentum is building.
A second, less-discussed signal comes from the zero line itself rather than the signal line, sometimes called a centerline crossover. Because the MACD line is the gap between the 12-period and 26-period EMAs, it crosses above zero exactly when the faster average overtakes the slower one, and below zero when the reverse happens. A zero-line crossover confirms a broader shift in trend rather than a shorter-term momentum wobble, and tends to lag both the signal-line crossover and price itself. It is used less often for entries and more often to confirm that a trend shift flagged by a signal-line crossover has actually taken hold.
Crossovers are the single most commonly cited MACD signal, and this specific mechanic is distinct and well-defined enough that it could support its own dedicated deep-dive down the line, the same way certain narrowly-scoped sub-topics elsewhere in our education content have earned standalone treatment. On their own, though, crossovers happen frequently enough in a choppy market that they benefit heavily from the additional context covered later in this guide.
MACD Divergence: Spotting Reversals Before They Happen
Divergence compares what price is doing to what MACD is doing, similar in structure to RSI divergence:
Bullish divergence: occurs when price makes a lower low, but MACD makes a higher low at the same time, suggesting that even though price pushed to a new low, the downward momentum behind that move was weaker than the momentum behind the prior low.
Bearish divergence: occurs when price makes a higher high, but MACD makes a lower high at the same time, suggesting that even though price pushed to a new high, the upward momentum behind that move was weaker than the momentum behind the prior high.
This is the same underlying logic as the divergence concept covered in Ouinex's RSI (Relative Strength Index) guide, just measured through a different momentum calculation. Because MACD divergence can appear well before a crossover confirms the shift, it's often treated as an earlier warning sign, though, as with RSI, most traders wait for some additional confirmation rather than acting on divergence alone.
MACD Trading Strategy
A simple approach to combining MACD's pieces looks like this:
Check the broader trend first. MACD signals in the direction of an established trend are generally considered more reliable than signals against it, since a crossover that agrees with the larger trend has more going for it than one fighting against a strong move in the opposite direction.
Use crossovers for entry timing. A bullish crossover in an uptrend, or a bearish crossover in a downtrend, is a more common entry trigger than acting on a crossover that runs against the prevailing trend.
Watch for divergence as an early warning. A divergence appearing before a crossover confirms it can offer a head start, though waiting for the crossover itself (or another form of confirmation) reduces the odds of acting on a divergence that doesn't ultimately play out.
Example trade walkthrough (commodities CFD): say a trader is watching a commodities CFD in an established uptrend, where MACD recently showed bullish divergence, price made a marginal new low while MACD's low was noticeably higher than its prior one. Shortly after, the MACD line crosses above the signal line, confirming the shift. A trader might enter a long position via the commodities CFD on that crossover, placing a stop below the recent swing low that formed the divergence. Because both the divergence and the crossover pointed the same direction, this setup carries more weight than either signal would have carried on its own.
Trading MACD signals with leverage magnifies both gains and losses. A crossover or divergence is a probability signal, not a guarantee, so always define your stop-loss. For a refresher on "moving average" or "momentum," Ouinex's trading glossary is a useful companion while learning any momentum-based indicator.
Common Mistakes When Trading MACD
Forgetting that MACD is a lagging indicator. Because it's built from moving averages, MACD confirms a move that's often already underway more often than it predicts one before it starts. Traders expecting MACD to call a reversal at the exact turning point are usually disappointed, it tends to be a step or two behind the fastest-moving part of a reversal, which is part of why divergence is often given extra weight alongside the crossover itself.
That lag is also the reason divergence gets treated as an exception rather than a contradiction. The histogram is closer to a rate of change of the gap between the two moving averages than it is to the gap itself, and a rate of change can turn before the level it is measuring does, the same way a car's speedometer starts dropping before the car has actually stopped moving. That is the mechanical reason divergence can show up ahead of a crossover: it is catching a shift in the rate of momentum, not a shift in momentum's own lagging level. It does not make divergence a non-lagging signal, both are still built from moving averages, it just explains why one component of a lagging indicator can behave like an earlier warning than the indicator's own headline signal.
Using default settings on every timeframe without adjusting for the instrument's volatility. The standard 12/26/9 setting is a reasonable starting point, but a highly volatile instrument may generate excessive false crossovers at the default settings, while a very slow-moving one may generate signals too infrequently to be useful. Adjusting the periods to better match an instrument's typical volatility is a common refinement once a trader has a feel for how the default setting behaves on it.
Trading every crossover in a choppy, range-bound market. MACD crossovers happen far more frequently, and far less reliably, in a market moving sideways without a clear trend. Applying a strict crossover strategy in exactly the conditions it's worst suited for is one of the more common ways traders end up disappointed with the indicator, since a series of rapid, small crossovers in a range-bound market can generate a run of small losing trades in quick succession.
FAQ - MACD Questions Answered
What is a good MACD setting?
The default 12/26/9 setting (fast EMA, slow EMA, and signal line periods) is the most widely used and the starting point most traders begin with. Shorter settings make MACD more sensitive and generate more frequent signals, while longer settings smooth it out and generate fewer, later signals: the right choice depends on the timeframe and trading style rather than there being one universally correct setting, and many traders leave the default in place unless they have a specific reason to adjust it.
What does MACD divergence mean?
MACD divergence is a mismatch between price and the MACD line: price making a new high or low that isn't matched by a corresponding new high or low in MACD. Bullish divergence (price lower low, MACD higher low) suggests fading downward momentum; bearish divergence (price higher high, MACD lower high) suggests fading upward momentum. Both are commonly read as early, though not guaranteed, warning signs of a potential reversal, and both benefit from the same kind of additional confirmation described in the strategy section above.
Does MACD work in crypto trading?
Yes: MACD is asset-agnostic and applies the same way to crypto as it does to forex, stocks, or commodities. Crypto's typically higher volatility can produce more frequent crossovers than in slower markets, so combining crossovers with the broader trend and divergence tends to matter even more in crypto specifically, where a strict crossover-only approach is especially prone to false signals.
What's the difference between MACD and RSI?
MACD is built from the relationship between two moving averages and is primarily used to identify trend direction and momentum shifts via crossovers, while RSI is bounded between 0 and 100 and is primarily used to identify overbought/oversold conditions and divergence. The two indicators measure related but distinct things, and traders frequently use them together rather than as substitutes: MACD for trend and crossover timing, RSI for extremes and divergence. Ouinex's RSI (Relative Strength Index) guide covers the other side of this comparison in more detail.
Sources
1. Gerald Appel, CMT Association Speaker Biography
2. MACD Oscillator, Corporate Finance Institute
3. MACD (Moving Average Convergence/Divergence Oscillator), StockCharts ChartSchool
Virtual assets may lose their value in full or in part and are subject to extreme volatility. You may lose the full amount you invest, and your investment does not benefit from any form of financial protection.





