MACD indicator explained for forex and gold
MACD is one of the most popular indicators on any trading platform, and it often sits right under the price chart as a pair of lines and a small histogram. Many new traders learn one rule, buy when the lines cross up and sell when they cross down, and then wonder why the signals arrive late or flip back and forth in quiet markets. MACD is more useful when you understand what it is built from. It is a trend and momentum tool made from moving averages, and each of its parts answers a slightly different question. This guide explains how MACD is calculated, how to read the lines, the zero line and the histogram, how divergence works, and how to use it sensibly on currency pairs and gold.
Free on Telegram. See how we read momentum on gold and the major pairs each day on the Forexuro channel.
What MACD stands for and what it measures
MACD stands for Moving Average Convergence Divergence. It was developed by Gerald Appel in the late 1970s, and the histogram that most platforms now show with it was added later by Thomas Aspray. The name describes exactly what it does: it tracks how two moving averages of price move toward each other (convergence) and away from each other (divergence).
When a fast moving average pulls away from a slow one, price is accelerating in that direction. When the gap starts to shrink, the move is slowing down. MACD turns that gap into a line you can read at a glance. Three points are worth remembering before using it:
- MACD follows price. It is built only from past closes, so it confirms moves rather than predicting them.
- MACD is not bounded. Unlike RSI it has no fixed 0 to 100 scale, so there are no universal overbought or oversold levels.
- MACD is measured in price units. On EUR/USD the values are tiny fractions, on gold they are dollars, so readings cannot be compared directly across markets.
How MACD is calculated
Every charting platform calculates MACD for you, but the steps explain how it behaves.
- The MACD line. Take a 12 period exponential moving average (EMA) of the closing price and subtract a 26 period EMA. The result is positive when the fast average is above the slow one and negative when it is below.
- The signal line. Take a 9 period EMA of the MACD line itself. It is a smoothed, slower version of the MACD line.
- The histogram. Subtract the signal line from the MACD line. Each bar shows the gap between the two lines.
Here is a short example using made up numbers, not live market data. Suppose the 12 period EMA on EUR/USD is 1.0850 and the 26 period EMA is 1.0830. The MACD line is 0.0020, or 20 pips. If the signal line is at 0.0015, the histogram reads 0.0005. The fast average is above the slow one, so the short term trend is up, and the MACD line is above its signal line, so that upward momentum is currently building rather than fading.
Because both averages are exponential, recent candles carry more weight than older ones. That makes MACD react a little faster than a simple moving average crossover, but it is still a lagging tool. If you want a refresher on how moving averages describe direction, our guide to trends and moving averages covers the basics.
Reading the three parts of MACD
The MACD line and the signal line
The relationship between the two lines is the part most traders watch. When the MACD line is above the signal line, short term momentum is stronger than its recent average. When it is below, momentum is weakening or turning down. The distance between them tells you how strong that difference is.
The zero line
The zero line is where the 12 and 26 period EMAs are equal. Above zero, the fast average is above the slow one and the market has an upward bias over that window. Below zero, the bias is down. Many traders treat the zero line as a simple trend filter: they only look for buying ideas while MACD is above zero and only look for selling ideas while it is below.
The histogram
The histogram shows momentum of momentum. Growing bars above zero mean the MACD line is pulling further ahead of the signal line, so the push is accelerating. Shrinking bars mean the push is slowing, even if price is still rising. A histogram that falls from tall bars toward zero is often the earliest visual hint that a crossover may be coming.

MACD crossovers: useful but late
A bullish crossover happens when the MACD line crosses above the signal line. A bearish crossover happens when it crosses below. These are the classic MACD signals, and they have two well known weaknesses.
First, they lag. By the time two averages of averages cross, a good part of the move has often already happened. Second, in a sideways market the lines hover close together and cross again and again, producing a string of small losing ideas. This is often called whipsaw.
A few habits make crossovers more meaningful:
- Trade crossovers in the direction of the bigger trend. A bullish crossover while MACD is above zero, after a pullback, is usually stronger than one deep below zero in a falling market.
- Check where price is. A crossover at a clear level on the chart carries more weight than one in the middle of nowhere.
- Use a higher timeframe. Crossovers on hourly or four hour candles are less noisy than those on one minute charts.

Zero line crosses
When the MACD line itself crosses zero, the 12 period EMA has crossed the 26 period EMA. This is slower than a signal line crossover, but it reflects a more significant shift in direction. Some traders use it as confirmation: a signal line crossover gives the early warning, and a later move through zero confirms that the trend has really changed.
MACD divergence
As with other momentum tools, divergence is when price and MACD disagree.
- Bearish divergence. Price makes a higher high, but the MACD line or histogram makes a lower high. The new peak came with less momentum than the last one.
- Bullish divergence. Price makes a lower low, but MACD makes a higher low. Sellers pushed lower, but with less force.
Divergence is a warning, not a reversal. Strong trends can show it several times and keep going. It means more when it appears on a higher timeframe, at an obvious support or resistance level, and when price then confirms it by breaking the most recent swing. Because MACD is unbounded, divergence is often easier to see on the histogram than on the lines. If you already use RSI, our guide to the RSI indicator explains divergence on a bounded oscillator, and comparing the two can help you avoid reading too much into one of them.

Choosing MACD settings
The standard settings are 12, 26 and 9, and most traders keep them because they are what everyone else is looking at. Faster settings, such as 5, 35 and 5 or 8, 17 and 9, react sooner and produce more crossovers, which also means more false ones. Slower settings smooth the lines and cut noise but arrive later.
There is no setting that works best everywhere. Pick one, keep it fixed while you test it on past charts, and judge it on a decent number of examples rather than a handful of memorable trades. Changing settings after every loss only fits the indicator to the past.
MACD on forex pairs and on gold
On major currency pairs, MACD tends to work best when a pair is trending, for example during a sustained move driven by interest rate expectations. During quiet sessions, when pairs like EUR/USD often drift in tight ranges, the lines flatten and crossovers become much less reliable. Around big releases such as inflation data or central bank decisions, one large candle can bend both averages sharply and create a crossover that reverses as soon as the news settles.
Gold (XAUUSD) often trends harder than most currency pairs, which can suit MACD, but it also moves several dollars in a short time. Remember that MACD values on gold are in dollars, so a reading that looks large on gold might be completely normal. Compare MACD with its own recent history on the same chart rather than with other markets. Whatever the market, MACD says nothing about where to put a stop. Volatility tools such as the ATR indicator are better suited to that job, and the position size should then come from the stop distance.
Common MACD mistakes
- Taking every crossover. In ranges, crossovers come in quick succession and many of them fail.
- Ignoring the zero line. Buying a bullish crossover deep below zero means trading against the prevailing trend.
- Treating MACD as overbought or oversold. It has no fixed levels, so a high reading is only high compared with that market's own history.
- Comparing values across markets. A MACD of 2 on gold and 0.0010 on EUR/USD measure completely different things.
- Using it without a plan for risk. No crossover removes the need for a stop loss and a sensible position size.
A simple MACD checklist
- Check whether MACD is above or below zero to see the broader bias.
- Look for signal line crossovers in the direction of that bias, ideally after a pullback.
- Watch the histogram shrinking as an early sign that momentum is fading.
- Look for divergence at clear levels, and wait for price to confirm it.
- Avoid reading too much into crossovers just before or during major news.
- Set the stop where the idea is proven wrong, then size the position from that distance.
MACD is built from moving averages, so it reacts slowly. For an oscillator that measures where price closes within its recent range, read the stochastic oscillator guide.
Using MACD alongside trade signals
If you follow signals, MACD can help you understand the context of a trade rather than replace the plan. Forexuro signals come with an entry, a stop loss and three targets, and every closed trade is listed in the public trade history, losses included. A quick look at MACD when a signal arrives can show whether the trade is joining an accelerating trend or catching a move where momentum is fading, which helps you understand why it may need room. The size of the position should still come from the published stop, not from how convincing the indicator looks.
MACD and RSI divergence has its own chapter in The Chart Patterns Playbook, our chart patterns e-book, with real chart examples of a divergence that worked and one that failed.
Official sources
Primary reference pages from regulators, central banks and official bodies on the topics in this article.
- BIS: Triennial Central Bank Survey of foreign exchange markets, 2025, the global data on foreign exchange turnover by currency and trading centre.
- LBMA Gold Price, the London benchmark price for gold in US dollars per troy ounce.
- FCA: permanent restrictions on the sale of CFDs to retail consumers, the UK leverage limits, margin close-out rule, negative balance protection and risk warnings for retail CFD trading.
Frequently asked questions
What does MACD stand for?
MACD stands for Moving Average Convergence Divergence. It measures the gap between a 12 period and a 26 period exponential moving average, with a 9 period signal line and a histogram showing the difference between the two lines.
What are the best MACD settings for forex?
The standard 12, 26 and 9 settings are the most widely used and a sensible starting point. Faster settings give earlier but noisier crossovers, and slower settings are smoother but later. Consistency matters more than the exact numbers.
Is a MACD crossover a buy or sell signal?
Not on its own. A crossover shows a change in short term momentum, but it lags price and fails often in ranging markets. It is more meaningful in the direction of the trend shown by the zero line and at a clear level on the chart.
What does the MACD histogram show?
The histogram shows the distance between the MACD line and the signal line. Growing bars mean momentum is accelerating, and shrinking bars mean it is slowing, which can warn of a crossover before it happens.
Does MACD work on gold?
Yes, gold often trends strongly, which suits MACD. Its values on XAUUSD are in dollars, so compare readings with the recent history of the same chart, and use a volatility tool such as ATR to place stops.
Keep reading
RSI indicator explained · Trends and moving averages · ATR indicator explained