First AI chart analysis freeTry itFirst AI chart analysis freeTry itFree analysis usedGo ProUnlimited AI chart analysisGo ProUnlimited AI chart analysisOpen
Trend & Momentum

MACD crossover with a trend filter

Evidence: Popular, untestedBeginner

Also calledMACD strategyMACD crossoverMACD signal line cross

In an uptrend (above the 50 EMA), buy when MACD crosses above its signal line after a pullback; exit when it crosses back.

Style
Day trading, Swing trading
Charts
1 hour to daily charts
Markets
Stocks, Forex, Crypto, Index futures
Holding time
Days to weeks

The idea

MACD is the gap between a 12-period and a 26-period exponential moving average, with a 9-period average of that gap drawn as the signal line. When the MACD line crosses above the signal line, short-term momentum is turning up.

On its own, a MACD cross fires constantly. This strategy only takes crosses in the direction of the bigger trend, defined by price being above (for buys) or below (for shorts) the 50-period EMA, so it buys momentum turning up after a pullback inside an uptrend.

Watch it play out

Illustration, not a real chart.

Step by step

The rules

Setup

  • Price is above the 50 EMA (for buys).
  • MACD has dipped below its signal line during a pullback.

Entry

  • Buy at the close of the candle where the MACD line crosses back above the signal line.

Stop-loss

  • Under the low of the pullback.

Target

  • Exit when MACD crosses back below its signal line, or at 2R.

Filters that help

  • Crosses that happen below the zero line (after a deeper pullback) are often preferred.
  • Skip it when the 50 EMA is flat.

Why it can work

Pullbacks in a trend show up as MACD dipping below its signal line. When it crosses back up, the pullback has lost force and the trend's momentum is returning, so the entry comes near the end of the dip rather than at the top of a move.

Worked example

EUR/USD is above its 50 EMA on the four-hour chart. After a pullback, MACD crosses above its signal line on a candle closing at 1.0950. The pullback low is 1.0915, so the stop goes at 1.0912, 38 pips away.

Risking 100 dollars, that is 0.26 lots. The exit comes when MACD crosses back down.

Size this trade in the EUR/USD calculator

When it works, when it fails

Works best

In steady trends with clear pullbacks, on timeframes of an hour and up.

Struggles

In ranges, where MACD crosses back and forth around zero, and after sharp V-turns, where the signal comes late. As a set of moving averages, it always lags.

Common mistakes

  • Taking every cross without the trend filter.
  • Reading divergence as a timing signal on its own.
  • Changing the 12, 26, 9 settings after each loss.

Variations

Zero-line cross
Waiting for MACD to cross above zero (the 12 EMA crossing the 26 EMA): slower and later, with fewer signals.

What the evidence says

Evidence: Popular, untested

Widely used, but no rigorous public testing. An idea to test yourself.

MACD is built from moving averages, whose rules have been studied for decades with mixed results. Some academic tests of MACD rules on individual markets found periods of value; none we can point to shows a lasting edge after costs for this specific filtered rule.

Treat it as a way to time entries inside a trend, and test it on your market before trusting it.

Questions

Which timeframe suits MACD best?
MACD works on any timeframe, but its crosses are noisy on very short charts. Many traders use it on the one-hour, four-hour or daily chart, where pullbacks and their ends are clearer.
Is MACD divergence a reliable signal?
Divergence, price making a new high while MACD does not, shows momentum fading, but trends often continue for a long time after it appears. It works better as a warning to tighten a stop than as a reason to trade against the trend.
What do the MACD settings 12, 26, 9 mean?
The MACD line is the 12-period EMA minus the 26-period EMA. The signal line is a 9-period EMA of the MACD line. The histogram is the gap between them.
Is a MACD cross below zero better?
Crosses below zero come after deeper pullbacks, so they often catch the trend's resumption from a better price. They are also rarer.
Why use a 50 EMA filter?
It keeps you trading with the bigger trend. MACD crosses against the trend fail more often, because they try to catch reversals.
AI Chart Analysis

See a setup on your own chart

Upload a chart and EntrixAlgo's AI reads it: Buy or Sell, with entry, targets and stop.Upload a screenshot of any chart and EntrixAlgo's AI reads it: a Buy or Sell call with an entry, two targets, a stop and the risk to reward. Your first analysis is free, no card needed.

  • First analysis free
  • No card to start
  • Payments by Stripe