What are the best settings for a MACDMACD (Moving Average Convergence Divergence) is a momentum and trend-following indicator that measures the relationship between two exponential moving averages — typically the 12 and 26 EMA — and plots the difference (MACD line) alongside…Read definition → crossover strategy on a 5-minute chart? It's the question most traders type first, and the search results answer it with lists: 12-26-9, 5-13-5, 8-17-9, 3-10-16, each with a confident reason and no evidence.
The settings matter much less than what MACD is. The MACD line is the 12-period EMA minus the 26-period EMA, nothing more. So a MACD zero-line cross is exactly a 12/26 EMA crossover, and a signal-line cross is an average of that difference crossing the difference itself. Once you see it that way, the trade's real problem is obvious: lag.
This playbook shows you what each MACD part measures in minutes, the one crossover worth trading, where to enter and stop given the lag, and what the lag costs you in R. It's part of the indicator module in our Strategies Hub.
Strategy snapshot
TrendA trend is a sustained directional movement in price over time — an uptrend is characterized by a sequence of higher highs and higher lows, a downtrend by lower highs and lower lows — and correctly identifying the current trend direction…Read definition → continuation (momentum confirmation)In 30 seconds
- MACD is the 12-period EMA minus the 26-period EMA; the Signal LineThe signal line is a 9-period exponential moving average of the MACD line. When MACD crosses above its signal line, momentum is turning up; a cross below means momentum is turning down.Read definition → is a 9-period EMA of MACD; the histogram is the distance between them.
- The crossover worth trading is MACD crossing back above its signal line while MACD is still above zero, in a stock trending above VWAPVWAP (Volume Weighted Average Price) is the average price a security has traded at throughout the session, weighted by volume — it's the most important intraday indicator for day traders, serving as a real-time measure of fair value and…Read definition →: a PullbackA pullback is a temporary counter-trend price movement within an established trend — in an uptrend, a pullback is a short-term decline that offers a lower-risk entry point before the trend resumes, as opposed to a reversal which signals…Read definition → ending inside an uptrend.
- Enter one cent over the cross candle's high. Because MACD lags, price has usually left the pullback low behind, so put the stop under the last three candles' low.
- In a range MACD crosses its signal line again and again. Skip crosses when MACD is hugging zero.
What is MACD and what does a crossover mean?
MACD (moving average convergence divergence) is a momentum indicator equal to the 12-period exponential moving average of price minus the 26-period EMA. When the fast average is above the slow one, MACD is positive; the further apart they spread, the larger MACD gets. Gerald Appel developed it in the late 1970s, for daily charts.
MACD has three parts, and each one is a single calculation:
- The MACD line = 12 EMA minus 26 EMA. Above zero means the fast average is above the slow one.
- The signal line = a 9-period EMA of the MACD line, a smoothed copy of it.
- The histogram = MACD line minus signal line. It crosses zero at the exact moment the two lines cross.
MACD is the distance between the 12 and 26 EMA. The histogram is the distance between MACD and its signal.
On a 5-minute chart, 12 periods is 60 minutes and 26 periods is 130 minutes. The 9-period signal line smooths about 45 minutes of MACD readings. So there are two different crossovers:
- A zero-line cross is the 12 EMA crossing the 26 EMA. It's a plain moving average crossover.
- A signal-line cross is MACD crossing its own 9-period average. It shows the spread between the averages has started widening or narrowing again.
Our Beginner's Guide lesson on RSI, MACD and Bollinger Bands covers the basics if MACD is new to you.
Which MACD settings should a day trader use?
Use the standard 12, 26, 9 settings on a 5-minute chart unless you have your own logged evidence that something else works better for your stocks. Faster settings such as 5, 13, 5 react sooner and also flip more often, so they trade lag for noise.
There's no published evidence that any particular setting works better intraday. The research that exists tested MACD rules on index data over decades. Chong and Ng (2008) used 60 years of monthly FT30 data from the London Stock Exchange and found MACD and RSI rules beat buy-and-hold in most cases. When Chong, Ng and Liew (2014) tested the rules on daily data in five other stock markets, significant excess returns showed up in Italy and Canada but not consistently across the others. Park and Irwin (2007) warn that results like these are vulnerable to data snooping.
The practical point: everybody watching 12, 26, 9 is watching the same line, and choosing a setting because it backtested best on last month is the data snooping that Park and Irwin describe. Pick the standard and spend your effort on the trend filter.
When does a MACD crossover work, and when should you skip it?
A MACD crossover works best when it marks the end of a pullback inside an established trend, with MACD still above zero. It works worst in ranges, where MACD hugs the zero line and crosses its signal every few candles.
Take it when:
- The stock is trending above VWAP with higher highs and higher lows.
- During the pullback, MACD fell toward zero but stayed above it.
- The histogram stopped falling and started rising before the cross.
- The cross happens with price above the pullback's highs or close to them.
Skip it when:
- MACD is hugging zero and has crossed its signal line three or more times in the last hour.
- The bullish cross happens far below zero in a downtrend. That's usually a pause, and it's a counter-trend trade.
- Price has already run more than 2R above the pullback low by the time the cross prints. The lag has used up the trade.
In a range MACD crosses its signal line again and again. Each cross is a signal to nowhere.
How do you trade the MACD crossover? The playbook
MACD crossover with the trend (long)
10:00 a.m. to 2:30 p.m. ETWhat does a real MACD crossover trade look like?
The walkthrough follows XYZ through a trending morning. The ticker and prices are made up so the rules are easy to see.
XYZ MACD crossover, 5-minute chart
- Trend
XYZ climbs from $40.00 to $41.47, well above VWAP. MACD rises above zero.
- Pullback low
XYZ pulls back to $40.93. MACD falls but stays positive: its lowest reading is 0.224, at 11:05.
- Histogram turns
The histogram bottoms at minus 0.041 and starts rising from the next candle: the early warning.
- The cross
MACD (0.264) closes above its signal line (0.254). The cross candle runs from $41.47 to $41.64 and closes at $41.63, above the $41.47 morning high.
- Entry
Price trades $41.65, one cent over the cross candle. Stop at $41.14, two cents under the 11:10 low of $41.16. Risk: 51 cents.
- Target
XYZ trades $42.67, the 2R target.
MACD crossed back over its signal at 11:20, still above zero. Entry 1 cent over that candle's high.
Look at where price was when MACD finally crossed: $41.63, five candles and 70 cents above the pullback low. That's the lag every MACD trader pays, and the next section prices it.
How much does MACD's lag cost you?
MACD's lag cost in the walkthrough was 70 cents of the move, the distance from the $40.93 pullback low to the $41.63 cross candle close. That cost shows up as either a wider stop or a stop that's no longer under the pullback low.
Compare three ways to trade the same turn:
- Entry method
- MACD cross, stop under the pullback low
- Entry
- $41.65
- Stop
- $40.91
- Risk
- $0.74
- Shares for $100
- 135
- Entry method
- MACD cross, stop under the last three candles
- Entry
- $41.65
- Stop
- $41.14
- Risk
- $0.51
- Shares for $100
- 196
- Entry method
- Price trigger: 1 cent over the first green candle at the low (10:55)
- Entry
- $41.00
- Stop
- $40.91
- Risk
- $0.09
- Shares for $100
- 1,111
| Entry method | Entry | Stop | Risk | Shares for $100 |
|---|---|---|---|---|
| MACD cross, stop under the pullback low | $41.65 | $40.91 | $0.74 | 135 |
| MACD cross, stop under the last three candles | $41.65 | $41.14 | $0.51 | 196 |
| Price trigger: 1 cent over the first green candle at the low (10:55) | $41.00 | $40.91 | $0.09 | 1,111 |
The price trigger filled at 11:00, 25 minutes and 65 cents before the MACD entry, with a stop of only 9 cents. It also had no confirmation: many pullbacks that turn green for one candle keep falling. The MACD cross is the confirmation, and its price is the lag.
This guide's take: use the three-candle stop for the MACD trade (the playbook), or use MACD as context for a price trigger (the variation below). Don't combine the late MACD entry with the pullback-low stop. A 74-cent stop on a trade that's already moved 70 cents puts your 2R target at $43.13, far beyond the move most pullbacks resume with.
How do you manage a MACD crossover trade?
Manage a MACD crossover by moving the stop to break-even at 1R, selling half or more at 2R, and exiting the rest when MACD crosses back below its signal line. The exit cross gives back some profit, but it's a mechanical rule that keeps you in strong legs.
- At 1R ($42.16), move the stop to your entry.
- At 2R ($42.67), sell half or more.
- For the rest, exit on the first 5-minute candle where MACD closes below its signal line, or on a close below VWAP, whichever comes first.
- Time stop: if price hasn't reached 1R within about 30 minutes, exit.
Place the stop as a real order. Investor.gov notes that a stop order becomes a market order when the stop price trades, so in a fast drop the fill can be below your stop.
Is this MACD crossover an A+, a B or a skip?
- Trend
- A+
- Higher highs and lows above a rising VWAP
- B
- Above VWAP, flat highs
- Skip
- Below VWAP
- MACD during the pullback
- A+
- Stays well above zero
- B
- Dips close to zero
- Skip
- Crosses below zero
- Histogram
- A+
- Turned up two or more candles before the cross
- B
- Turned up on the cross candle
- Skip
- Still falling
- Recent crosses
- A+
- First cross after a pullback
- B
- Second in the hour
- Skip
- Third or more in the hour
- Lag check
- A+
- Cross within about 1R of the pullback low
- B
- 1R to 2R above the low
- Skip
- More than 2R above the low
- Room
- A+
- High of day or more at least 2R above entry
- B
- 1.5R of room
- Skip
- Under 1R of room
| A+ | B | Skip | |
|---|---|---|---|
| Trend | Higher highs and lows above a rising VWAP | Above VWAP, flat highs | Below VWAP |
| MACD during the pullback | Stays well above zero | Dips close to zero | Crosses below zero |
| Histogram | Turned up two or more candles before the cross | Turned up on the cross candle | Still falling |
| Recent crosses | First cross after a pullback | Second in the hour | Third or more in the hour |
| Lag check | Cross within about 1R of the pullback low | 1R to 2R above the low | More than 2R above the low |
| Room | High of day or more at least 2R above entry | 1.5R of room | Under 1R of room |
Where does the MACD crossover fail?
The MACD crossover fails most often in ranges, on crosses far below zero, and on late crosses that come after the move is already done. All three are visible on the chart before you enter.
Trading every signal-line cross
Buying a bullish cross deep below zero
Switching to faster settings after a loss
What are the honest numbers on the MACD crossover?
No reliable published win rate exists for MACD crossovers on intraday charts; the studies that exist used monthly or daily index data with mixed results across markets. So here's the arithmetic you can check.
XYZ MACD crossover: size, costs and break-even
A wide stop makes costs small in R: 2 cents on a 51-cent stop is only 0.04R, so break-even at 2R is about 34.7%, close to the cost-free 33.3%. The catch is the target. A 2R target on a 51-cent stop needs the stock to move another $1.02 after the cross. Whether your stocks do that often enough is the question your log has to answer.
Log every MACD trade: where MACD was relative to zero during the pullback, how many candles the histogram led the cross, the lag (cross close minus pullback low, in R), and the result. After 30 to 50 trades, sort by the lag column. If the late crosses lose, tighten the lag check.
Which MACD crossover variations should you know?
Histogram turn with a price trigger
Instead of waiting for the cross, use the histogram turning up as permission and a price trigger as the entry: one cent over the first green candle after the pullback low, stop under that low. In the walkthrough that entry was $41.00 with a 9-cent stop. It's earlier and tighter, and it fails more often, because the histogram can turn up and down again.
Zero-line pullback
Some traders wait for MACD to pull back to the zero line itself, then buy the cross back up. It's the same idea as a 26 EMA pullback, and it usually means a deeper dip.
Bearish cross short
In a downtrend below VWAP, a bearish cross with MACD still below zero is the mirror trade: short one cent under the cross candle's low, stop over the last three candles' high. Short sales need borrowable shares, carry theoretically unlimited risk, and can be restricted by Rule 201 after a 10% drop from the prior close.
MACD divergence
When price makes a new high and MACD doesn't, that's divergence: a warning, not a crossover. It's covered in the next lesson, the MACD divergence strategy.
MACD crossover vs 9/20 EMA crossover: what's the difference?
A MACD zero-line cross is the same event as a 12/26 EMA crossover, while a signal-line cross is a smoother, slightly later read on the same spread. A 9/20 EMA crossover on a 5-minute chart is faster than both, because its averages are shorter.
- What crosses
- MACD signal-line cross
- MACD vs its 9-period average
- MACD zero-line cross
- 12 EMA vs 26 EMA
- 9/20 EMA cross
- 9 EMA vs 20 EMA
- Time covered (5-min chart)
- MACD signal-line cross
- 60 and 130 minutes, smoothed over 45
- MACD zero-line cross
- 60 vs 130 minutes
- 9/20 EMA cross
- 45 vs 100 minutes
- Speed
- MACD signal-line cross
- Medium
- MACD zero-line cross
- Slowest
- 9/20 EMA cross
- Fastest
- Best use
- MACD signal-line cross
- End of a pullback in a trend
- MACD zero-line cross
- Trend direction filter
- 9/20 EMA cross
- Fast trend timing
- Weakness
- MACD signal-line cross
- Lag, whipsaws near zero
- MACD zero-line cross
- Very late
- 9/20 EMA cross
- Whipsaws in ranges
| MACD signal-line cross | MACD zero-line cross | 9/20 EMA cross | |
|---|---|---|---|
| What crosses | MACD vs its 9-period average | 12 EMA vs 26 EMA | 9 EMA vs 20 EMA |
| Time covered (5-min chart) | 60 and 130 minutes, smoothed over 45 | 60 vs 130 minutes | 45 vs 100 minutes |
| Speed | Medium | Slowest | Fastest |
| Best use | End of a pullback in a trend | Trend direction filter | Fast trend timing |
| Weakness | Lag, whipsaws near zero | Very late | Whipsaws in ranges |
If you already watch the 9 EMA and the 20 EMA, MACD adds less than it seems: it's built from the same closes. Use it as your one momentum tool, following the one-indicator-per-job rule from the VWAP bounce lesson.
Pre-trade checklist
Which tools help you trade the MACD crossover?
MACD crossovers only work on stocks that are trending, so most of the job is the watchlist. The free Trade Ideas live trading room runs real-time scans of stocks in play, including names trending above VWAP, with a moderator explaining what they're watching. Trade Ideas is this guide's top pick for an all-in-one active trading platform, and it lets you paper trade the setup before risking money.
Key takeaways
- MACD is the 12 EMA minus the 26 EMA. A zero-line cross is a moving average crossover; a signal-line cross is a smoothed turn in the same spread.
- Keep the standard 12, 26, 9 settings. No published evidence favors other intraday settings, and swapping them chases noise.
- Trade bullish crosses only above zero, in a stock trending above VWAP, at the end of a pullback.
- The lag in the example was 70 cents. Use a three-candle stop, and skip crosses that come more than 2R above the pullback low.
- In a range, MACD crosses back and forth. Three crosses in an hour means stop using it for the day.
Frequently asked questions
What is the best MACD setting for a 5-minute chart?
Is the MACD crossover a leading or lagging indicator?
What does it mean when MACD crosses above zero?
Which is better, the signal-line cross or the zero-line cross?
Does MACD work on the 1-minute chart?
Should you use MACD with RSI?
What does a shrinking MACD histogram mean?
Disclaimer
Article Sources
- Chong and Ng (2008), Technical analysis and the London stock exchange: testing the MACD and RSI rules using the FT30, Applied Economics Letters - Using 60 years of monthly FT30 data, MACD and RSI rules generated returns higher than buy-and-hold in most cases.doi.org
- Chong, Ng and Liew (2014), Revisiting the Performance of MACD and RSI Oscillators, Journal of Risk and Financial Management - On daily data in five other stock markets, significant excess returns appeared in Italy and Canada but not consistently across markets.doi.org
- Park and Irwin (2007), What Do We Know About the Profitability of Technical Analysis?, Journal of Economic Surveys - Many reported technical trading profits suffer from data snooping, ex-post rule selection and optimistic cost assumptions.doi.org
- Investor.gov: Stop order - A stop order becomes a market order once the stop price is reached, so the fill can differ from the stop price in fast markets.investor.gov






