MACD Crossover Strategy: Entries, Exits and Filters
The MACD crossover is one of the first strategies most traders learn. The basic rule is simple: buy when the MACD line crosses above its signal line, sell when it crosses below. The problem is that the basic rule, used alone, produces a lot of losing trades in sideways markets.
This guide turns the basic crossover into a more complete plan, with filters, entries, stops and exits. If you need a refresher on how MACD is built, read what is MACD first.
The two crossovers
MACD gives two kinds of crossover signals:
| Crossover | What it means | Speed | Noise |
|---|---|---|---|
| MACD line crosses signal line | Short-term momentum shift | Faster | More false signals |
| MACD line crosses zero | 12 EMA crosses the 26 EMA | Slower | Fewer false signals |
A practical way to combine them: use the zero line to decide which direction you are allowed to trade, and use the signal line cross to time entries.
Not all crossovers are equal
Where a crossover happens matters a lot.
- Bullish cross below zero. MACD crosses up through its signal line while still negative. This is an early, more speculative signal that a downtrend may be ending.
- Bullish cross above zero. MACD crosses up while already positive. This usually marks the end of a pullback within an uptrend, and it trades with the existing trend.
- Bearish cross above zero. Momentum fading in an uptrend. Often a pullback, not necessarily a reversal.
- Bearish cross below zero. Momentum turning down within a downtrend. A trend-continuation sell signal.
Many trend-following traders only take bullish crosses above zero and bearish crosses below zero, because those trade with the trend.
A complete crossover plan
Here is one straightforward rule set. It is an example for learning, not a recommendation.
Filter
- Only look for longs when price is above the 200-day moving average.
- Only look for shorts (or exits) when price is below it.
Entry
- Wait for MACD to cross above its signal line on a daily close.
- Prefer crosses where MACD is near or above zero.
- Enter at the next session's open, or on the close of the crossover day.
Stop
- Place a stop below the most recent swing low, the lowest point of the pullback before the cross.
Exit
Pick one exit rule and stick with it:
- Opposite crossover. Exit when MACD crosses back below its signal line. Simple, but gives back some profit.
- Fixed target. Exit at a set risk-reward ratio, such as 2 to 1.
- Trailing stop. Raise the stop under each new swing low as the trend continues.
Worked example
A stock is trading above its 200-day moving average at $80. It pulls back from $88 to $81 over two weeks. During the pullback, MACD dips from 1.10 to 0.20 and crosses below its signal line, but stays above zero.
On Thursday, the stock closes at $83.50. MACD rises to 0.35 and crosses back above its signal line at 0.28. All conditions are met:
- Price above the 200-day average: yes
- Bullish cross: yes
- MACD above zero: yes
The trade:
- Entry: $83.50
- Stop: below the pullback low of $81, at $80.70
- Risk: $2.80 per share
- 2:1 target: $83.50 + $5.60 = $89.10
If the stock runs to $89.10, the trade earns twice what it risked. If it fails and drops to $80.70, the loss is defined in advance. A stop loss order makes that exit automatic.
What a whipsaw looks like
Now imagine the same stock in a flat range between $78 and $84, with the 200-day average flattening out. MACD hovers between −0.3 and +0.3, crossing its signal line five times in six weeks. Each cross is followed by a reversal within days.
A trader taking every crossover here might lose a small amount on most of them, and the losses add up. Signs you are in whipsaw territory:
- MACD and its signal line are tangled together near zero.
- The histogram bars are tiny.
- Price is moving sideways with flat moving averages.
In these conditions, many traders simply stand aside or switch to a range strategy.
Ways to improve crossover signals
Wait for the close. Intraday MACD values change with every tick. A cross at noon may disappear by the close.
Check the histogram. A crossover is the moment the histogram flips from negative to positive. If the bars were already shrinking for several days before the cross, momentum had been turning for a while, which some traders see as stronger confirmation. See MACD histogram.
Use a higher timeframe. Only take daily crossovers in the direction of the weekly MACD.
Add RSI. A bullish MACD cross with RSI above 50 shows two momentum tools agreeing.
Common mistakes
Taking every cross. Without a trend filter, MACD crossovers in flat markets are close to a coin flip, minus trading costs.
Entering late after a gap. If a stock gaps up 8% and triggers a crossover, much of the move is already done, and the stop is now far away.
No predefined exit. Many traders know when to enter but not when to get out, so small winners become losers.
Over-tuning settings. Switching from 12/26/9 to 8/17/9 because it would have worked better last quarter is a form of curve fitting. Backtesting on more data helps, but past results never guarantee future ones.
Limitations
MACD crossovers lag by design. In fast reversals, the crossover often arrives after a large part of the move. In ranges, they whipsaw. And a crossover tells you nothing about how far a move will go, so position sizing and stops matter more than the signal itself.
How Stupid Simple Trader uses crossovers
Stupid Simple Trader includes MACD crossovers as part of a broader score rather than a standalone trigger. MACD above its signal line adds 1 point, below subtracts 1, and MACD above or below zero adds or subtracts 0.5. Because the 200-day and 50-day moving average components carry more weight, the score naturally favors crossovers that agree with the larger trend, which mirrors the filter described above.
Try it
Open a ticker page like AMZN to see whether MACD is currently above or below its signal line and zero, and check the 6-month backtest to see how the overall signal has held up 10 trading days after each call.