macd-indicator.jpg

Key Takeaways

MACD stands for Moving Average Convergence Divergence. It is a technical indicator used to analyse trend direction, momentum, and possible changes in market strength.

The MACD indicator is built from moving averages, which means it reacts to price changes rather than predicting them before they happen.

Traders commonly use MACD signals such as crossovers, zero-line moves, and divergence to assess potential trading opportunities.

In CFD trading, MACD can be useful across forex, indices, commodities, shares, and crypto CFDs, but it should be used with proper risk management because leverage can magnify both gains and losses.

MACD works best in markets with clear directional movement. It may give weaker or false signals in choppy, range-bound conditions.

What Is MACD?

MACD, or Moving Average Convergence Divergence, is a momentum-based technical indicator that helps traders understand how trend and momentum interact in a market. In simple terms, it shows whether price momentum is strengthening, weakening, or potentially changing direction.

The MACD indicator was developed by Gerald Appel in the late 1970s and remains one of the most widely used tools in technical analysis. You will often see it below a price chart, displayed as two lines and a histogram. Although it may look slightly complex at first, the idea behind it is straightforward: MACD compares two moving averages to show whether short-term price momentum is moving faster or slower than the longer-term trend.

For example, if a stock index CFD has been rising and the MACD line keeps moving higher, that may suggest bullish momentum is still strong. If price continues to rise but MACD starts to flatten or move lower, it may suggest the trend is losing strength. This is why many traders use MACD not just to find possible entries, but also to judge whether an existing move still has momentum behind it.

The meaning of MACD is closely linked to the relationship between short-term and long-term moving averages. When the shorter moving average pulls away from the longer moving average, momentum is usually increasing. When the two moving averages move closer together, momentum may be slowing. That is where the words “convergence” and “divergence” come from.

However, MACD is not a magic signal. It does not tell you with certainty when to buy or sell. Like any indicator, it works best when used as part of a wider trading process that includes price action, support and resistance, market context, and risk control.

How Does the MACD Indicator Work?

The MACD indicator works by measuring the difference between two exponential moving averages, usually the 12-period EMA and the 26-period EMA. An exponential moving average gives more weight to recent prices, which makes it more responsive than a simple moving average.

The main parts of MACD are the MACD line, the signal line, and the histogram.

MACD Line

The MACD line is the core of the indicator. It is calculated by subtracting the 26-period exponential moving average from the 12-period exponential moving average.

When the MACD line rises, it usually means short-term momentum is becoming stronger compared with the longer-term trend. When the MACD line falls, it may suggest momentum is weakening or turning bearish.

For example, if the price of gold CFDs rises sharply after a weaker-than-expected US inflation report, the short-term moving average may rise faster than the longer-term moving average. This can push the MACD line higher and show stronger bullish momentum.

Signal Line

The signal line is usually a 9-period EMA of the MACD line. Traders use it to smooth the MACD line and identify potential changes in momentum.

A common MACD signal happens when the MACD line crosses above or below the signal line. If the MACD line crosses above the signal line, some traders see this as a possible bullish signal. If the MACD line crosses below the signal line, it may be seen as a possible bearish signal.

That said, crossovers are not always reliable on their own. In a sideways market, MACD can cross repeatedly without a strong price move following. This is why it is important to check whether the market is trending or ranging before acting on a crossover.

MACD Histogram

The MACD histogram shows the distance between the MACD line and the signal line. When the histogram is above zero, the MACD line is above the signal line. When it is below zero, the MACD line is below the signal line.

The histogram can help you see momentum changes more clearly. If the histogram bars are growing taller above zero, bullish momentum may be increasing. If they are shrinking, bullish momentum may be fading. The same logic applies in reverse for bearish momentum below zero.

For many traders, the histogram is useful because it gives a visual sense of acceleration or slowdown. Instead of only looking for a line crossover, you can observe whether momentum is expanding or contracting before the crossover happens.

MACD Formula and Standard Settings

The standard MACD settings are 12, 26, and 9. These numbers are used across many trading platforms and charting tools.

The standard MACD formula is:

MACD Line = 12-period EMA − 26-period EMA

Signal Line = 9-period EMA of the MACD Line

MACD Histogram = MACD Line − Signal Line

The 12-period EMA reflects shorter-term price movement, while the 26-period EMA reflects a slower trend measure. The 9-period signal line helps smooth the MACD line and creates the crossover signals many traders watch.

Why 12, 26 and 9 Are Common Settings

The 12, 26, and 9 settings became standard because they provide a practical balance between responsiveness and smoothness. They are fast enough to react to price movement, but not so fast that they become overly sensitive to every small fluctuation.

However, these settings are not perfect for every market or timeframe. A day trader using a five-minute chart may want a more responsive setup, while a swing trader using a daily chart may prefer the standard settings or even slower inputs.

For example, shorter MACD settings may generate earlier signals, but they can also produce more false signals. Longer settings may reduce noise, but they can also react later. The right choice depends on your trading style, market, and risk tolerance.

Zero Line and Market Bias

Another important part of MACD analysis is the zero line. When the MACD line is above zero, the 12-period EMA is above the 26-period EMA. This often suggests bullish momentum. When the MACD line is below zero, the 12-period EMA is below the 26-period EMA, which often suggests bearish momentum.

Some traders use the zero line as a trend filter. For example, they may only look for bullish MACD crossovers when MACD is above zero, or only look for bearish crossovers when MACD is below zero. This can help reduce signals that go against the broader direction of the market.

How to Use MACD in CFD Trading

MACD can be applied to many CFD markets, including forex CFDs, commodity CFDs, index CFDs, share CFDs, and crypto CFDs. Because CFD trading allows you to speculate on rising or falling prices without owning the underlying asset, MACD can be useful for identifying both bullish and bearish momentum setups.

However, CFDs are leveraged products. This means a relatively small market move can have a larger impact on your account balance. Because of this, MACD should never be used without a clear risk management plan.

Using MACD Crossovers

One of the most common ways to use the MACD indicator is to watch for crossovers between the MACD line and the signal line.

A bullish crossover happens when the MACD line moves above the signal line. This may suggest that upward momentum is improving. A bearish crossover happens when the MACD line moves below the signal line, which may suggest that downward momentum is increasing.

For example, suppose the DAX 40 CFD has been pulling back after a strong rally. Price starts to stabilise near a previous support area, and the MACD line crosses above the signal line while the histogram turns positive. A trader may interpret this as a sign that bullish momentum is returning. However, the signal would be stronger if price also breaks above short-term resistance or forms a clear bullish price pattern.

Using MACD Divergence

MACD divergence happens when price and MACD move in opposite directions. This can sometimes warn that momentum is weakening.

Bullish divergence occurs when price makes a lower low, but MACD makes a higher low. This may suggest that selling pressure is fading. Bearish divergence occurs when price makes a higher high, but MACD makes a lower high. This may suggest that buying pressure is weakening.

For example, if crude oil CFDs push to a new high but MACD fails to confirm the move, traders may become cautious. The price is still rising, but the momentum behind the move may not be as strong as before. This does not automatically mean the market will reverse, but it does suggest the trend may need closer monitoring.

Divergence is especially useful when it appears near major support or resistance zones. A divergence signal in the middle of a random price move is less meaningful than one that appears near a level where traders are already watching for a reaction.

Using MACD with Support and Resistance

MACD signals are often more useful when combined with support and resistance. A crossover near a key level can provide better context than a crossover in isolation.

For example, if EUR/USD CFDs are trading near a previous resistance level and MACD shows bearish divergence, this may suggest that the resistance area is worth watching. If price then breaks lower and MACD crosses below the signal line, the bearish case becomes more convincing.

On the other hand, if MACD gives a bullish crossover but price is directly below strong resistance, you may want to be cautious. The indicator may be improving, but the price still has a technical barrier above it.

Using MACD for Trade Management

MACD is not only useful for entries. It can also help with trade management. If you are already in a long CFD trade and MACD momentum starts to weaken, you may decide to tighten your stop-loss, reduce position size, or wait for further confirmation before adding to the trade.

For example, if you are trading Nasdaq 100 CFDs during a strong uptrend and the histogram starts shrinking while price stalls near resistance, that may be an early warning that momentum is cooling. It does not mean you must close the trade immediately, but it gives you a reason to review your risk.

MACD vs RSI and Moving Averages

MACD is often compared with RSI and moving averages because all three are popular technical analysis tools. However, they are not the same, and each one answers a different question.

MACD vs RSI

RSI, or Relative Strength Index, measures the speed and size of recent price changes. It is often used to identify overbought or oversold conditions. MACD, by contrast, focuses more on trend momentum by comparing moving averages.

RSI is usually displayed as a line between 0 and 100. Readings above 70 are often considered overbought, while readings below 30 are often considered oversold. MACD does not have fixed overbought or oversold levels. Instead, traders analyse crossovers, histogram changes, divergence, and zero-line movement.

In practical terms, MACD may be better for analysing trend momentum, while RSI may be better for identifying stretched price conditions. For example, in a strong uptrend, MACD may remain bullish for a long period, while RSI may repeatedly enter overbought territory. That does not always mean the market is ready to fall. Sometimes it simply means the trend is strong.

MACD vs Moving Averages

Moving averages show the average price over a selected period. They are useful for identifying trend direction and smoothing out price noise. MACD is based on moving averages, but it goes one step further by showing the relationship between two EMAs.

A moving average crossover, such as the 50-day moving average crossing above the 200-day moving average, can show a broader trend change. MACD crossovers tend to be more sensitive and may appear more frequently.

Moving averages are often easier to read directly on the price chart, while MACD gives more detail about momentum below the chart. Many traders use both together. For example, they may only take bullish MACD signals when price is above a key moving average, or only take bearish MACD signals when price is below one.

Should You Use MACD, RSI or Moving Averages?

You do not need to choose only one. The better question is what role each indicator plays in your trading plan.

MACD can help you judge momentum shifts. RSI can help you assess whether price may be stretched. Moving averages can help you define trend direction. When these tools support the same market view, the signal may be stronger. When they disagree, it may be a sign to slow down and wait for clearer conditions.

However, adding too many indicators can also create confusion. A simple setup with MACD, a few key price levels, and a basic moving average can be more useful than a crowded chart filled with conflicting signals.

When Does MACD Work Best?

MACD generally works best when a market is trending or starting to transition into a trend. Because the indicator is based on moving averages, it is designed to capture momentum changes across time. It is less effective when price is moving sideways with no clear direction.

Trending Markets

In a strong trend, MACD can help you stay aligned with momentum. If price is making higher highs and higher lows while MACD remains above zero, the bullish trend may still be intact. If price is making lower highs and lower lows while MACD remains below zero, bearish momentum may still dominate.

For example, during a sustained rally in a major index CFD, MACD may stay above zero for weeks. In that situation, traders may use pullbacks and bullish crossovers as possible continuation signals rather than trying to predict the exact top.

Breakout Conditions

MACD can also be useful around breakouts. When price breaks above resistance and MACD moves above the zero line, this may suggest the breakout has momentum behind it. If price breaks out but MACD remains weak, traders may question whether the move has enough strength to continue.

For CFD traders, this can be particularly relevant during major market events such as central bank decisions, earnings releases, or inflation data. These events can trigger sharp moves, but not every breakout is sustainable. MACD can help you assess whether momentum is expanding or fading after the move.

When MACD Can Give False Signals

MACD is less reliable in choppy markets. If price is moving sideways in a narrow range, the MACD line and signal line may cross several times without a meaningful trend developing. This can lead to false entries and unnecessary losses.

Another limitation is that MACD is a lagging indicator. Because it is based on moving averages, it responds after price has already moved. This means you may sometimes enter later than traders who rely purely on price action. The benefit is that MACD can help filter out some noise, but the trade-off is delayed confirmation.

To reduce false signals, many traders avoid using MACD alone. They combine it with price structure, volume where available, market news, and risk controls. In leveraged CFD trading, this is especially important because a weak signal can become costly if position size is too large.

FAQs

What does MACD stand for?

MACD stands for Moving Average Convergence Divergence. It is a technical indicator that compares two exponential moving averages to measure trend momentum and possible changes in market direction.

How do traders read MACD signals?

Traders commonly read MACD by looking at crossovers, the zero line, the histogram, and divergence. A bullish crossover may suggest improving upward momentum, while a bearish crossover may suggest increasing downward momentum. Signals are usually stronger when they match the broader price trend.

Can MACD be used for CFD trading?

Yes, MACD can be used in CFD trading across forex, indices, commodities, shares, and crypto CFDs. It can help traders assess momentum and possible trend changes. However, CFDs are leveraged products, so risk management is essential.

Is MACD better than RSI?

MACD is not necessarily better than RSI. They measure different things. MACD focuses on trend momentum, while RSI focuses on the speed and strength of recent price movements. Many traders use them together for broader confirmation.

Does MACD work in all markets?

MACD can be applied to many markets, but it does not work equally well in all conditions. It tends to perform better in trending markets and can produce false signals in sideways or low-momentum conditions.

Final Thoughts

MACD is one of the most practical indicators for understanding trend and momentum. It helps traders see whether short-term price movement is gaining strength, losing energy, or moving against the broader trend. That makes it useful for spotting crossovers, reading momentum shifts, and identifying potential divergence.

Still, the MACD indicator should not be used in isolation. A good MACD signal becomes more meaningful when it agrees with price action, support and resistance, market structure, and broader context. In CFD trading, this matters even more because leverage can increase both opportunity and risk.

If you are new to MACD, start with the standard 12, 26, and 9 settings. Watch how the indicator behaves in trending, ranging, and breakout conditions. Over time, you will begin to see that MACD is less about predicting the future and more about reading the quality of current momentum.

markets.jpg


Risk Warning: This article represents only the author’s views and is provided for informational purposes only. It does not constitute investment advice, investment research, or a recommendation to trade, nor does it represent the stance of the Markets.com platform. When considering shares, indices, forex (foreign exchange), and commodities for trading and price predictions, remember that trading CFDs involves a significant degree of risk and may not be suitable for all investors. Leveraged products can result in capital loss. Past performance is not indicative of future results. Before trading, ensure you fully understand the risks involved and consider your investment objectives and level of experience. Trading cryptocurrency CFDs and spread bets is restricted for all UK retail clients.

Related Education Articles

Wednesday, 13 May 2026

Indices

What Is On-Balance Volume (OBV)? Meaning, Formula and Trading Signals

Wednesday, 13 May 2026

Indices

What Is Momentum Trading? How It Works in Fast-Moving Markets

Tuesday, 12 May 2026

Indices

What Are Google Shares and How to Trade Alphabet (Google) Stock in 2026

Tuesday, 12 May 2026

Indices

What Is a Candlestick in Trading?