MACD Indicator Signals and Formula
2837 reads · Last updated: March 24, 2026
Moving average convergence/divergence (MACD, or MAC-D) is a trend-following momentum indicator that shows the relationship between two exponential moving averages (EMAs) of a security’s price. The MACD line is calculated by subtracting the 26-period EMA from the 12-period EMA.The result of that calculation is the MACD line. A nine-day EMA of the MACD line is called the signal line, which is then plotted on top of the MACD line, which can function as a trigger for buy or sell signals. Traders may buy the security when the MACD line crosses above the signal line and sell—or short—the security when the MACD line crosses below the signal line. MACD indicators can be interpreted in several ways, but the more common methods are crossovers, divergences, and rapid rises/falls.
Core Description
- Moving Average Convergence Divergence (MACD) is a trend-following momentum indicator built from the relationship between 2 exponential moving averages (EMAs), helping you assess whether price momentum is strengthening or fading.
- The indicator is typically interpreted through the MACD line, the signal line, and the histogram, with practical focus on crossovers, the zero line, and divergences.
- MACD is generally more useful as a confirmation framework, used alongside market context and risk rules, rather than as a standalone “buy or sell” trigger.
Definition and Background
Moving Average Convergence Divergence (MACD) is a widely used technical indicator designed to summarize both trend direction and momentum. It does not attempt to explain why prices move. Instead, it condenses recent price history into a structured view of whether short-term movement is outperforming or underperforming a longer-term baseline.
What MACD measures (in plain language)
- If the shorter-term EMA moves above the longer-term EMA, bullish momentum is often building.
- If the shorter-term EMA moves below the longer-term EMA, bearish momentum is often building.
- If the distance between the 2 EMAs narrows, momentum is often cooling, even if price remains in a trend.
A brief history
MACD was developed in the late 1970s by Gerald Appel. Later, Thomas Aspray helped popularize the signal line and the histogram, which made changes in momentum easier to visualize. As charting software matured, the standard settings (12, 26, 9) became common defaults across platforms, which is why many investors can discuss MACD signals using shared assumptions.
Where MACD is used
MACD is used across equities, ETFs, FX, and commodities. In professional workflows, it often appears as:
- A screening input to detect regime shifts (for example, a trend turning from negative to positive) across many tickers.
- A supporting exhibit in research notes to confirm whether a narrative about “improving momentum” aligns with observed price behavior.
- A timing and exposure tool for active traders who need a consistent method to describe momentum changes.
Calculation Methods and Applications
MACD is built from EMAs, and most platforms compute it from closing prices by default. The standard construction has 3 parts.
Core formulas (standard settings)
\[\text{MACD Line} = \text{EMA}(12) - \text{EMA}(26)\]
\[\text{Signal Line} = \text{EMA}(9)\ \text{of MACD Line}\]
\[\text{Histogram} = \text{MACD Line} - \text{Signal Line}\]
Components and what they do
| Component | Standard Setting | Practical Meaning |
|---|---|---|
| Fast EMA | 12 periods | Reacts faster to new price information |
| Slow EMA | 26 periods | Smooths noise and serves as the baseline trend |
| Signal EMA | 9 periods | Smooths the MACD line to highlight turning points |
| Histogram | Difference | Visualizes momentum strengthening or weakening |
How to interpret the 3 most common MACD “signals”
Crossovers (MACD line vs. signal line)
- Bullish crossover: the MACD line crosses above the signal line. This is often interpreted as momentum turning upward.
- Bearish crossover: the MACD line crosses below the signal line. This is often interpreted as momentum turning downward.
Crossovers can occur frequently in sideways markets. As a result, many traders treat crossovers as alerts and seek additional confirmation (for example, trend context, price structure, or volatility filters).
Zero line (MACD line vs. 0)
- MACD above 0 implies EMA(12) is above EMA(26), often aligning with a bullish regime.
- MACD below 0 implies EMA(12) is below EMA(26), often aligning with a bearish regime.
Zero-line shifts are typically slower than signal-line crossovers, but they can help filter noise.
Divergence (price vs. MACD behavior)
- Bearish divergence: price makes a higher high while MACD makes a lower high, which may indicate weakening momentum.
- Bullish divergence: price makes a lower low while MACD makes a higher low, which may indicate fading selling pressure.
Divergence is typically best treated as a risk flag, not a reliable reversal trigger.
How institutions and active desks apply MACD
- Asset managers: use MACD to categorize a universe into “improving” versus “deteriorating” momentum, then manage partial entries and exits under risk limits (for example, tracking error, volatility budgets, and mandate constraints).
- Analysts: reference MACD to cross-check whether a stated trend is consistent with market behavior, especially when discussing momentum-driven rotations.
- Market makers and active traders: monitor acceleration and deceleration (often via the histogram) to adjust exposure or hedging intensity.
Comparison, Advantages, and Common Misconceptions
MACD sits between pure trend tools and bounded oscillators. It is not inherently “better” than other indicators. It emphasizes different aspects of price behavior.
MACD vs. moving-average crossovers
A simple moving-average system compares 2 averages of price (for example, a 50-day vs. a 200-day average). MACD also compares 2 EMAs, but it additionally includes:
- a signal line (an EMA of the MACD line) for standardized crossover timing, and
- a histogram to visualize momentum expansion and contraction.
This structure often makes MACD more sensitive than long moving-average crossovers, while still remaining trend-oriented.
MACD vs. RSI (and other oscillators)
- MACD: highlights trend and momentum through EMA separation and is not bounded.
- RSI and Stochastic: are bounded (often 0 to 100) and are frequently used for overbought and oversold discussions.
In many workflows, RSI is referenced more in range-bound conditions, while MACD is emphasized more in trending conditions. Using both can reduce overconfidence, but it can also delay decisions when signals conflict.
Advantages
- Clarity: compresses complex price action into a structured view of trend and momentum.
- Versatility: applies across timeframes and asset classes with consistent logic.
- Histogram insight: helps highlight momentum acceleration or decay before it becomes obvious in price.
Limitations
- Lagging by design: EMAs are derived from past prices. MACD does not predict news, fundamentals, or future price outcomes.
- Whipsaws in ranges: crossovers may flip repeatedly in sideways markets, which can increase transaction costs and reduce signal quality.
- Parameter sensitivity: changing (12, 26, 9) can materially alter signal frequency, which can reduce comparability across instruments or time periods.
Common misconceptions to avoid
“MACD predicts the next move”
MACD describes how recent price action behaves relative to a baseline. It is a measurement tool, not a forecasting model.
“Divergence always means reversal”
Divergences can persist for extended periods during strong trends. Treat divergence as a warning to tighten process discipline, not as an automatic exit.
“The histogram is a separate indicator”
The histogram is the difference between the MACD line and the signal line. It is best viewed as a visualization of momentum expansion or decay.
“Default settings fit everything”
(12, 26, 9) is widely used, but different volatility regimes and timeframes can produce different behavior. If you adjust settings, do so consistently and document the rationale. Otherwise, it becomes difficult to evaluate what worked and why.
Practical Guide
MACD tends to be more useful when applied through a repeatable routine. The goal is not to identify exact turning points, but to improve decision consistency.
A practical reading sequence
- Identify regime with the zero line
- MACD above 0 suggests a bullish bias, while MACD below 0 suggests a bearish bias.
- Use the signal-line crossover as a timing cue
- Treat the crossover as an alert that momentum may be shifting.
- Check the histogram for acceleration or decay
- Expanding histogram bars often indicate strengthening momentum, while shrinking bars often indicate fading momentum.
- Confirm with price structure
- Look for breakouts, failed breakdowns, higher highs and higher lows, or support and resistance context.
- Apply risk rules first, interpretation second
- Define position sizing, invalidation levels, and exit behavior before relying on any indicator signal.
Entry and exit thinking without treating MACD as a command
MACD can support decision-making in a structured way:
- If the market is in a bullish regime (MACD above 0), a bullish crossover may support adding exposure if price action confirms.
- If MACD is below 0, bullish crossovers may be shorter-lived. Some traders therefore require stronger confirmation, or treat such signals as countertrend setups with tighter risk controls.
This is not investment advice. It is an example of how to structure interpretation.
Case study (hypothetical example, not investment advice)
The following uses a hypothetical ETF (“ABC ETF”) to illustrate how MACD may be incorporated into a rules-based review process.
Setup
- Timeframe: daily candles
- MACD settings: (12, 26, 9)
- Rule framework:
- Regime filter: only consider bullish setups when the MACD line is above 0
- Timing: bullish crossover (MACD line crosses above the signal line)
- Momentum confirmation: histogram turns from negative to positive, or shows 3 consecutive increases
- Risk plan: predefined exit if price closes below a recent swing low (an example risk anchor), and position sizing capped to a fixed percentage of a portfolio risk budget
What happens (illustrative numbers)
- Day 0: ABC ETF closes at $100. MACD line is slightly below 0, and the histogram is negative.
- Day 8: price rises to $104. MACD line moves above 0 for the first time in several weeks (a potential regime improvement).
- Day 12: MACD line crosses above the signal line (bullish crossover). The histogram shifts from slightly negative to slightly positive.
- Day 20: price reaches $110. Histogram bars expand for several sessions, indicating momentum strengthening rather than stalling.
- Day 28: price trades around $111 to $112, but the histogram begins shrinking for about a week, indicating momentum decay even as price remains flat to slightly higher. A process-driven approach might consider reducing exposure or tightening exits, rather than waiting for a more dramatic signal.
What this teaches
- The zero line can help avoid treating early crossovers as high-confidence signals in a weaker regime.
- The histogram can provide a practical view of acceleration (expanding bars) and later decay (shrinking bars).
- The primary improvement comes from risk anchors and consistency, rather than attempting to time a peak.
Practical checklist (repeatable, beginner-friendly)
- Are conditions trending, or is the market in a choppy range (where MACD often generates more noise)?
- Is MACD above or below 0?
- Did a crossover occur near a meaningful price level (for example, a breakout level, support, or resistance)?
- Is the histogram expanding (momentum building) or shrinking (momentum fading)?
- What would invalidate the idea, and what actions will be taken if that occurs?
Resources for Learning and Improvement
Core explanations and quick references
- Investopedia: MACD definitions, typical signals, and common pitfalls.
- CFA Institute curriculum (technical analysis sections): terminology, context, and risk considerations.
Deeper technical analysis foundation
- John J. Murphy, Technical Analysis of the Financial Markets: trend and momentum structure, indicator interpretation.
- Perry J. Kaufman, Trading Systems and Methods: indicator design, evaluation, and the importance of testing.
Skill-building suggestions
- Practice on multiple timeframes (for example, weekly for regime, daily for timing) to observe how MACD behavior changes with timeframe.
- Keep a simple trading journal template: signal type (crossover, zero-line, or divergence), market regime, confirmation used, and outcome. Over time, this can clarify when MACD appears helpful or unhelpful.
FAQs
What is Moving Average Convergence Divergence (MACD)?
Moving Average Convergence Divergence (MACD) is a trend-following momentum indicator that compares 2 exponential moving averages to summarize whether short-term momentum is strengthening or weakening relative to a longer-term baseline.
How is the MACD line calculated?
The MACD line is computed as EMA(12) minus EMA(26), typically using closing prices. Positive readings suggest the faster EMA is above the slower EMA, while negative readings suggest the opposite.
What is the signal line used for?
The signal line is usually a 9-period EMA of the MACD line. It smooths the MACD line so that crossovers can be interpreted as potential momentum shifts rather than reactions to small fluctuations.
What does the MACD histogram represent?
The histogram is the difference between the MACD line and the signal line. Expanding bars commonly indicate strengthening momentum, while shrinking bars commonly indicate fading momentum.
What does a crossover mean, and why can it fail?
A bullish crossover occurs when MACD crosses above the signal line, while a bearish crossover occurs when it crosses below. Crossovers can fail frequently in sideways markets because price oscillates without sustaining a trend, which can produce repeated whipsaws.
What is divergence and how should it be used?
Divergence occurs when price makes a new high or low but MACD does not confirm it. It is typically best treated as a warning sign that momentum may be weakening, not as a precise timing signal.
Is MACD better for trending markets or ranging markets?
MACD is generally more effective in trending conditions. In range-bound markets, crossovers can become noisy and less reliable without additional filters.
Should the standard (12, 26, 9) settings always be used?
They are common and useful for comparability, but they are not universal. If parameters are changed, keep them consistent for the instrument and timeframe being analyzed, and evaluate results over a meaningful sample.
Can MACD be used alone?
MACD can be plotted alone, but decision-making often improves when it is used as confirmation alongside price structure and risk management rules.
Conclusion
Moving Average Convergence Divergence (MACD) remains widely used because it compresses trend and momentum into a repeatable visual: the MACD line, the signal line, and the histogram. When used carefully, MACD can help describe regime shifts, momentum acceleration, and momentum decay in a consistent way.
Its usefulness generally increases when treated as a confirmation tool, anchored to the zero line, interpreted through crossovers and histogram behavior, and checked against price structure. Its limitations are more visible in choppy ranges where whipsaws are common. For many users, the most reliable improvement comes from process discipline, including consistent settings, clear confirmation criteria, and predefined risk controls, rather than expecting MACD to predict market outcomes.
