The MACD indicator is one of the most widely used technical tools in trading. It measures momentum, identifies trend direction, and signals potential reversals — all in one indicator.
If you already understand the RSI indicator, MACD is the natural next step. Where RSI measures overbought and oversold conditions on a fixed scale, MACD measures the relationship between two moving averages — giving you a different lens on momentum and trend strength.
This guide explains exactly how MACD works, how to read every component, which settings to use, and practical strategies you can apply starting today.
What Is the MACD Indicator?
The Moving Average Convergence Divergence (MACD) is a momentum oscillator that tracks the relationship between two exponential moving averages (EMAs) of a stock's price.
Developed by: Gerald Appel in the late 1970s Default settings: 12-period EMA, 26-period EMA, 9-period signal line What it shows: Momentum direction, speed of change, and potential turning points
Key characteristics:
- Unbounded — no fixed overbought/oversold levels like RSI
- Shows both trend direction and momentum strength
- Works on any timeframe and any liquid instrument
- Best suited for trending markets (less reliable in choppy, sideways conditions)
How MACD Is Calculated
Understanding the math helps you interpret the signals correctly. You don't need to calculate it manually — your platform does it — but knowing what drives the numbers matters.
Step 1: Calculate the Two EMAs
code-highlight12-period EMA = Exponential moving average of the last 12 closing prices 26-period EMA = Exponential moving average of the last 26 closing prices
The 12-period EMA reacts faster to recent price changes. The 26-period EMA is slower and tracks the longer trend.
Step 2: Calculate the MACD Line
code-highlightMACD Line = 12-period EMA − 26-period EMA
When the fast EMA (12) is above the slow EMA (26), the MACD line is positive — the stock has bullish momentum. When the fast EMA is below the slow EMA, the MACD line is negative — bearish momentum.
Step 3: Calculate the Signal Line
code-highlightSignal Line = 9-period EMA of the MACD Line
The signal line smooths out the MACD line. Crossovers between the MACD line and signal line are the primary trading signals.
Step 4: Calculate the Histogram
code-highlightMACD Histogram = MACD Line − Signal Line
The histogram visualizes the gap between the MACD line and signal line. Growing histogram bars mean momentum is accelerating. Shrinking bars mean momentum is fading — often the earliest warning of a trend change.
The Three Components of MACD
Every MACD display shows three elements. Learning to read each one separately makes you a much sharper reader of the indicator.
1. The MACD Line (Fast Line)
The MACD line is the core of the indicator. It crosses above zero when the 12-period EMA rises above the 26-period EMA, signaling bullish momentum. It crosses below zero when bearish momentum takes over.
| MACD Line Level | Meaning |
|---|---|
| Positive and rising | Bullish momentum strengthening |
| Positive and falling | Bullish momentum weakening |
| Crossing zero upward | Shift to bullish bias |
| Negative and falling | Bearish momentum strengthening |
| Negative and rising | Bearish momentum weakening |
| Crossing zero downward | Shift to bearish bias |
2. The Signal Line (Slow Line)
The signal line follows the MACD line with a slight delay. When the MACD line crosses the signal line, that crossover is the most common MACD trading signal.
- MACD line crosses above signal line → bullish crossover, potential buy
- MACD line crosses below signal line → bearish crossover, potential sell
3. The Histogram
The histogram is the most forward-looking part of MACD. It changes direction before the actual crossover happens.
Reading histogram momentum:
- Bars growing above zero line → bullish momentum accelerating
- Bars shrinking above zero line → bullish momentum fading (watch for crossover)
- Bars growing below zero line → bearish momentum accelerating
- Bars shrinking below zero line → bearish momentum fading (watch for crossover)
Watch the histogram first. When bars start shrinking before a crossover occurs, that early warning gives you time to prepare your entry or exit before the signal confirms.
MACD Crossover Signals: The Core Strategy
MACD crossovers are the most widely used signals. Here is how to read them correctly.
Bullish MACD Crossover
A bullish crossover occurs when the MACD line crosses above the signal line.
What it means: Short-term momentum (12-period EMA) is accelerating faster than the medium-term trend (26-period EMA). Buying pressure is increasing.
Strongest when:
- The crossover occurs below the zero line (in negative territory) — suggests a potential reversal from downtrend
- Accompanied by a volume spike
- Price is also holding above a key support level
Weakest when:
- The crossover occurs far above the zero line (stock may be extended)
- Volume is declining
- The broader market trend is down
Bearish MACD Crossover
A bearish crossover occurs when the MACD line crosses below the signal line.
What it means: Short-term momentum is decelerating. Selling pressure is increasing relative to recent buying.
Strongest when:
- The crossover occurs above the zero line (in positive territory) — suggests a potential reversal from uptrend
- Accompanied by increasing volume
- Price is also at or near a resistance level
Zero Line Crossovers
A separate — and often more significant — signal is when the MACD line itself crosses the zero line.
| Signal | Meaning | Reliability |
|---|---|---|
| MACD crosses above zero | 12-EMA above 26-EMA confirmed | Medium-High |
| MACD crosses below zero | 12-EMA below 26-EMA confirmed | Medium-High |
Zero line crossovers lag signal line crossovers but tend to be more reliable because they require a larger shift in momentum to occur.
macd_crossover_bullishAlert when MACD line crosses above the signal line — potential bullish momentum shift
MACD Divergence: The Reversal Signal
MACD divergence is the most powerful — and most underused — aspect of the indicator. It often warns of reversals before price confirms them.
What Is MACD Divergence?
Divergence occurs when price and MACD move in opposite directions. Price is making a new extreme, but MACD is not confirming it. This disconnect signals that momentum behind the move is weakening.
Bullish Divergence (Potential Bottom)
code-highlightPRICE: Lower Low (price continues falling) MACD: Higher Low (MACD does NOT confirm the new low) Interpretation: Selling momentum is exhausting despite lower prices Signal: Potential reversal upward
How to identify it:
- Price makes a new low
- Draw a line connecting the two MACD lows — the second low is higher than the first
- The divergence line slopes upward while price slopes downward
- Wait for price confirmation before entering
Example setup:
- Stock sells off from $100 to $85 (MACD drops to -2.5)
- Stock continues to $80 (new price low)
- MACD only drops to -1.8 (higher MACD low despite lower price)
- Bullish divergence is present — selling momentum is weakening
Bearish Divergence (Potential Top)
code-highlightPRICE: Higher High (price continues rising) MACD: Lower High (MACD does NOT confirm the new high) Interpretation: Buying momentum is fading despite higher prices Signal: Potential reversal downward
How to identify it:
- Price makes a new high
- Draw a line connecting the two MACD highs — the second high is lower than the first
- The divergence line slopes downward while price slopes upward
- Watch for price to confirm by breaking below recent support
Hidden Divergence (Trend Continuation)
Hidden divergence signals that the existing trend will continue — opposite of regular divergence.
Hidden Bullish Divergence (uptrend continuation):
- Price makes a higher low (uptrend structure intact)
- MACD makes a lower low
- Signal: The pullback is temporary, uptrend likely resumes
Hidden Bearish Divergence (downtrend continuation):
- Price makes a lower high (downtrend structure intact)
- MACD makes a higher high
- Signal: The bounce is temporary, downtrend likely continues
Divergence Trading Rules
- Never trade divergence alone — price must confirm before entering
- Higher timeframe divergence is more reliable — daily chart divergence outweighs hourly
- Divergence can last longer than expected — a stock can diverge for weeks before reversing
- Multiple divergences = stronger signal — two or three consecutive divergences increase conviction
- Combine with support/resistance — divergence at a major level is far more powerful
MACD Settings: Which to Use for Your Trading Style
The default 12, 26, 9 settings are used by the majority of traders. But adjusting them to match your timeframe and style can improve signal quality.
Standard Settings: 12, 26, 9
The default configuration. Works well for:
- Daily chart swing trading
- Position trading
- General market analysis
These settings produce a balanced number of signals — not too many false positives, not too slow to react to real moves.
Faster Settings: 5, 13, 6 or 8, 17, 9
More responsive, more signals, more false signals:
- Suited for day trading and intraday charts (1–15 minute)
- Catches momentum shifts faster
- Requires tighter filters (combine with trend direction)
Slower Settings: 19, 39, 9 or 24, 52, 9
Fewer but higher-quality signals:
- Suited for position traders and investors
- Weekly and monthly chart analysis
- Reduces noise in volatile markets
Settings by Trading Style
| Trading Style | Chart | Recommended Settings |
|---|---|---|
| Scalping | 1–3 min | 5, 13, 6 |
| Day trading | 5–15 min | 8, 17, 9 |
| Swing trading | Daily | 12, 26, 9 (default) |
| Position trading | Daily/Weekly | 12, 26, 9 or 19, 39, 9 |
| Investing | Weekly | 24, 52, 9 |
Changing MACD settings changes the frequency of signals but not their reliability. Faster settings produce more signals — most of which are noise. Stick with the default 12, 26, 9 until you have a specific reason to adjust.
MACD Trading Strategies
Strategy 1: MACD Crossover in Trend Direction
The simplest and most reliable MACD strategy: only take crossover signals in the direction of the larger trend.
Setup (Long):
- Confirm the stock is in an uptrend (above 50-day moving average)
- MACD pulls back toward or below zero
- MACD line crosses back above the signal line
- Enter long on confirmation
Setup (Short):
- Confirm the stock is in a downtrend (below 50-day moving average)
- MACD bounces toward or above zero
- MACD line crosses back below the signal line
- Enter short on confirmation
Why it works: You are trading momentum with the trend, not against it. Counter-trend MACD signals have lower win rates.
Example:
code-highlightAAPL in uptrend, above 50-day MA at $175 MACD pulls back, MACD line crosses below signal line briefly MACD line crosses back above signal line at -0.3 (below zero) Price holds $170 support Entry: $172 Stop: Below $170 support Target: Retest of previous high at $180
Strategy 2: MACD Zero Line Bounce
Use the zero line as a support/resistance level for MACD.
Bullish Setup:
- MACD line dips to or slightly below zero (not deeply negative)
- MACD line bounces off zero and heads back up
- Price is holding above its 20-day moving average
- Enter on the MACD zero line bounce, stop below recent price low
Bearish Setup:
- MACD line rises to or slightly above zero
- MACD line rejects the zero line and heads back down
- Price is below its 20-day moving average
- Enter short on the rejection, stop above recent price high
Why it works: The zero line acts as a neutral reference point. A bounce off zero in an uptrend shows the stock paused its momentum without losing it entirely.
Strategy 3: Histogram Divergence Entry
Use histogram shrinkage as an early warning before the crossover occurs.
Bullish Setup:
- Histogram bars are below zero (bearish territory)
- Bars start getting shorter (closer to zero) — momentum is fading
- Price is near a key support level
- Enter before the full crossover occurs, using histogram shrinkage as early signal
- Confirm with the actual crossover
Risk: Entering before confirmation means you may be early. Size position smaller and add on crossover confirmation.
Strategy 4: MACD + RSI Confluence
Combine MACD with the RSI indicator for higher probability setups.
Bullish Confluence:
- RSI drops to oversold (below 30–35)
- MACD bullish crossover occurs at the same time
- Both signals align = stronger buy setup
Bearish Confluence:
- RSI reaches overbought (above 65–70)
- MACD bearish crossover occurs at the same time
- Both signals align = stronger sell/short setup
Why it works: Two independent indicators pointing to the same direction significantly increases signal reliability. When RSI and MACD both confirm, the setup has passed two separate momentum filters.
See the RSI indicator guide for a full breakdown of how to use RSI alongside MACD.
Strategy 5: MACD Divergence + Support
The highest conviction setup combines MACD divergence with a price structure level.
Bullish Setup:
- Stock forms two price lows — second low is lower (downtrend)
- MACD forms two lows — second MACD low is higher (divergence)
- Both lows occur at or near a recognizable support level (prior swing low, round number, 200-day MA)
- Wait for price to break above the local high between the two lows
- Enter on the breakout, stop below the second price low
Bearish Setup:
- Stock forms two price highs — second high is higher (uptrend)
- MACD forms two highs — second MACD high is lower (divergence)
- Both highs occur near a recognizable resistance level
- Wait for price to break below the local low between the two highs
- Enter short on the breakdown, stop above the second price high
Common MACD Mistakes
Mistake 1: Trading Every Crossover
MACD produces many crossovers, especially in choppy markets. Taking every signal leads to a string of small losses that erode capital before a real trend emerges.
Fix: Only trade crossovers that align with the larger trend direction. Use a 50-day or 200-day moving average as your trend filter.
Mistake 2: Ignoring the Zero Line
Traders focus on signal line crossovers and miss the bigger picture: where the crossover occurs relative to zero matters.
Fix: A bullish crossover below zero (momentum still negative overall) is a different signal than a bullish crossover above zero (momentum already positive). Treat them differently.
Mistake 3: Using MACD in Sideways Markets
MACD is a trend and momentum indicator. In range-bound, sideways markets, it whipsaws and produces constant false crossovers.
Fix: Check price structure first. If the stock has been trading in a tight range for 4–6 weeks, step back until a trend establishes. Use a different tool (like RSI mean reversion) for range-bound conditions.
Mistake 4: Treating Divergence as an Immediate Entry
MACD divergence can persist for weeks or even months before a reversal actually occurs. Entering on divergence alone, without price confirmation, often leads to early entries in stocks that keep trending against you.
Fix: Always wait for price confirmation before acting on divergence. A break above a local high (for bullish divergence) or below a local low (for bearish divergence) is your confirmation.
Mistake 5: Using MACD in Isolation
Like every indicator, MACD works best as one tool in a system — not as a standalone decision-maker.
Fix: Combine MACD with at minimum one other filter: trend direction (moving average), price structure (support/resistance), or a second indicator (RSI, volume).
Mistake 6: Using the Wrong Timeframe Settings
A 12, 26, 9 MACD on a 1-minute chart will fire dozens of signals per day, most of which are noise. The same settings on a weekly chart produce very few signals, almost all of which are significant.
Fix: Match your MACD settings to your trading timeframe. The fewer signals, the more each one matters.
MACD for Different Timeframes
Day Trading (1–15 Minute Charts)
Best approach:
- Use faster settings (8, 17, 9)
- Focus on MACD direction relative to zero, not individual crossovers
- Combine with VWAP and volume analysis
- Avoid trading MACD signals against the daily trend
Key signals:
- MACD crossover in the first 30 minutes carries more weight
- Zero line rejections on pullbacks during strong trends
- Histogram divergence on intraday bases
Swing Trading (Daily Charts)
Best approach:
- Default settings (12, 26, 9) are optimal
- Use MACD as a momentum filter — enter on crossovers, exit when momentum fades
- Histogram divergence on daily chart is a high-quality signal
- Combine with weekly MACD for trend context
Key signals:
- Bullish crossover after a pullback to the 50-day MA
- Bearish divergence at prior highs
- Zero line reclaim after a consolidation period
Position Trading (Weekly Charts)
Best approach:
- Slower settings (19, 39, 9) reduce false signals
- Weekly MACD crossovers signal major trend changes
- Divergence on weekly chart = large-scale reversal warning
- Signals are rare but carry significant weight
Key signals:
- MACD crossing above zero on weekly chart = confirmed new uptrend
- Bearish divergence on weekly at multi-year highs = major distribution warning
Setting MACD Alerts
Watching MACD manually across a watchlist is inefficient. Set alerts to notify you when the signals you care about actually appear.
Useful MACD Alert Types
Crossover alerts:
- Alert when MACD line crosses above the signal line (bullish crossover)
- Alert when MACD line crosses below the signal line (bearish crossover)
- Alert when MACD crosses above zero (momentum turns positive)
- Alert when MACD crosses below zero (momentum turns negative)
Divergence setups:
- Price at new 52-week low + MACD above prior low (manual setup)
- Price at new high + MACD below prior peak reading
Confirmation alerts:
- MACD crossover + RSI below 35 (oversold confluence)
- MACD crossover + price above 50-day MA (trend confirmation)
With Stock Alarm
Set MACD alerts on the stocks in your watchlist so you never miss a crossover on a setup you're tracking. Get notified by push notification, email, or phone call when the signal fires — without watching charts all day.
macd_crossover_bearishAlert when MACD crosses below the signal line during a bearish trend — potential continuation signal
MACD vs RSI: Which to Use?
Both MACD and RSI measure momentum, but in different ways. Understanding the difference helps you use both more effectively.
| Feature | MACD | RSI |
|---|---|---|
| Type | Trend-following momentum | Oscillator (bounded 0–100) |
| Primary use | Crossovers, trend direction | Overbought/oversold, divergence |
| Best market | Trending | Trending or ranging |
| Divergence | Yes — powerful | Yes — powerful |
| Overbought/oversold | No fixed levels | 30/70 standard levels |
| Lag | Higher (based on two MAs) | Lower (based on price change ratio) |
| False signals in ranging | More | Fewer |
When to use each:
- Use MACD to identify trend direction and momentum crossovers
- Use RSI to identify overbought/oversold conditions and potential exhaustion
- Use both together for high-confidence entry and exit signals
The strongest trading setups combine RSI oversold/overbought readings with MACD crossovers in the same direction. When both indicators agree, the probability of the trade working increases meaningfully.
Read the full RSI vs MACD breakdown in our RSI indicator guide.
MACD Quick Reference
Signal Hierarchy
| Signal Type | Reliability | Best When |
|---|---|---|
| Divergence (weekly) | Very High | At major trend reversal points |
| Zero line crossover | High | Confirmed trend change |
| Signal line crossover (with trend) | Medium-High | In established trends |
| Signal line crossover (counter-trend) | Low | Avoid unless with strong confluence |
| Histogram shrinkage alone | Medium | Early warning only, needs confirmation |
MACD Checklist Before Entering a Trade
- What is the current MACD trend direction (above or below zero)?
- Has a crossover just occurred, or is one forming?
- Is there divergence between price and MACD?
- Does the MACD signal align with the price trend (moving averages)?
- Is RSI or another indicator confirming the signal?
- What is the risk-reward if the setup plays out?
Rules of Thumb
- Trend first — Only take MACD crossovers that align with the price trend
- Zero line matters — Where the crossover occurs relative to zero changes its meaning
- Divergence needs confirmation — Never enter on divergence without a price trigger
- Ranging markets destroy MACD — Step back when price is in a defined range
- Combine it — MACD alone is not a trading system
Frequently Asked Questions
What does MACD stand for?
MACD stands for Moving Average Convergence Divergence. It is a momentum indicator that shows the relationship between two exponential moving averages of a stock's price — typically the 12-period and 26-period EMAs. The indicator was developed by Gerald Appel in the late 1970s.
What is a MACD crossover signal?
A MACD crossover occurs when the MACD line crosses above or below the signal line. A bullish crossover (MACD line crosses above the signal line) suggests upward momentum is strengthening. A bearish crossover (MACD line crosses below the signal line) suggests downward momentum is increasing.
What are the best MACD settings?
The standard MACD settings are 12, 26, 9 — these defaults work well for swing traders on daily charts. Day traders often use faster settings like 5, 13, 6 or 8, 17, 9 for more responsive signals.
What does MACD divergence mean?
MACD divergence occurs when price and MACD move in opposite directions. Bullish divergence: price makes a lower low but MACD makes a higher low — suggests selling momentum is weakening. Bearish divergence: price makes a higher high but MACD makes a lower high — suggests buying momentum is fading.
Is MACD a leading or lagging indicator?
MACD is primarily a lagging indicator because it is based on historical moving averages. However, MACD divergence can act as a leading signal, warning of potential reversals before price confirms them.
Related Articles
Deepen your technical analysis skills:
- RSI Indicator Guide — Combine RSI overbought/oversold readings with MACD crossovers for higher-confidence setups
- Moving Averages Explained — Understand the EMAs that MACD is built on
- Volume Analysis Guide — Use volume to confirm MACD signals before entering
- RSI Alerts Trading Guide — Set up RSI alerts alongside your MACD alerts for multi-indicator monitoring
- How to Read Stock Charts — The chart-reading foundation that makes indicators more useful
Get notified when MACD signals fire on your watchlist
Stop watching charts all day. Set MACD crossover alerts in Stock Alarm and get notified by push, email, or phone call the moment a signal appears.
S&P 500 Screener
Filter by metrics, fundamentals
Price Alerts
Never miss a move
35+ Global Markets
Stocks, crypto, futures
AI Analysis
Powered by Claude


