MACD, or Moving Average Convergence Divergence, is a technical indicator that compares two exponential moving averages to show how short-term and longer-term price momentum are changing. Traders commonly observe the MACD line, signal line, histogram and crossovers, but none of these elements can determine what price will do next on their own.
The indicator is most useful when treated as one layer of chart context. Its readings can look different in a trend, a range, a volatile market or a period of low participation. This is why MACD is better understood as a way to organise information about momentum than as a standalone instruction.
What does MACD stand for?
MACD stands for Moving Average Convergence Divergence. The name describes the relationship between two moving averages.
When the averages move closer together, they are converging. When they move further apart, they are diverging. The indicator turns that changing relationship into a line that can be displayed below a price chart.
MACD is often described as a momentum or trend-following indicator because it reflects changes in the relationship between recent and longer-term price movement. Unlike a bounded oscillator such as RSI, MACD does not move between fixed upper and lower limits.
What MACD actually measures
MACD measures the difference between a faster exponential moving average and a slower exponential moving average.
An exponential moving average gives more weight to recent price data than older data. This makes it respond more quickly to recent movement than a simple moving average using the same period.
When the faster average moves further above the slower average, the MACD line generally rises. When the faster average moves further below the slower average, the MACD line generally falls. When the averages move closer together, the MACD line moves towards its centre line.
This means MACD does not measure whether an asset is fundamentally expensive or cheap. It does not explain why price moved. It organises the relationship between two averages derived from historical price data.
How MACD is calculated
The commonly used MACD setting is written as 12, 26, 9:
- 12 periods: the faster exponential moving average
- 26 periods: the slower exponential moving average
- 9 periods: the average used to calculate the signal line
The standard calculation can be expressed simply:
MACD line = 12-period EMA minus 26-period EMA
The signal line is then calculated as a 9-period exponential moving average of the MACD line. The histogram represents the difference between the MACD line and the signal line.
These settings are common defaults rather than universal rules. Changing the periods changes how quickly the indicator responds. Shorter settings tend to react more quickly but may also produce more frequent changes. Longer settings tend to respond more slowly and smooth more of the short-term movement.
The three main parts of MACD
| MACD component | What it represents | What traders commonly observe |
|---|---|---|
| MACD line | The difference between the faster and slower exponential moving averages. | Whether the relationship between short-term and longer-term momentum is strengthening, weakening or changing. |
| Signal line | A smoothed average of the MACD line. | How the MACD line behaves relative to its own recent average. |
| Histogram | The distance between the MACD line and signal line. | Whether that distance is expanding, contracting or crossing through zero. |
The MACD line
The MACD line is the main calculation. It rises and falls as the faster and slower moving averages change their relationship.
A rising MACD line can indicate that recent upward momentum is strengthening relative to the longer-term average. A falling line can indicate that recent downward momentum is strengthening, or that earlier upward momentum is weakening.
The meaning depends on where the line sits, how quickly it is moving and what price is doing at the same time.
The signal line
The signal line smooths the MACD line. Because it is based on the MACD line’s recent values, it usually reacts more slowly.
The relationship between the two lines creates the crossovers commonly associated with the indicator. A crossover reflects a change in the relationship between current MACD momentum and its recent smoothed average. It does not establish why the change occurred or whether it will continue.
The MACD histogram
The histogram displays the gap between the MACD line and signal line. Bars appear on either side of a central zero level.
When the lines move further apart, the histogram generally expands. When they move closer together, it contracts. When the lines cross, the histogram crosses its zero level.
What MACD crossovers show
A MACD crossover occurs when the MACD line crosses the signal line. Traders commonly observe these events because they show that the short-term momentum relationship has moved through its recent average.
MACD line moving above the signal line
When the MACD line moves above the signal line, recent momentum has strengthened relative to the indicator’s smoothed average. This may occur during an upward move, during a recovery inside a wider downtrend, or during temporary movement within a range.
MACD line moving below the signal line
When the MACD line moves below the signal line, recent momentum has weakened relative to its smoothed average. This may occur during a downward move, a pullback within an upward trend, or sideways price behaviour.
The crossover itself cannot distinguish between those environments. Price structure, timeframe, volatility and the wider trend all affect how the reading appears.
What the MACD zero line shows
The zero line represents the point where the faster and slower exponential moving averages have the same value.
- When the MACD line is above zero, the faster average is above the slower average.
- When the MACD line is below zero, the faster average is below the slower average.
- When the MACD line crosses zero, the two averages have crossed each other.
A crossover above or below zero can help describe the wider moving-average relationship, but it is usually more delayed than changes in the histogram or a crossover between the MACD and signal lines.
Zero-line position is therefore useful context rather than proof of market direction.
What the MACD histogram shows
The histogram makes changes in the distance between the MACD line and signal line easier to see.
Expanding histogram bars
Expanding bars show that the two lines are moving further apart. This generally indicates that the momentum difference measured by the indicator is increasing.
However, expanding bars do not mean price must continue in the same direction. Momentum can increase late in a move, during a sudden news reaction or inside a volatile range.
Contracting histogram bars
Contracting bars show that the MACD line and signal line are moving closer together. This may suggest that the current momentum difference is weakening.
Contraction can happen before a crossover, but it does not guarantee that one will produce a meaningful change in price behaviour.
Histogram crossing zero
The histogram crosses zero when the MACD line crosses the signal line. This is a visual representation of the crossover rather than a separate event.
Why MACD needs market context
MACD is derived entirely from price, so its interpretation depends heavily on the environment shown by the underlying chart.
Trending markets
In an established trend, the MACD line may remain above or below zero for an extended period. Crossovers against the wider trend may reflect temporary pullbacks rather than a lasting change in structure.
This is one reason MACD is often considered alongside market structure, moving averages, previous highs and lows, and support or resistance areas.
Range-bound markets
In a sideways market, the MACD and signal lines may cross frequently. Price may move back and forth without developing a sustained trend.
Frequent crossovers can make the indicator appear active even when the broader chart remains within the same range.
Volatile markets
During periods of high volatility, rapid price changes can cause the MACD line and histogram to expand quickly. The indicator may then reverse as the initial movement fades.
This can occur around economic announcements, market opens, unexpected headlines or rapid changes in liquidity.
Different timeframes
MACD can show different conditions across timeframes. A crossover on a short-term chart may occur while the longer-term MACD remains positioned in the opposite direction.
Neither reading is automatically wrong. Each reflects the moving-average relationship for the timeframe and data shown on that chart.
MACD divergence
Divergence occurs when price and an indicator do not develop in the same way.
For example, price may move to a higher high while the MACD forms a lower high. This can suggest that the indicator’s measured momentum is weaker than it was during the previous price high.
Price may also move to a lower low while the MACD forms a higher low, suggesting that measured downward momentum has weakened relative to the earlier move.
Divergence can provide context about momentum, but it does not guarantee a reversal. Divergence can persist, repeat or disappear while price continues moving in the same direction.
MACD versus RSI
MACD and the Relative Strength Index both relate to momentum, but they organise information differently.
| Feature | MACD | RSI |
|---|---|---|
| Main calculation | Relationship between two exponential moving averages. | Comparison of recent upward and downward price movement. |
| Scale | Unbounded, moving above and below zero. | Bounded between 0 and 100. |
| Common observations | Crossovers, zero-line position, histogram expansion and divergence. | Momentum level, centre-line position, overbought or oversold conditions and divergence. |
| Main limitation | Can lag and produce frequent crossovers in sideways conditions. | Can remain elevated or depressed during strong trends. |
Neither indicator is inherently more reliable in every environment. They answer different questions and remain dependent on historical price data.
Common mistakes when interpreting MACD
Treating every crossover as meaningful
Crossovers can occur frequently in choppy or range-bound markets. A crossover shows a change in the indicator relationship, not a guaranteed change in wider market structure.
Ignoring the underlying price chart
MACD should not replace observation of price. The same indicator reading can mean different things near support, inside a range, after a breakout or during a strong trend.
Assuming the histogram predicts price
The histogram shows the difference between two indicator lines. Expansion or contraction describes changing measured momentum, but it does not establish the next price movement.
Using one setting for every purpose
The common 12, 26, 9 setting is a default, not a universal standard. Changing the setting changes the indicator’s sensitivity, but no setting removes lag or uncertainty.
Confusing momentum with direction
Momentum can weaken while price continues in the same direction. It can also strengthen during a short-lived move. MACD describes the pace and relationship of movement, not certainty about its destination.
Comparing MACD values across unrelated instruments
Because MACD is based on absolute price differences and is not bounded, its numerical values are not directly comparable across assets with different price scales.
Using MACD within a platform workflow
On MetaTrader 5, MACD is usually displayed in a separate indicator window beneath the main price chart.
A clear observational workflow separates the chart into several questions:
- What is price doing?
- Is the market trending, ranging or moving through a transition?
- Where is the MACD line relative to the signal line?
- Is MACD above or below zero?
- Is the histogram expanding or contracting?
- Does the indicator agree with or differ from the visible price structure?
This keeps the indicator in its proper role. It adds information about changing momentum without turning one reading into a complete decision framework.
Risks and limitations
MACD is based on moving averages calculated from historical prices. This creates several limitations.
- MACD can lag behind fast price changes.
- Crossovers may occur after a move is already underway.
- Sideways markets can produce repeated and short-lived crossovers.
- Histogram changes may not lead to a lasting change in price structure.
- Divergence can appear without a subsequent reversal.
- Different settings and timeframes can produce conflicting readings.
- Unexpected news or liquidity changes can quickly alter market conditions.
- Using a technical indicator does not remove the risks involved in trading CFDs.
MACD is best understood as a chart-context tool. It can help organise information about moving-average relationships and momentum, but it cannot predict price or provide a complete basis for a trading decision.
Related reading
- Market Guides
- MetaTrader 5
- Momentum
- Moving average
- Exponential moving average
- Oscillator
- Divergence
- Market structure
- Relative Strength Index
- Volatility
Sources
- Fidelity Learning Center: Moving Average Convergence Divergence
- Charles Schwab: Indicators for assessing momentum
- MetaTrader 5 Help: MACD
- MetaTrader 5 Help: Technical indicators
Frequently asked questions
MACD stands for Moving Average Convergence Divergence. It describes the changing relationship between a faster and slower exponential moving average.
MACD measures the difference between two exponential moving averages. This helps show how recent price momentum is changing relative to a longer-term average.
The three main parts are the MACD line, the signal line and the histogram. The MACD line shows the difference between two moving averages, the signal line smooths the MACD line, and the histogram shows the distance between the two lines.
A crossover means the MACD line has moved above or below its signal line. This shows a change in the relationship between current momentum and its recent smoothed average, but it does not guarantee a particular price outcome.
The histogram shows the difference between the MACD line and signal line. Expanding bars mean the distance is growing, while contracting bars mean the lines are moving closer together.
The zero line represents the point where the faster and slower exponential moving averages have the same value. Above zero, the faster average is higher. Below zero, the faster average is lower.
MACD is generally considered a lagging indicator because it is calculated from historical prices and moving averages. Some traders observe changes in the histogram for earlier momentum context, but those changes still rely on past data.
Neither is universally better. MACD focuses on the relationship between moving averages, while RSI compares recent upward and downward movement on a bounded scale. Their usefulness depends on the market environment and the question being examined.
No. Crossovers, histogram contraction and divergence may show that momentum is changing, but none of them can confirm that price will reverse.