Trading forex and CFDs on leverage is high risk. Most retail accounts lose money. Read the risk warning

MACD Indicator Forex Strategy: Crossovers, the Zero Line and a Trend Filter

The most practical MACD forex strategy is to trade signal-line crossovers only in the direction of the larger trend: take bullish MACD crosses when price is above a long-term moving average, bearish crosses when it is below, with a stop beyond the recent swing. MACD on its default 12, 26, 9 settings is a lagging trend-momentum tool, so it works best on H1 to daily charts in trending conditions and produces repeated losing signals in sideways markets.

Key takeaways

  • MACD is the 12 EMA minus the 26 EMA; the signal line is a 9 EMA of that difference; the histogram is the gap between them.
  • Signal-line crosses are the most frequent signals; zero-line crosses are slower and reflect a shift in trend.
  • Filtering crosses with a trend indicator, such as a 200 EMA, removes many counter-trend losses.
  • MACD whipsaws in ranges; an ADX filter or simply avoiding flat markets helps.
  • Stops should come from price structure or ATR, not from MACD itself.
  • No MACD setting or strategy guarantees profits; most retail forex accounts lose money.

How MACD is built

MACD (Moving Average Convergence Divergence), developed by Gerald Appel in the late 1970s, has three parts:

  • MACD line = 12-period EMA of closes − 26-period EMA of closes.
  • Signal line = 9-period EMA of the MACD line.
  • Histogram = MACD line − signal line.

In forex, MACD values are tiny for most pairs because they are expressed in price units. On EUR/USD, a MACD of 0.0012 means the 12 EMA is 12 pips above the 26 EMA. On USD/JPY, a reading of 0.15 means 15 pips. That makes MACD values hard to compare across pairs; what matters is the direction and crossings, not the number.

Note that MetaTrader's built-in MACD draws the MACD line as a histogram and the signal line as a dotted line, which confuses people moving from TradingView, where the MACD and signal are lines and the histogram is their difference. Know which version you are looking at before reading any tutorial.

What each MACD signal means

SignalConditionWhat it tells youSpeed
Signal-line cross upMACD crosses above signalShort-term momentum turning upFastest, most false signals
Signal-line cross downMACD crosses below signalShort-term momentum turning downFastest, most false signals
Zero-line cross upMACD crosses above 012 EMA now above 26 EMA; trend shiftSlower
Zero-line cross downMACD crosses below 012 EMA now below 26 EMASlower
Histogram shrinkingBars getting shorterMomentum fading; cross may followEarliest, least reliable
DivergencePrice and MACD disagree at swingsWeakening trendVaries

A zero-line cross is mathematically the same as a 12/26 EMA crossover on the price chart. If you already use a moving average crossover strategy, MACD's zero line adds nothing new.

Strategy 1: signal-line cross with a 200 EMA trend filter

This is the most widely taught MACD strategy and a sensible starting point.

Rules (long side; reverse for shorts)

  1. Price is above the 200 EMA on the trading chart.
  2. MACD line crosses above the signal line below the zero line. This means the cross happens after a pullback, not at an already extended high.
  3. Enter at the close of the crossover candle or the open of the next.
  4. Stop below the most recent swing low, or 1.5 × ATR(14) below entry, whichever is more logical.
  5. Target 1.5R to 2R, or the prior swing high.

The "cross below zero" condition is the key detail. A bullish cross above zero, in an uptrend, often comes late in a move; a cross below zero in an uptrend means momentum dipped during a pullback and is now recovering, which is closer to buying a dip.

Worked example on EUR/USD H1

EUR/USD is trading above its 200 EMA at 1.0790. A pullback takes price to 1.0832 from a high of 1.0875, and MACD dips below zero to −0.0006. The next candle closes at 1.0841 with MACD crossing above its signal line at −0.0004. Entry at 1.0841.

ItemValueWorking
Entry1.0841Close of cross candle
Stop1.0824Below the 1.0832 low with buffer: 17 pips
Target1.0875Prior high: 34 pips = 2R
Risk$751% of $7,500
Position size0.44 lots$75 ÷ (17 × $10)

If the trade reaches target, the gain is about $150 before costs. If it stops out, the loss is about $75 plus spread. The strategy can be profitable over time only if the proportion of winners and the average reward-to-risk ratio combine to a positive number after costs; the win rate versus reward-to-risk table shows the break-even combinations.

Managing the trade after entry

MACD gives you an entry, but the exit plan matters at least as much. Three common approaches, each with a trade-off:

  • Fixed target: exit at 2R or the prior high. Simple and testable, but caps the occasional large winner.
  • Opposite cross: exit when MACD crosses back below the signal line. Lets winners run, but MACD lags, so you often give back a chunk of open profit before the cross arrives.
  • Partial plus trail: close half at 1R, move the stop to breakeven, and trail the rest behind swing lows or a moving average. See trailing a stop with a moving average.

Whichever you choose, apply it to every trade in your test; switching exit methods trade by trade makes the results impossible to interpret.

One more practical point: EUR/USD, GBP/USD and AUD/USD often produce MACD crosses on the same bar because they share the US dollar. Taking all three is close to one trade at triple the risk.

Strategy 2: zero-line trend rider

This slower approach treats MACD as a trend-state indicator rather than a trigger.

  1. On the daily or H4 chart, go long when MACD crosses above zero and stay long while it remains above zero.
  2. Exit (or reverse) when MACD crosses back below zero.
  3. Use a wide initial stop based on structure or 2 to 3 × ATR, and size accordingly.

It catches big trends and gives back a significant chunk at the end of each one, because the zero-line cross arrives well after the top. In ranges, it flips repeatedly for small losses. Its results look like most trend-following systems: a low proportion of winners, some large winners, long flat or losing periods. Read the trend following strategy guide for how traders manage that profile.

Strategy 3: higher-timeframe MACD, lower-timeframe entry

MACD's lag is less of a problem when it is used as context rather than as the trigger.

  1. On the H4 chart, define bias: MACD above zero and above its signal line means bullish bias.
  2. Drop to H1 or M15 and look for entries only in that direction, using price action, a pullback to support, or an oscillator such as RSI.
  3. When H4 MACD crosses its signal line against your bias, stop taking new trades in the old direction.

This keeps you on the side of the higher-timeframe momentum without waiting for a slow MACD cross on your entry chart. It is a simple form of multi-timeframe analysis.

Dealing with MACD's biggest weakness: ranges

In a sideways market, the 12 and 26 EMAs converge, MACD hovers near zero, and the MACD and signal lines cross back and forth every few bars. Each cross looks like a signal; most go nowhere. Ways to reduce the damage:

  • ADX filter: only take MACD signals when ADX is above roughly 20 to 25, indicating a trend is present.
  • Minimum distance from zero: ignore crosses where MACD is very close to zero, since they reflect flat averages. The threshold differs by pair and timeframe, so measure it on your chart.
  • Flat 200 EMA: if the 200 EMA is horizontal and price keeps crossing it, the trend filter is not filtering; stand aside.
  • Session awareness: crosses during the Asian session on EUR/USD or GBP/USD often reflect drift in thin liquidity.

Do you need to change the 12, 26, 9 settings?

The defaults date from a time when markets traded six days a week, which is one explanation given for 12 and 26 (roughly two weeks and a month). They are not tuned for forex, but they are not obviously worse than alternatives either. Some traders use faster settings such as 8, 17, 9 or 5, 35, 5 for shorter-term work. Faster settings give earlier, noisier crosses; slower settings give later, cleaner ones. The same caution applies as with any indicator: if a setting only looks good at one exact combination and poor at its neighbours, the result is probably curve-fitted. Our RSI settings guide describes a robustness test that works equally well for MACD.

Risk warning: MACD is a lagging indicator built from moving averages. It confirms moves after they start and regularly produces losing signals in sideways markets. No MACD strategy is reliably profitable on its own. Most retail CFD and forex accounts lose money, and leverage magnifies losses. Test any rules with realistic costs on a demo account first.

Common MACD mistakes

MistakeWhy it hurtsBetter approach
Trading every signal-line crossMost crosses in ranges are noiseAdd a trend or ADX filter
Buying crosses far above zeroOften late in the move, near exhaustionPrefer pullback crosses below zero in uptrends
Using MACD for stop placementStops based on indicator flips are arbitrary in pipsUse swing structure or ATR
Comparing MACD values across pairsValues are in price units, so scale differsCompare direction and crosses only
Confirming MACD with another MA-based toolSame information twicePair with structure or a non-MA tool
Acting before the candle closesCrosses can un-cross by the closeUse closed bars and close-based alerts

Testing a MACD strategy

Before trading any of these setups with money, test them. Choose one pair and one timeframe, write exact rules, and go through at least 50 to 100 historical signals, recording entry, stop, exit and result in R multiples, net of spread. Then run the same rules on a different period. If the results fall apart, the rules were fitted to the first sample. The manual backtesting guide explains the process. For MACD's divergence uses, which are a different technique, see MACD histogram divergence.

Frequently asked questions

What is the best MACD setting for forex?

The default 12, 26, 9 is the most widely used and a reasonable starting point. Faster settings such as 8, 17, 9 react sooner but produce more false crosses; slower settings give fewer, later signals. No setting is best across all pairs and timeframes. Test a few options for robustness rather than picking whichever looked best over the last few months.

Is MACD good for scalping?

MACD is a lagging, moving-average-based tool, so on one- and five-minute charts its crosses often arrive after the small move scalpers are targeting, and spreads take a large share of each trade. Some scalpers use a higher-timeframe MACD for bias and time entries with price action instead. Test with realistic costs before relying on it.

Should I trade MACD crosses above or below the zero line?

In an uptrend, bullish signal-line crosses that occur below zero usually come after a pullback, which many traders prefer to crosses far above zero that may come late in a move. In a downtrend, the mirror applies for bearish crosses above zero. This is a filter that tends to reduce chasing, not a guarantee.

What timeframe is best for MACD in forex?

MACD tends to be more useful on H1, H4 and daily charts, where trends last long enough for a lagging indicator to capture part of them. On very low timeframes it whipsaws more and costs matter more. Many traders use MACD on a higher timeframe for direction and a lower one for timing.

Can MACD be used alone?

It can, but it has a clear weakness in ranging markets and says nothing about where to place stops or targets. Most traders combine it with a trend or trend-strength filter, price structure for stops, and a fixed risk per trade. Avoid pairing it only with other moving-average tools, which repeat the same information.

Why does MACD look different on MT4 and TradingView?

MetaTrader's built-in MACD plots the MACD line as histogram bars and the signal line as a dotted line, with no separate histogram of the difference. TradingView plots MACD and signal as lines and the histogram as their difference. The underlying values are the same; only the presentation differs, which can confuse traders switching platforms.

This article is general information, not personal financial advice. Figures such as spreads, fees, leverage and rules change; confirm them with the provider and check the provider is authorised for your country of residence.