In short: The Moving Average Convergence Divergence, or MACD, is a trend-following momentum indicator built from moving averages. Traders read the relationship between its MACD line, signal line, histogram and zero line. Crossovers and divergence can highlight changes in momentum, but they do not predict price movements or provide reliable instructions on their own.
Key takeaways
- MACD compares a faster moving average with a slower moving average to show shifts in trend momentum.
- The standard inputs are 12, 26 and 9 periods, although the precise signal-line calculation and display can vary by platform.
- Common observations include line crossovers, zero-line crossovers, histogram expansion or contraction, and divergence between price and MACD.
- MACD is based on historical prices, so signals can appear after a move has begun and may reverse quickly in sideways or volatile markets.
- Timeframe, instrument, market conditions, execution costs and risk controls all affect how a MACD-based method behaves.
What is the MACD indicator?
MACD stands for Moving Average Convergence Divergence. It is a mathematical indicator that compares two moving averages of an instrument’s price. Because moving averages are calculated from historical data, MACD is generally classified as a trend-following indicator that can also describe momentum.
“Convergence” means the two moving averages are moving closer together. “Divergence” means they are moving farther apart. That distance changes as recent price momentum strengthens, weakens or changes direction.
MACD can be applied to forex, commodities, indices, shares and share-based CFDs. Its interpretation is broadly similar across markets, but the behaviour of each instrument and timeframe remains different.
Readers who are new to chart terminology can begin with CMS Financial’s guide to technical analysis basics.
How is MACD calculated?
The common default MACD setting is written as 12, 26, 9:
- 12-period EMA: The faster exponential moving average
- 26-period EMA: The slower exponential moving average
- 9-period average: The signal-line input
The core calculation is:
MACD line = 12-period EMA − 26-period EMA
The signal line is an average of the MACD line. The histogram represents the distance between the MACD line and the signal line:
Histogram = MACD line − signal line
An exponential moving average, or EMA, gives more weight to recent prices than older prices. When the faster EMA rises relative to the slower EMA, the MACD value increases. When it falls relative to the slower EMA, the MACD value decreases.
Platform implementations are not always identical. MetaTrader 5 documentation describes its default signal line as a nine-period simple moving average of MACD. Other charting platforms may use a nine-period EMA.
The visual display can also differ. One platform may show two lines and a histogram, while another may render the main MACD values as bars with a signal line. The platform’s settings and calculation notes therefore need to be checked before comparing readings.
What do the MACD line, signal line and histogram show?
Each part of the indicator provides different information.
| MACD element | What it represents | Common observation | Important limitation |
|---|---|---|---|
| MACD line | Difference between the faster and slower moving averages | Direction and rate of change in momentum | It is derived from historical prices |
| Signal line | Smoothed average of the MACD line | Whether MACD is moving above or below its recent average | Crossovers can reverse quickly |
| Histogram | Distance between MACD and signal lines | Whether their separation is expanding or contracting | A smaller bar does not confirm a reversal |
| Zero line | Point where the two underlying averages are equal | Whether the faster average is above or below the slower average | Zero-line signals often occur after price has moved |
The position, direction and distance of these elements matter together. A single histogram bar or brief crossover provides limited context.
How do traders read MACD trading signals?
MACD signals are observations about the indicator’s current state. They are not guarantees of what price will do next.
Four interpretations appear most often in technical analysis.
1. MACD and signal-line crossovers
A bullish crossover occurs when the MACD line moves above the signal line. It indicates that the faster measure of momentum has moved above its smoothed average.
A bearish crossover occurs when the MACD line moves below the signal line. This indicates that the faster measure has moved below its recent average.
The location of a crossover adds context. A bullish crossover below zero can occur while the broader measured trend remains negative. A bearish crossover above zero can occur while that broader reading remains positive.
In a sideways market, the two lines may cross repeatedly without a sustained price move. This repeated switching is commonly called whipsaw.
2. Zero-line crossovers
The MACD line crosses above zero when the faster EMA moves above the slower EMA. It crosses below zero when the faster EMA moves below the slower EMA.
A zero-line crossover can be read as a broader change in the relationship between the two averages. However, both averages smooth historical prices. The crossover may therefore appear after the price movement that caused it.
The signal describes a completed calculation. It does not establish how long a price movement will continue.
3. Histogram expansion and contraction
The MACD histogram grows when the distance between the MACD and signal lines increases.
Bars above zero that become taller show increasing positive separation. Bars below zero that extend farther downward show increasing negative separation.
When the bars contract towards zero, the lines are moving closer together. This can occur before a crossover, but it may also represent a temporary pause.
The histogram measures the relationship between the indicator lines rather than price acceleration in an absolute sense.
4. MACD divergence
Divergence occurs when price and MACD move in different directions.
In a commonly observed bullish divergence, price records a lower low while MACD records a higher low. In a bearish divergence, price records a higher high while MACD records a lower high.
Divergence shows that price and measured momentum are no longer confirming each other. It does not establish when, or whether, price will reverse.
Divergence can continue across several price swings. Different analysts may also select different comparison points. Clearly defined swing highs or lows and consistent chart settings make the observation more reproducible.
A structured way to examine a MACD chart
A consistent reading sequence can reduce selective interpretation.
1. Define the instrument and timeframe
A five-minute chart and a daily chart process different sets of price data. They can show opposing MACD readings at the same moment without either calculation being incorrect.
2. Identify the price structure
Determine whether price is trending, moving within a range or experiencing an unusually volatile period. MACD crossovers tend to occur more frequently when price moves sideways.
3. Check the MACD line against zero
The MACD line’s position relative to zero shows which underlying EMA is currently higher.
A reading above zero means the faster EMA is above the slower EMA. A reading below zero means the faster EMA is below the slower EMA.
4. Compare the MACD and signal lines
Record their current direction, most recent crossover and distance from each other.
The distance helps show whether measured momentum is expanding or contracting.
5. Inspect the histogram
Determine whether the bars are expanding, contracting or changing frequently around zero.
A contracting histogram shows that the MACD and signal lines are moving closer together. It does not independently establish a price reversal.
6. Compare the reading with market context
The MACD reading can be compared with price structure, support and resistance, and the timing of scheduled economic events.
CMS Financial’s economic calendar lists scheduled macroeconomic events that may coincide with periods of increased market activity.
7. Record the observation
Written rules make it easier to assess the same conditions across historical examples. CMS Financial’s guide to backtesting a trading strategy explains the role of historical testing and its limitations.
This sequence separates what the chart shows from any later decision.
Why do MACD signals sometimes fail?
MACD transforms historical price information. It does not receive information about future market movements.
Several conditions can reduce the clarity of its signals.
Sideways markets
When price moves within a narrow range, the faster and slower averages can repeatedly change order. This produces frequent crossovers near the zero line without a sustained directional move.
A crossover that appears significant in isolation may therefore be part of ordinary range-bound movement.
Rapid volatility
Economic releases, unexpected announcements, gaps and sudden repricing can move price before a moving-average signal becomes visible.
The resulting crossover may appear after much of the immediate price movement has already occurred.
Conflicting timeframe readings
MACD can be above zero on one timeframe and below zero on another. This is not a calculation error.
Each timeframe uses a different price series and measures a different market horizon. A short-term momentum change can exist within a longer-term trend moving in the opposite direction.
Parameter sensitivity
Shorter MACD settings react more quickly to recent prices, but they can also fluctuate more often. Longer settings smooth more data but respond more slowly.
Changing the inputs after viewing the result can produce rules that fit a particular historical sample without remaining stable under other market conditions.
Execution conditions
Indicator readings do not automatically account for spreads, commissions, slippage, liquidity or order execution.
These variables can change the outcome of a method tested on a chart, particularly when price targets and holding periods are small.
Can MACD be combined with other chart information?
MACD is often examined alongside price structure rather than in isolation.
Support and resistance can identify areas where price has previously reacted. Candlestick structure can show how a price move developed. Volume data, where available and applicable, can provide information about market activity.
Adding another momentum indicator may simply duplicate similar information. Using several indicators does not automatically create independent confirmation.
The relevant analytical question is whether each input measures something distinct and whether the combined rules were defined before the result was known.
Historical testing can then show how often a setup appeared, under which conditions it failed and how sensitive it was to different inputs. Historical behaviour does not determine future outcomes.
How does timeframe affect MACD?
The numbers 12, 26 and 9 refer to periods, not fixed units of time.
On an hourly chart, a 12-period EMA uses 12 hourly bars. On a daily chart, it uses 12 daily bars. The same settings therefore represent very different time horizons.
Lower timeframes generally contain more short-term price fluctuation and may generate more crossovers. Higher timeframes smooth more of that movement but can react later.
Comparing results across instruments and timeframes requires the same definitions, consistent data and realistic execution costs.
How to view MACD on MetaTrader 5
CMS Financial provides access to MetaTrader 5, which includes built-in technical indicators.
On MT5, MACD can be added from the Indicators section and displayed in a separate window below the price chart. The platform allows users to change the fast EMA, slow EMA, signal period and applied price.
Changing any setting changes the indicator’s behaviour. The result will not be directly comparable with a default MACD chart unless the different inputs are recorded.
A demo trading account provides a simulated environment in which users can learn the platform and document how different indicator settings behave. Simulated conditions do not reproduce every aspect of live trading.
Common MACD interpretation errors
Treating a crossover as a forecast
A crossover records a change in the relationship between two calculated lines. It does not confirm the next price direction.
Ignoring market structure
The same crossover can behave differently in a sustained trend and a narrow trading range.
Changing timeframes without changing context
Signals from different timeframes measure different market horizons. They should not be treated as equivalent observations.
Calling every disagreement divergence
Divergence comparisons require clearly defined swing highs or lows. Selecting different points can change the interpretation.
Using hindsight
A setup can appear clear after subsequent price bars are visible. Historical evaluation should use only the information that would have been available at the time being assessed.
Ignoring platform differences
Signal-line calculations and visual presentation may vary among charting platforms.
Overfitting the settings
Parameters tailored to one historical period may not behave the same way when market conditions change.
Final thoughts
The MACD indicator is a measure of relationships: between a faster and slower moving average, between MACD and its signal line, and between the indicator and price.
Crossovers, zero-line movement, histogram changes and divergence can organise chart observations. Each remains dependent on timeframe, market structure, instrument behaviour and calculation settings.
CMS Financial’s MT5 platform includes MACD and other charting tools. Its educational resources also cover the wider foundations of technical analysis, platform practice and historical testing.
These materials explain analytical methods. They do not provide personalised recommendations or certainty about market outcomes.
Frequently asked questions
What does MACD stand for?
MACD stands for Moving Average Convergence Divergence. The name describes whether two moving averages are moving closer together or farther apart. The indicator converts that changing relationship into a MACD line and compares it with a smoothed signal line. A histogram commonly displays the difference between those two lines.
What are the standard MACD settings?
The common default is 12, 26 and 9 periods. Twelve is the faster EMA input, 26 is the slower EMA input, and nine is the signal-line period. These are periods rather than fixed time units. Platform calculation and display details can vary, so the relevant settings and documentation need to be checked.
What does it mean when MACD crosses above the signal line?
It means the MACD line has moved above its own recent average, indicating an upward change in measured momentum. The observation is commonly called a bullish crossover. It does not confirm that price will rise, and it may reverse quickly when the market is ranging or volatile.
What does a MACD zero-line crossover mean?
A move above zero means the faster moving average has risen above the slower moving average. A move below zero means the faster average has fallen below the slower one. Because both averages use historical prices, a zero-line crossover can occur after the price movement has already started.
Is MACD a leading or lagging indicator?
MACD is generally described as a lagging or trend-following indicator because it is calculated from moving averages of historical prices. Some analysts use histogram changes or divergence to observe momentum shifts earlier, but those observations can be premature or continue without a corresponding price reversal.
What is MACD divergence?
MACD divergence is a disagreement between the direction of price swings and the direction of MACD swings. For example, price may form a higher high while MACD forms a lower high. This shows weaker confirmation from measured momentum, but it does not determine the timing or direction of a later move.
Can MACD be used in a sideways market?
MACD can be calculated in any market condition, but its signals may be less clear in a narrow range. The faster and slower moving averages can alternate repeatedly, producing several crossovers near zero. This behaviour illustrates why a crossover is not a standalone confirmation.
CMS Financial resources
- Explore the CMS Financial MT5 platform
- Learn about CMS Financial forex markets
- Review CMS Financial legal documents and risk disclosures
Sources
Risk disclaimer
This material is provided for general educational purposes only. It does not constitute investment, trading, legal, tax or personalised financial advice and does not consider any person’s objectives, experience or financial circumstances.
Technical indicators use historical data and cannot predict market outcomes. Forex and CFD products involve substantial risk, including rapid capital loss due to leverage. Review CMS Financial’s Risk Warning Disclosure and other legal documents before using its services.
