What Are the Main Takeaways?
- The gap between the MACD line and the signal line appears in the MACD histogram as bars plotted on either side of the zero line.
- To calculate the MACD histogram, subtract the signal line from the MACD line, with 12, 26 and 9 as the default MACD settings.
- When bars sit above zero, the MACD line is higher than the signal line; bars below zero indicate that it is lower.
- Expanding bars indicate strengthening momentum, whereas contracting bars indicate weakening momentum, often ahead of a signal line crossover.
- When the histogram moves above zero, a bullish signal line crossover occurs; this is distinct from a MACD zero line crossover.
- Divergence in the MACD histogram signals weakening momentum, although it may persist for a long time before price reverses, and a reversal may not happen at all.
- The bars in the MACD window on MT4 and MT5 represent the MACD line; use the built-in OsMA indicator to view the actual MACD histogram.
What Does the MACD Histogram Show?
Momentum and the prospect of an approaching signal line crossover are what traders assess with the MACD histogram, before the two lines actually intersect. Its bars, plotted above or below zero, represent the distance between the MACD line and the signal line.
The addition of the histogram to MACD in 1986 is credited to Thomas Aspray. His aim was to anticipate crossovers: by the time the MACD line crosses the signal line, price has often already changed direction.
Three components of MACD form the basis of the histogram.
| Component | Calculation Method | Information Provided |
|---|---|---|
| MACD line | Subtract the 26-period EMA from the 12-period EMA | Comparison of the short-term and longer-term trends |
| Signal line | Calculate the 9-period EMA of the MACD line | Smoothed version of the MACD line for identifying crossovers |
| MACD histogram | Subtract the signal line from the MACD line | Distance between the lines, indicating strengthening or weakening momentum |

Understanding how both lines are calculated is the starting point for interpreting the bars, since each histogram bar is simply the result of a subtraction.
How Do You Calculate the MACD Histogram?
Before subtracting the signal line from the MACD line to obtain the histogram, calculate the two lines themselves. Two price-based exponential moving averages (EMAs), which place greater weight on recent prices, produce the MACD line. An average of that MACD line then produces the signal line.
What Is the MACD Histogram Formula?
Subtracting the signal line from the MACD line gives the MACD histogram. There are three steps in the complete calculation.
- MACD line = 12-period EMA − 26-period EMA
- Signal line = 9-period EMA calculated from the MACD line
- MACD histogram = MACD line − signal line
Throughout this guide, the default MACD settings of 12, 26 and 9 apply. Each period represents one candle. On a daily chart, therefore, the 12-period EMA averages the last 12 daily closing prices, giving greater weight to the more recent closes.
Subtracting one line from the other makes the histogram positive whenever the MACD line sits above the signal line. When it sits below the signal line, the result is negative.
How Does a MACD Histogram Calculation Work in Practice?
In this three-bar calculation example, the histogram first expands and then contracts, even though the MACD line remains above the signal line throughout.
| Bar Number | 12 EMA | 26 EMA | MACD Line Value | Signal Line Value | Histogram Value |
|---|---|---|---|---|---|
| 1 | 105.0 | 103.0 | 2.0 | 1.5 | 0.5 |
| 2 | 105.8 | 103.2 | 2.6 | 1.8 | 0.8 |
| 3 | 105.9 | 103.4 | 2.5 | 2.1 | 0.4 |
Illustration only. Made up round numbers, not a real market.
Momentum strengthens in bar 2 as the distance between the MACD line and the signal line widens, lifting the histogram from 0.5 to 0.8. By bar 3, the signal line has moved closer, reducing the histogram to 0.4.
Price is still rising in bar 3, where the 12 EMA is the highest across all three bars. Yet the histogram contracts because the MACD line is no longer moving further away from the signal line. In practical terms, fading momentum means the uptrend is losing pace, not necessarily that price has stopped rising.

Why Is the MACD Histogram Four Steps Removed From Price?
Four successive stages separate price from the MACD histogram, with each stage using the output of the previous one.
- A 12-period EMA and a 26-period EMA are calculated from price.
- The MACD line is derived from those two EMAs.
- The signal line is calculated from the MACD line.
- The histogram is formed from the difference between the MACD line and the signal line.
With a little more smoothing at each stage, the histogram responds only after price has moved; it does not forecast price.
How Should You Interpret the MACD Histogram?
Two features matter when reading the MACD histogram: the bars' position relative to zero and whether they are expanding or contracting. Position tells you which line is higher, while bar size indicates whether momentum is strengthening or weakening. Together, these features produce four possible states.
| State of the Histogram Bars | Relationship Between the Lines | Possible Interpretation |
|---|---|---|
| Expanding above zero | MACD line higher than the signal line, with the gap widening | Strengthening upward momentum |
| Contracting above zero | MACD line higher than the signal line, with the gap narrowing | Weakening upward momentum; a bearish signal line crossover may come next |
| Expanding below zero | MACD line lower than the signal line, with the gap widening | Strengthening downward momentum |
| Contracting below zero | MACD line lower than the signal line, with the gap narrowing | Weakening downward momentum; a bullish signal line crossover may come next |

What Do Positive and Negative Histogram Bars Indicate?
Upward momentum is indicated by positive MACD histogram bars: these appear above zero because the MACD line is higher than the signal line. Negative bars appear below zero because the MACD line is lower than the signal line, indicating downward momentum.
Only the relationship between the two lines is described by their position relative to zero. A negative histogram says neither that price is declining nor that it is below a particular chart level. Price may continue to rise even with the bars below zero.
What Changes When Histogram Bars Expand or Contract?
As the gap between the MACD line and the signal line widens, histogram bars expand, indicating stronger momentum in the direction of the bars. A narrowing gap produces contracting bars and signals weaker momentum; a signal line crossover often comes afterwards.
A trend reversal is not implied by contracting bars. Since contraction merely indicates that the MACD line has stopped moving further away from the signal line, price may climb for several more bars while the histogram gets smaller.
Green and red are common histogram colours across platforms. Some platforms also switch colours when the bars begin to contract, so verify the meaning of each colour on your chart.
What Can Histogram Peaks and Troughs Tell You?
Before bars begin contracting, the tallest positive bar marks a histogram peak and the deepest negative bar marks a histogram trough. Either formation indicates a change in momentum ahead of an actual crossover between the MACD line and the signal line.
Because contraction begins while the lines remain separated, peaks and troughs provide warnings earlier than a signal line crossover. That timing also makes them more prone to failure: if the trend gathers pace again, taller bars can reappear.
The MACD line crosses the signal line when the contracting bars reach zero.
What Does a MACD Histogram Move Above Zero Signal?
A bullish signal line crossover occurs when the MACD histogram moves above zero, meaning the MACD line has just moved above the signal line. Conversely, a move below zero marks a bearish signal line crossover, with the MACD line moving below the signal line. Since the histogram measures the difference between them, its value is exactly zero when the lines meet.
Do not confuse a histogram crossing zero with a MACD zero line crossover. The latter occurs when the MACD line itself passes through zero, as the 12-period EMA moves above or below the 26-period EMA. Confusing these events treats a short-term momentum indication as a slower-moving trend signal.
| Crossover Event | Lines Involved | Interpretation |
|---|---|---|
| Histogram moves above zero | MACD line moves above the signal line | Bullish signal line crossover indicating a turn upwards in short-term momentum |
| Zero line crossover in MACD | MACD line moves above zero | 12-period EMA is now above the 26-period EMA, providing a slower trend signal |
Price may still decline after the histogram moves above zero, as this is a momentum signal. Much of the price move has often already taken place before the crossover appears, because the signal line crossover is derived from averages of averages.

The late arrival of crossovers explains why many traders also look for histogram divergence.
Which Types of MACD Histogram Divergence Matter?
Weakening momentum behind a trend can be signalled by MACD histogram divergence, where price moves one way and the histogram moves the other. Four types of divergence occur in the MACD histogram.
| Divergence Type | Price Pattern | Histogram Pattern | Potential Warning |
|---|---|---|---|
| Bullish divergence | A low below the previous low | A low above the previous low | Weakening selling momentum and a possible upward move |
| Bearish divergence | A high above the previous high | A high below the previous high | Weakening buying momentum and a possible downward move |
| Hidden bullish divergence | A low above the previous low | A low below the previous low | Possible continuation of the uptrend |
| Hidden bearish divergence | A high below the previous high | A high above the previous high | Possible continuation of the downtrend |

When Does Bullish MACD Histogram Divergence Appear?
A lower low in price alongside a higher low in the histogram forms bullish MACD histogram divergence. Although price continues to decline, the histogram's second dip is less deep than the first, indicating that selling momentum is weakening.
An upward price reversal is possible after bullish divergence, but never assured. In a strong downtrend, successively lower price lows can persist alongside successively higher histogram lows.
When Does Bearish MACD Histogram Divergence Appear?
A higher high in price alongside a lower high in the histogram forms bearish MACD histogram divergence. Despite the continued price rise, buying momentum is weakening, as shown by a second histogram peak smaller than the first.
A downward price reversal is possible after bearish divergence, but is equally far from assured. During a strong uptrend, price may post successive higher highs even as the histogram records successive lower highs.
How Does Hidden MACD Histogram Divergence Differ?
Continuation of an uptrend may be indicated by hidden bullish MACD histogram divergence: price forms a higher low, but the histogram forms a lower low. For hidden bearish divergence, price forms a lower high while the histogram forms a higher high, potentially indicating continuation of a downtrend.
A possible reversal is the warning from regular divergence; a possible continuation is the warning from hidden divergence. The hidden form typically appears in a pullback, with a deeper histogram dip than before even as price stays above its previous low.

How Do Peak-Trough and Slant MACD Histogram Divergence Compare?
Two distinct peaks or two distinct troughs, with the second smaller than the first, characterise peak-trough divergence in the MACD histogram. Slant divergence, by contrast, has no distinct second peak or trough. Instead, bars steadily slope towards zero while price continues in the same direction. In both cases, the MACD line is moving closer to the signal line.
Compared with short, shallow divergences developing over a few days, those developing over a few weeks are generally more reliable.
Confirmation is something many traders seek before acting on MACD histogram divergence. This might take the form of a signal line crossover or a price close beyond a recent high or low.
How Do MACD Histogram Signals Change Between Trending and Ranging Markets?
In trending markets, MACD histogram signals tend to have greater usefulness, particularly when they align with the trend; in ranging markets, their reliability is much lower. Consider an uptrend in which price pulls back for a few bars and the histogram falls below zero. As those bars begin contracting, selling momentum within the pullback is weakening, in line with the broader uptrend.
When price moves sideways between a high and a low, the market is ranging. Under these conditions, the histogram repeatedly switches from above zero to below it and back. Every switch marks a signal line crossover, often without a meaningful move following. Signals very near zero are weaker too, since there is hardly any separation between the MACD line and the signal line.
For a straightforward trend filter, many traders turn to a moving average, such as the 200-period moving average. They place greater weight on bullish histogram signals when price is above that 200-period moving average, and on bearish signals when price is below it.

Most MACD histogram strategies rest on this distinction between trending and ranging behaviour.
Which Setups Underpin a MACD Histogram Strategy?
Three setups provide the foundation for most MACD histogram strategies.
- The trend pullback setup looks for bars to begin moving back towards zero as price pulls back within a trend.
- The divergence setup pairs bullish or bearish divergence with confirmation from a signal line crossover.
- The breakout setup starts with a flat histogram close to zero and price near support or resistance, then looks for a breakout alongside renewed expansion in the bars.
Separate rules for entry, stop-loss and exit are needed for each MACD histogram setup, and none works in every market. For complete rules, worked examples and approaches to combining MACD with other indicators, see the guide to MACD trading strategies.
What Are the MACD Histogram's Limitations?
Five key limitations influence every signal produced by the MACD histogram.
- Price moves ahead of the MACD histogram because moving averages underpin it. As a result, the histogram responds after a price move rather than predicting it.
- Ranging markets produce false histogram signals, as bars alternate around zero without an underlying trend.
- Divergence in the MACD histogram may persist for a long time ahead of a price reversal, and in some cases no reversal occurs.
- Fixed overbought and oversold levels do not exist for the histogram, unlike the relative strength index (RSI), since the histogram's values depend on the market's price.
- Relying on the histogram alone is insufficient. Traders therefore use price or another tool to confirm its signals, along with a stop-loss order to limit losses if a signal fails. That order closes a trade at a specified price.
MetaTrader presents another practical pitfall: its default MACD window does not display the histogram at all.
Where Can You Find the MACD Histogram on MT4 and MT5?
On MetaTrader 4 (MT4) and MetaTrader 5 (MT5), bars in the MACD window represent the MACD line; the actual histogram appears through the Moving Average of Oscillator (OsMA) indicator. According to the MetaQuotes help pages for both platforms, the signal line in the MACD window is drawn as a dotted 9-period simple moving average (SMA) of the MACD line, rather than the usual EMA.
To find the built-in OsMA on either platform, go to Insert, Indicators, Oscillators. Instructions for adding MACD are provided in the MACD trading strategy guide. By plotting the MACD line less the signal line, OsMA displays the histogram described here. A check of EUR/USD charts on MT4 and MT5 on 3 November 2026 found that, on each platform, OsMA matched the difference between the MACD line and the signal line. Placing both MACD and OsMA on one chart displays all the lines discussed in this guide. MetaTrader's use of an SMA for its signal line means that its signal line and OsMA values differ slightly from those on platforms using an EMA.
| Feature | Typical Charting Platforms | Default MACD on MT4 and MT5 |
|---|---|---|
| Meaning of the bars | Difference between MACD line and signal line (histogram) | MACD line, rather than the histogram |
| Average used for the signal line | EMA over 9 periods | SMA over 9 periods, displayed as a dotted line |
| Location of the actual histogram | Within the MACD window | Available by adding the Moving Average of Oscillator (OsMA) indicator |

Frequently Asked Questions
Does the MACD Histogram Represent Trading Volume?
No. Trading volume measures how much was traded in a market during each period; the MACD histogram measures the distance between the MACD line and the signal line. Their shared appearance as bars below the price chart often causes confusion among beginners.
How Does the MACD Histogram Differ From the MACD Line?
Subtract the 26-period EMA from the 12-period EMA to obtain the MACD line. Subtract the signal line from that MACD line to obtain the MACD histogram.
Does the MACD Histogram Lead or Lag Price?
Built from moving averages of historical prices, the MACD histogram is a lagging indicator. It often changes direction ahead of a signal line crossover, yet all its signals appear only after price has moved.
Which MACD Histogram Settings Work Best?
There is no single best setting across all markets and timeframes; 12, 26 and 9 are the defaults for the MACD histogram. Choosing faster settings brings an earlier response at the cost of more false signals. Slower settings produce fewer signals, with a longer delay. Other settings are discussed in greater detail in the MACD trading strategy guide.




















