Trend followingMACD Trend Following
Buy when the MACD line crosses up through its signal line in an uptrend and ride the momentum until the histogram rolls over — a smoothed, momentum-aware take on the moving-average cross.
Swing tradingIntermediate1h - daily
The idea
MACD (Moving Average Convergence Divergence) turns the moving-average cross into a momentum gauge. It plots the distance between a 12 and 26 period EMA as a line, then smooths that line with a 9 period EMA to form a signal line, drawing the gap between the two as a histogram. When the MACD line crosses above its signal, short-term momentum is accelerating past the medium-term, which historically marks the start of a fresh up-leg. Because it works on the difference of two averages rather than raw price, it filters some noise while still turning before a simple long average would. The trade-off is the lag every average-based tool carries: MACD confirms a trend rather than predicting it, and it whipsaws when price goes sideways. Used as a trend-following trigger with a directional filter, it captures the meat of sustained moves.
The setup
Add MACD with its standard 12, 26, 9 settings in a pane beneath price and plot a 50 EMA on price itself as a trend filter. Watch two things: the zero line, which separates bullish momentum (MACD above zero) from bearish (below), and the signal-line crossovers that trigger entries. The strongest longs come when the MACD line crosses up while already above zero and price sits above a rising 50 EMA — momentum and trend agreeing. When the MACD is coiled flat around zero and the histogram is barely breathing, the market is ranging and signals should be ignored. The setup arms as the histogram stops falling and starts to build back toward the zero line.
Entry
Go long on the bar that closes with the MACD line above its signal line, or wait for the next open to avoid an intrabar cross that unwinds. Purists demand the cross happen above the zero line so you are only buying confirmed positive momentum, which cuts signal count but improves quality. A lower-risk variant waits for the first pullback after the cross — price dips to the 50 EMA while the histogram stays positive — and buys the bounce for a tighter stop. The short side mirrors exactly: a MACD cross below signal, below zero, under a falling average. Confirmation from rising volume on the breakout bar adds conviction.
Exit and targets
The mechanical exit is the opposite cross — close when the MACD line drops back below its signal. Because that lags, many traders exit earlier on histogram behaviour: when the histogram peaks and contracts for two or three bars, momentum is stalling even before the lines cross. There is usually no fixed target in a trend-following frame; you let the trend run and let the cross end it, though banking partial profit at a prior high or measured move is reasonable. Whatever you pick, define it in advance so the lagging signal cannot tempt discretionary exits. Trailing under each higher-low is a common way to protect an extended winner.
Risk management
Place the initial stop below the swing low that preceded entry or just under the 50 EMA, then size so that distance is a fixed small fraction of the account — one percent is standard. MACD clusters losers in choppy phases, so expect strings of small whipsaw losses and make sure no single one dents the account. The edge lives entirely in letting the occasional large winner pay for the many small losers, so cutting winners short to feel safe quietly kills the strategy. Never widen a stop to dodge being taken out. Because the entry lags, keep the stop technical and objective rather than hopeful.
Best timeframes and markets
MACD trend following works best where trends persist — liquid trending stocks, index ETFs, futures, and major forex pairs — and struggles on rangebound, mean-reverting names. On the 1-hour to daily charts it captures multi-day swings with manageable noise; drop below the hourly and the crosses multiply into whipsaws. The higher the timeframe, the cleaner and rarer the signal. Keep the 12, 26, 9 defaults rather than curve-fitting exotic settings to past data, because the standard parameters are what most participants watch. Align every entry with the higher-timeframe direction.
Common variations
The most useful variation is the zero-line cross itself as a slower, higher-conviction trigger, taken instead of or alongside the signal cross. MACD divergence — price making a new high while the MACD makes a lower high — is a popular early warning of exhaustion, though it is a caution flag, not a stand-alone entry. Some traders swap the EMAs for different periods to speed up or slow down the line, or read the histogram alone as a momentum oscillator. Others combine MACD with an ADX filter so crosses only count while a trend is actually strong. All variations rest on the same core: a faster momentum measure overtaking a slower one.
A worked example
A stock pulls back to its rising 50 EMA at 78 and stabilises while the MACD histogram, which had gone slightly negative, starts building back toward zero. The MACD line then crosses up through its signal just below the zero line as price closes at 79.40, above the EMA — trend and momentum aligning. You buy 79.60 and set the stop at 77.80 under the pullback low, risking 1.80 per share sized to 1% of the account. Over the next two weeks momentum expands, the histogram peaks, and you trail beneath each higher-low; the MACD finally crosses back below signal at 86.20, closing the trade. The roughly 3.7-to-1 winner absorbs a couple of earlier small whipsaw losses.