MACD Indicator Explained: Formula, Signals and Limitations
Updated: 6 days ago
Learn how the MACD indicator is calculated, how to interpret crossovers, the zero line and histogram, and why every signal needs market context and risk control.
Introduction
Moving Average Convergence Divergence, usually shortened to MACD, is a trend and momentum indicator built from exponential moving averages. It helps traders visualise whether shorter-term price momentum is strengthening or weakening relative to a longer-term trend.
MACD does not predict the future and it is not normally treated as an overbought or oversold indicator. Its values are unbounded, so a reading cannot be compared with fixed levels such as the 70 and 30 thresholds commonly associated with RSI.
Key Takeaways
The standard MACD setting is 12, 26 and 9: a 12-period EMA, a 26-period EMA and a 9-period signal line.
The MACD line measures the difference between the fast and slow moving averages.
The histogram measures the distance between the MACD line and the signal line—not overbought or oversold conditions.
Crossovers can highlight changing momentum, but signals often arrive after price has already moved.
MACD tends to be more useful in persistent trends and can whipsaw repeatedly in noisy or range-bound markets.
Position sizing and exit rules matter more than any individual indicator signal.
What Is the MACD Indicator?
MACD was developed by Gerald Appel in the 1970s. It compares two moving averages of price and plots their difference around a zero line. A smoothed average of that difference creates the signal line, while the histogram makes the gap between the two lines easier to see.
Because it is derived from past prices, MACD is a lagging indicator. That does not make it useless: lag can help filter noise, but it means a crossover should be treated as confirmation of changing momentum rather than an exact turning-point forecast.
How MACD Is Calculated
MACD line = 12-period EMA − 26-period EMA
Signal line = 9-period EMA of the MACD line
Histogram = MACD line − signal line
When the 12-period EMA is above the 26-period EMA, the MACD line is positive. When it is below, MACD is negative. The distance from zero reflects the separation between the two averages, not a universal measure of whether price is “too high” or “too low”.
The standard 12-26-9 parameters can be changed, but faster settings produce more signals and more noise, while slower settings respond later. Any alternative should be tested on the instrument, timeframe and execution assumptions you intend to use.

How to Read MACD Signals
MACD and Signal-Line Crossovers
A bullish crossover occurs when the MACD line moves above its signal line; a bearish crossover occurs when it moves below. The crossover shows a change in the relationship between recent and longer-term momentum. It is not automatically a buy or sell instruction.
The Zero Line
A move above zero means the fast EMA is above the slow EMA. A move below zero means the opposite. Zero-line crossings are generally slower than signal-line crossings and may be used as broader trend confirmation.
The MACD Histogram
Positive histogram bars mean MACD is above its signal line; negative bars mean it is below. Expanding bars show the distance is increasing, while contracting bars show the two lines are converging. The histogram describes momentum change, not fixed overbought or oversold zones.
MACD Divergence
Divergence occurs when price and MACD move differently—for example, price reaches a higher high while MACD forms a lower high. This can indicate weakening momentum, but divergence may persist for a long time and should not be used as a stand-alone reversal signal.
Applying MACD to Stocks
MACD can be calculated on intraday, daily, weekly or monthly bars. The meaning of one “period” changes with the chart: a 12-period EMA on a weekly chart represents 12 weeks, while the same setting on a 30-minute chart represents 12 half-hour bars.
Gareth’s own process has historically focused on weekly MACD within a broader trend framework, using the 20-week moving average as contextual evidence. This is a personal research choice, not a universal setting.

A practical approach is to define the higher-timeframe trend first, then evaluate lower-timeframe MACD signals in that context. For example, a trader might study bullish crossovers only when price is above a rising long-term moving average. That filter reduces the number of trades but does not guarantee better results.
Where MACD Works—and Where It Struggles
MACD is usually easier to interpret when a market is trending persistently. The moving averages separate, crossovers are less frequent and momentum can remain aligned with price for longer.
In an erratic trading range, the fast and slow averages repeatedly converge and cross. This creates whipsaws: several apparently valid signals followed by small reversals and losses. No parameter choice removes this problem completely.
Trending market: MACD may help a trader stay aligned with directional momentum.
Range-bound market: frequent crossovers can generate false starts and excessive turnover.
Sharp reversal: the indicator may react only after a significant price move.
Low-liquidity instrument: gaps and poor fills can overwhelm the apparent signal quality.
Common MACD Mistakes
Treating every crossover as a complete trading strategy.
Calling positive histogram values “overbought” and negative values “oversold”.
Changing parameters until the historical chart looks perfect.
Ignoring the broader trend, volatility and market regime.
Entering before the bar closes and then evaluating a signal that later disappears.
Using position sizes that make a normal losing streak unacceptable.
Indicator choice cannot replace a defined risk-management and position-sizing process. A useful signal still needs an entry, invalidation point, maximum account risk and exit rule.
A Practical MACD Testing Framework
Choose the instrument, timeframe and trading direction before reviewing results.
Define the exact signal: crossover, zero-line filter, histogram change or divergence.
State the trend filter, entry timing, exit and stop-loss rules.
Include commissions, spreads, slippage and gap risk.
Test across different market regimes and hold back unseen data.
Compare expectancy, drawdown and trade frequency—not only total return.
Forward-test before committing meaningful capital.
The MarketInOut backtesting review explains how to challenge strategy-test results, while the Trading Strategy Library and Backtesting Hub provides a broader evaluation framework.

Frequently Asked Questions
What are the standard MACD settings?
The common default is 12-26-9: a 12-period fast EMA, a 26-period slow EMA and a 9-period EMA of the MACD line.
Is MACD a leading or lagging indicator?
It is generally considered lagging because it is calculated from moving averages of historical prices. Divergence and histogram contraction may highlight changing momentum earlier, but they still do not predict a reversal with certainty.
Does MACD show overbought and oversold levels?
Not in the usual fixed-threshold sense. MACD is unbounded, so its readings should be interpreted relative to the instrument’s own history and market context.
Which timeframe is best for MACD?
There is no universally best timeframe. It must match the holding period, data quality and execution process. Shorter charts react faster but usually create more noise and trading costs.
Can MACD be used alone?
It can define a rule, but a complete strategy still needs market selection, risk limits, entry timing, exits and evidence from testing. Combining several similar indicators does not necessarily add independent confirmation.
Explore a Complete Trading Process
The Financial Wisdom Trading Blueprint connects company quality, trend and momentum evidence, entries, position sizing and trade management in one repeatable weekly process.
Explore the Financial Wisdom Trading Blueprint to see how indicator evidence fits within the wider process.
Further Reading
References and Further Reading
Educational information only. Technical indicators can produce false signals, and trading and investing involve risk, including the possible loss of capital. Examples are illustrative, not guarantees of future performance, and nothing in this article is personalised financial advice.
About the Author
Gareth, founder of Financial Wisdom, has more than 30 years of personal trading experience. He competes in the United States Investing Championship, creates award-winning trading content and has been featured in Technical Analysis of Stocks & Commodities.





Does the macd work in a choppy market like we are now?
Great article Gareth. Especially the last paragraph, knowing how you played Bitcoin. I haven’t really played around with the time frame on MACD but will give it a go and do some back testing. Thanks for the post!