In one six-month stretch of IBM charted by StockCharts, the MACD produced eight signal line crossovers, four up and four down. The page's own verdict: "There were some good signals and some bad signals."
That is the problem this article is about. The MACD crossover trading strategy is easy to spot and easy to over-trade, so the work sits in the filters around the cross rather than in the cross itself.
This article uses the standard 12, 26 and 9 settings, a 50-day EMA trend filter, a 4% stop and a 2.5R target. Those are parameters, not findings.
What the MACD crossover trading strategy uses
Gerald Appel developed the MACD in the late seventies. Three lines come out of it, and each one is defined by the two before it:
- MACD line. The 12-day exponential moving average of closing prices, less the 26-day EMA.
- Signal line. A nine-day EMA of the MACD line.
- Histogram. The difference between the MACD line and the signal line.
StockCharts states the standard configuration plainly: "The values of 12, 26, and 9 are the typical settings used with the MACD, though other values can be substituted depending on your trading style and goals."
A bullish signal line crossover is the MACD line turning up through the signal line. StockCharts calls these "the most common MACD signals". The strategy below takes long trades from that cross, and only in a stock whose price is above its 50-day EMA.
One limit worth stating up front. The MACD has no ceiling or floor, so it cannot mark overbought and oversold the way a bounded oscillator does. In the source's words: "Because the MACD is unbounded, it is not particularly useful for identifying overbought and oversold levels."
What the cross measures
The MACD line is positive when the 12-day EMA sits above the 26-day EMA, and it grows as the gap between them widens. Positive and rising means the shorter average is pulling away from the longer one.
The signal line is a nine-day average of that figure, so it lags it. A cross means the current MACD reading has moved above its own recent average.
Two of these three are the same measurement. The histogram is the MACD line minus the signal line, so it is "positive when the MACD line is above its signal line and negative when the MACD line is below its signal line". A bullish cross and a histogram above zero are one condition, not two. Treating them as separate filters double-counts the same fact.
That matters for the rules below. Use the histogram as a check that the cross is still in force on the day you act, not as independent evidence.
Entry rules for a MACD crossover
Rule 1: a bullish signal line crossover. The MACD line closes above the signal line. This is the condition that starts the check, not the order.
Rule 2: the histogram is above zero on the day you enter. If you act two days after the cross, this is what tells you the cross has not already reversed. It confirms the state, and it is the same measurement as rule 1 rather than a second opinion.
Rule 3: price above the 50-day EMA. This is the rule that removes trades. Take a bullish cross in a stock trading below its 50-day EMA and you are buying a momentum signal inside a decline. StockCharts sets out the caution that applies here. Crossovers "can last a few days or a few weeks, depending on the strength of the move". And "due diligence is required before relying on these common signals".
Say the cross prints at $180 while the 50-day EMA sits at $185. Rule 3 fails and the setup is skipped, whatever the histogram says.
Exit rules and targets
Two exits, and they can fire in either order.
The technical exit. The MACD line closes back below the signal line. The condition that put you in has reversed, so the trade is over on its own terms.
The stop. A hard 4% below the entry price. Technical exits lag by construction, since every line in the MACD is an average, and a 4% stop caps what that lag costs.
The target. This article uses 2.5R, so a 4% stop implies a 2.5 x 4% = 10% move. At two and a half units of reward per unit of risk, the breakeven win rate is 1 / (1 + 2.5) = 28.6%. Win fewer than that share of trades at this ratio and you lose money; win more and you gain, before costs.
Selling half at the target and holding the rest until the technical exit changes the arithmetic rather than improving it. The realised result becomes the average of two outcomes, so half the position can no longer reach 2.5R and the other half can exceed it.
Risk and position size
Fix the risk first and let the share count follow.
On a $50,000 account at 2% risk, the amount at risk is 0.02 x $50,000 = $1,000. With a 4% stop, the risk per share is 0.04 x the entry price, so the position value is $1,000 / 0.04 = $25,000 regardless of the share price. That is half the account in one position.
The tighter the stop, the larger that number gets. A 2% stop on the same $1,000 of risk puts $50,000 into one stock, which is the whole account. Check the position value, not only the risk figure.
A worked MACD crossover example
This example is hypothetical. The stock, the prices and the outcome are invented to show the arithmetic.
A $20,000 account, 2% risk, so $400 at risk. The stock trades at $85.00, above its 50-day EMA at $81.00. The MACD line closes above the signal line and the histogram prints above zero.
- Stop, 4% below the entry: 85.00 x 0.96 = $81.60
- Risk per share: 85.00 - 81.60 = $3.40
- Share count: $400 / $3.40 = 117 shares
- Position value: 117 x $85.00 = $9,945, or 49.7% of the account
- The 2.5R target: 85.00 + (2.5 x 3.40) = $93.50, a 10.0% move
If price reaches $93.50, the position gains 117 x $8.50 = $995, which is 2.49R on $400 of risk. If the MACD instead crosses back down at $83.00 before the target, the exit is worth 117 x -$2.00 = -$234, or -0.59R. Both outcomes are written before the order goes in.
Tracking MACD crossover trades in Swingfolio
Swingfolio carries this setup as a template. On the Strategies page, the "Import from Library" button opens a sheet titled "Strategy Library", and one entry is named "MACD Crossover".
Hover a row and press Preview, and the modal shows what importing creates. Entry Rules (3): "MACD Line crosses above Signal Line", "MACD Histogram is above 0" and "Price is above 50-day EMA", the last carrying an "Optional" badge. Exit Rules (2): "MACD Line crosses below Signal Line" and "Price hits stop loss". Under Risk Management: Stop Loss 4%, Target R-Multiple 2.5R and Position Size 2%.
When you log a trade, a "Strategy" selector assigns it to that strategy. Opening the Pre-Trade Checklist further down the form shows that strategy's entry rules as a checklist. One tick box per rule. Skip the 50-day EMA filter and the record says so.
The same form shows Exp. Risk, Exp. Reward, R:R Ratio and Port. Risk, with a warning reading "Risk exceeds 5% of portfolio value" once the trade crosses that line. It does not size the trade for you. The position size calculator does that: give it an entry price, a stop price, an account value and a risk percentage, and it prints a share count under "Your Position Size".
On the analytics page, "P&L by Setup Type" groups closed trades by the strategy attached to them and charts win rate and profit factor for each. "Profit Factor by Compliance" splits those trades into Compliant and Non-Compliant bars, which is what makes the checklist worth ticking. A separate "Sector P&L" card breaks results down by sector, across your whole account rather than per strategy.
The Reviews tab under AI Insights generates a written review when you press "Generate Review", over a period you choose from Weekly, Monthly, Quarterly, 6 Months and Yearly. Each review prints P&L, Win Rate and Avg R for the period, then Summary, Best Trade, Worst Trade and Action Items. Nothing runs on a schedule. You ask for it.
Common mistakes with the MACD crossover
Taking crosses below the 50-day EMA. The cross looks identical. The trend filter is the whole difference between a momentum entry and a bounce inside a decline.
Entering days late. A cross at $85.00 that you buy at $91.80 leaves the 4% stop at $88.13. The risk per share rises from $3.40 to $3.67, and the distance to a $93.50 target falls from $8.50 to $1.70. The setup has gone from 2.5R to 0.46R without a single rule changing.
Ignoring earnings dates. Volatility in the security raises the number of crossovers, and a gap through your stop fills at the open rather than at the price you set. StockCharts flags the same thing in its RSI(2) write-up, noting that gaps "can wreak havoc on trades" and that three of the gaps in its example "occurred during earnings season". Check the reporting date before the order, not after.
Open the last five trades you took from a MACD cross and check where the 50-day EMA sat on each entry day. If the filter was missing on any of them, import the MACD Crossover template so the next one is logged against a rule you either ticked or did not. Start the 30-day trial.
