The MACD in Forex Trading: A Complete Guide to Mastering This Indicator
The MACD (Moving Average Convergence Divergence) is a trend-following momentum indicator that shows the relationship between two moving averages of price. It tells you the direction of momentum, whether it is speeding up or slowing down, and when it changes. In forex it is popular because it works on every pair and timeframe and combines trend and momentum in one window. This guide covers how the MACD is built, how to read its three parts, the settings that matter and three strategies with clear rules.
This guide is part of our Forex Technical Analysis guide, which links every indicator and chart tool on the site.

What Is MACD Trading?
MACD trading means using the MACD indicator to time entries and exits. Traders buy when the MACD line crosses above its signal line or above zero, and sell when it crosses below, ideally in the direction of the main trend. Divergence between MACD and price warns that a move is losing momentum.
The MACD was developed by Gerald Appel in the late 1970s. The histogram that most platforms show today was added in 1986 by Thomas Aspray to make changes in momentum easier to see. The idea is simple: when a fast moving average pulls away from a slow one, momentum is building; when the two come back together, momentum is fading.
Unlike the RSI, the MACD is not bounded between fixed levels. Its values are in price units, so a MACD reading on EUR/USD cannot be compared with one on gold. What matters is the direction of the lines, their position relative to zero and the crossovers.
The Three Parts of the MACD
| Part | Calculation (default 12, 26, 9) | What it shows |
|---|---|---|
| MACD line | 12-period exponential moving average (EMA) minus 26-period EMA | The gap between short-term and longer-term trend |
| Signal line | 9-period EMA of the MACD line | A smoothed version used for crossovers |
| Histogram | MACD line minus signal line | Whether momentum is accelerating or slowing |
| Zero line | Where the 12 and 26 EMAs are equal | Above zero the short-term trend is up, below zero it is down |
Note that MetaTrader 4’s built-in MACD draws the MACD line as a histogram and the signal line as a dotted line, which confuses many beginners. Many traders install a custom “MACD with histogram” indicator so it matches the standard layout described here.
How to Read the MACD
- Signal line crossover: the MACD line crossing above the signal line is a bullish signal; crossing below is bearish. These are frequent and work best in the direction of the trend.
- Zero line crossover: the MACD line crossing above zero means the 12 EMA has crossed above the 26 EMA, a slower but stronger trend signal.
- Histogram: growing bars mean momentum is accelerating; shrinking bars mean it is slowing, often before a crossover happens.
- Divergence: price makes a new high or low that the MACD does not confirm, a warning that the trend is losing force.
MACD Buy and Sell Signals
A MACD buy signal comes when the MACD line crosses above the signal line (the 9-period EMA of the MACD line), and it is stronger when the cross happens in the direction of the main trend. A sell signal is the mirror image: the MACD line crosses below the signal line. A move of the MACD line above or below zero confirms that momentum has changed side. Crossovers lag price and give many false signals in ranges, so use them with a trend filter, as in Strategy 1 below.
MACD Settings
| Setting | Behaviour | Typical use |
|---|---|---|
| 12, 26, 9 (default) | Balanced; the version most traders watch | H1 to daily |
| 5, 35, 5 | Faster reaction, more signals | Intraday momentum trading |
| 8, 17, 9 | A little faster than default | M15 to H1 |
| 19, 39, 9 | Slower, fewer false crossovers | Daily swing and position trades |
Faster settings react earlier but give more false signals in ranges. Whatever you choose, keep it fixed long enough to judge it on a meaningful sample of trades.
Strategy 1: Signal Line Crossover with a Trend Filter
- Trend filter: trade buys only when price is above the 200 EMA and the MACD line is above zero; sells only when both are below.
- Entry: after a pullback, wait for the MACD line to cross back above the signal line (for a buy) and enter at the close of that candle.
- Stop-loss: below the pullback low, or 1.5 x ATR from the entry.
- Exit: when the MACD line crosses back below the signal line, or at a fixed 1:2 risk-to-reward target.
The filter removes most of the crossovers that fail in choppy markets, at the cost of fewer trades.
Strategy 2: Zero Line Momentum Trade
- Wait for the MACD line to cross above zero after a period below it, confirming that the 12 EMA is now above the 26 EMA.
- Check that price has broken the last swing high, so structure agrees with momentum.
- Enter on the first pullback that holds above the broken level.
- Place the stop below the pullback and trail it under each higher low while the MACD stays above zero.
This catches the middle of larger trends rather than the turning points, which suits traders who prefer fewer, longer trades.
Strategy 3: MACD Divergence
- On H4 or daily, find a bearish divergence (price higher high, MACD lower high) or a bullish one (price lower low, MACD higher low).
- Wait for the histogram to change colour or cross zero and for price to break the latest minor swing.
- Enter on that confirmation with the stop beyond the extreme.
- Target the start of the last swing or the nearest major support or resistance.
Because the MACD is not bounded, divergences between swings of very different size can be misleading. Compare swings that look similar on the chart.
Practical Example on GBP/USD
Suppose GBP/USD on the H1 chart is above its 200 EMA and the MACD line is above zero. Price pulls back for several candles, the histogram shrinks and the MACD line dips just under the signal line. Two candles later the MACD line crosses back above the signal line as a bullish candle closes at 1.2710. The pullback low is 1.2680, so the stop goes at 1.2675 (35 pips) and the target at 1.2780 (70 pips). On a $5,000 account risking 1% ($50), the position is about 0.14 lots. The trade is closed early if the MACD line crosses back under the signal line before the target. This is an illustration of the rules, not a forecast.
The MACD Checklist
- Is the MACD line on the right side of zero for my trade direction?
- Does the higher-timeframe trend agree?
- Is the histogram growing in my direction, or already shrinking?
- Is there a support or resistance level in the way of my target?
- Is my stop at a logical level and my risk 1-2% of the account or less?
Common MACD Mistakes
- Trading every crossover, including those in flat, ranging markets where they fail most often.
- Ignoring the lag: the MACD uses moving averages, so it confirms moves rather than predicting them.
- Misreading MT4’s default MACD, whose bars are the MACD line, not the histogram.
- Comparing MACD values across pairs, which is meaningless because they are in price units.
- Acting on divergence alone without a break in price structure.
How to Add the MACD in MetaTrader
- Open the chart, then go to Insert → Indicators → Oscillators → MACD.
- Keep the default fast EMA 12, slow EMA 26 and MACD SMA 9, applied to the close.
- In MT4, remember that the bars are the MACD line and the dotted line is the signal line; there is no separate histogram.
- Add a horizontal level at 0 in the Levels tab so the zero line is easy to see.
- Right-click the chart and save it as a template so the setup loads with one click on any pair.
The MACD on Different Timeframes
The MACD behaves differently depending on the chart you use it on. On the daily chart, signal-line crossovers are rare and often mark the start of moves lasting weeks; zero-line crossovers can take months. On H4 and H1, crossovers appear several times a week and are best used with a daily trend filter. On M5 to M15, the indicator reacts to every small swing, so most crossovers are noise unless they agree with the H1 direction.
A practical approach is the two-timeframe method: use the MACD position relative to zero on the higher timeframe (for example H4) to decide direction, and take signal-line crossovers only in that direction on the lower timeframe (for example H1). This keeps you on the side of the larger momentum while still giving timely entries.
MACD vs Other Momentum Tools
| Indicator | Bounded? | Strength | Weakness |
|---|---|---|---|
| MACD | No | Trend direction and momentum together | Lags; values not comparable across pairs |
| RSI | 0-100 | Stretched moves, divergences | Stays overbought in strong trends |
| Stochastic | 0-100 | Fast turns in ranges | Many false signals in trends |
| CCI | No | Strong deviations from the average | Sensitive to the period chosen |
Combining the MACD with one bounded oscillator is common: the MACD tells you which way momentum is pointing, the oscillator tells you when a pullback inside that move is stretched.
Watch: The MACD Explained on Video
See it on a live chart in this short video lesson:
MACD Trading Systems
Complete systems that use the MACD:
Sources and Further Reading
- Gerald Appel, Technical Analysis: Power Tools for Active Investors (2005), by the creator of the MACD.
- John J. Murphy, Technical Analysis of the Financial Markets (1999), chapter on moving averages and oscillators.
- MetaQuotes, Moving Average Convergence/Divergence (MetaTrader 4 Help).
- Related guides: RSI, moving averages and ATR stop placement.
MACD FAQ
What is MACD trading?
It is a way of trading momentum with the MACD indicator: entries and exits come from signal-line crossovers, zero-line crossovers and divergence, usually filtered by the trend on a higher timeframe and always with a stop-loss.
Is the MACD a leading or lagging indicator?
Lagging. It is built from moving averages of past prices, so its crossovers confirm a move after it has started. Divergence is the closest it comes to an early warning, and even that needs price confirmation.
What does a MACD crossover mean?
When the MACD line crosses above the signal line, short-term momentum is turning up; a cross below means it is turning down. A crossover above the zero line in an uptrend is generally stronger than one against the trend.
What are the best MACD settings for forex?
The default 12, 26, 9 works on most pairs and is the version other traders watch. Faster settings such as 5, 35, 5 suit intraday trading but produce more false signals.
Is the MACD good for scalping?
It can be used on M5-M15 with faster settings, but it lags, so scalpers usually combine it with price action or a faster oscillator and trade only in the direction of the higher-timeframe trend.
What is the difference between the MACD and the RSI?
The MACD follows the gap between two moving averages and is best for trend and momentum direction. The RSI is bounded between 0 and 100 and is better for spotting stretched moves and divergences.
Why does the MACD give so many false signals?
Most false signals happen in sideways markets, where the two moving averages keep crossing. A trend filter such as the 200 EMA or the zero line removes many of them.
Keep learning