--- title: "MACD Indicator Explained: 12 26 9, Histogram, Divergence" description: "MACD indicator explained: what is MACD, the 12 26 9 settings, how to read the signal line, MACD histogram and MACD divergence, with worked examples." url: https://backcomtrader.vn/en/macd-indicator-explained-how-to-read-macd lang: en type: article published: 2026-11-03T00:00:00+00:00 updated: 2026-11-13T02:32:09+00:00 author: "Jack Lambo" alternate_vi: https://backcomtrader.vn/vi/macd-la-gi-cach-doc-macd publisher: BackComTrader --- [Home](https://backcomtrader.vn/en) › [BackComTrader Blog](https://backcomtrader.vn/en/blog) › [Technical Analysis](https://backcomtrader.vn/en/blog/technical-analysis) › [MACD Indicator Explained: How To Read The MACD Line, Histogram And Divergence](https://backcomtrader.vn/en/macd-indicator-explained-how-to-read-macd) # MACD Indicator Explained: 12 26 9, Histogram, Divergence > MACD indicator explained: what is MACD, the 12 26 9 settings, how to read the signal line, MACD histogram and MACD divergence, with worked examples. Summary MACD is a momentum indicator measuring the gap between a 12-period and a 26-period EMA of the close, with a 9-period signal line and a histogram of the distance between them. It confirms moves that have already happened rather than predicting price, so crossovers and divergence are easy to misread in sideways markets. ![MACD indicator explained: glass momentum gauge with two crossing MACD waves on a black stone pedestal](https://backcomtrader.vn/assets/img/posts/media/2026/11/macd-indicator-explained-thumbnail.webp) Many traders open a chart, see two lines crossing above a row of rising and falling bars, and enter a trade only because "MACD just crossed up". A **MACD indicator explained** in one sentence sounds simple, but without knowing how those lines are built, it is easy to misread the signal, especially when price moves sideways. In this article, BackComTrader will cover what traders most often ask about this indicator: - **What is MACD** and how the **MACD 12 26 9 settings** are calculated, with a worked example on real gold prices. - How to read signal-line and zero-line crossovers. - What the **MACD histogram** shows and why it turns before the lines cross. - **MACD divergence**, an early signal that is easy to misread, and the limits that make the indicator lag. ## What Is MACD? A Momentum Indicator Built From Two EMAs **What is MACD?** MACD (Moving Average Convergence Divergence) is a momentum indicator that measures the gap between two exponential moving averages (EMAs) of the closing price. The gap widens when price moves quickly in one direction and narrows when the move slows down. The key point is that MACD does not predict price. According to [LuxAlgo's concept library](https://www.luxalgo.com/library/concept/macd.md), every component is built from lagged EMAs, so the indicator confirms a move that has already happened rather than warning about it in advance. Gerald Appel created it, although secondary sources do not agree on the exact year. A MACD panel on the chart has three parts: 1. **The MACD line:** the difference between a fast EMA and a slow EMA. 2. **The signal line:** a smoothed EMA of the MACD line itself, which moves more slowly. 3. **The histogram:** bars showing the distance between the MACD line and the signal line. You should therefore treat MACD as a view of how fast a trend is moving, not as a machine that issues buy and sell orders. ## How The MACD 12 26 9 Settings Are Calculated **The MACD 12 26 9 settings** are the default parameters: a 12-period EMA, a 26-period EMA and a 9-period EMA. The first number is the fast line, the second is the slow line, and the third is the length of the signal line. The full calculation has three lines: > **MACD line = EMA(12) of closing price − EMA(26) of closing price** > **Signal line = EMA(9) of (EMA(12) − EMA(26))** > **Histogram = MACD line − Signal line** Per [LuxAlgo](https://www.luxalgo.com/library/concept/macd.md), 12, 26 and 9 are conventional defaults inherited from daily charts, not constants optimized for every market. Shorter periods make the indicator faster but add false signals. ### A Real MACD Calculation On Gold Each EMA uses a smoothing factor of 2 divided by (periods plus 1): the 12-period EMA uses 2 ÷ 13 ≈ 0.154, the 26-period EMA uses 2 ÷ 27 ≈ 0.074, and the 9-period EMA uses 2 ÷ 10 = 0.2. Take COMEX gold futures (GC) on the daily chart, where the August 31, 2026 session closed at 4,481.50: ![MACD indicator explained: MACD 12 26 9 calculated on a real gold chart, Aug 31, 2026 MACD 104.67 and histogram −6.24](https://backcomtrader.vn/assets/img/posts/media/2026/11/macd-12-26-9-calculation-gold-chart.webp) *How MACD 12, 26, 9 Is Calculated On Gold, August 31, 2026* - **MACD line:** the 12-period EMA is 4,546.73 and the 26-period EMA is 4,442.06, so MACD = 4,546.73 − 4,442.06 = **104.67**. - **Signal line:** the 9-period EMA of the MACD line stands at **110.91**. - **Histogram:** 104.67 − 110.91 = **−6.24**, negative because the MACD line has just dropped below the signal line. In the previous session MACD was still 119.68, above the signal line at 112.47, so this is the session where the two lines crossed. **Data: GC=F daily candles from Yahoo Finance, retrieved on 3 November 2026 and calculated with standard EMAs. These are past prices used to show the calculation, not a trade recommendation. XAUUSD quotes at your broker differ slightly from futures, so the MACD on your own chart will not match exactly.** MACD values are measured in price units, so 104.67 on gold cannot be compared directly with 0.018 on EUR/USD in the example further down. ## How To Read The MACD Line: Signal Line And Zero Line **Reading the MACD line** comes down to two kinds of crossover: the MACD line crossing the signal line, and the MACD line crossing zero. They differ in speed and in lag. ### Signal-Line Crossover When the MACD line crosses above the signal line, many traders read it as upward momentum returning. A cross below reads as downward momentum. According to [Investing.com Academy](https://www.investing.com/academy/analysis/macd-definition-uses), a crossover that agrees with the prevailing trend is generally treated as stronger confirmation. However, a crossover only shows that momentum has turned relative to recent bars. It is not a standalone entry. LuxAlgo warns that raw crossovers whipsaw badly in a trading range, which is why many rules add a trend filter. ![How to read MACD: four signal-line crossovers on a daily gold chart from July to October 2026](https://backcomtrader.vn/assets/img/posts/media/2026/11/macd-signal-line-crossover-gold-chart.webp) *MACD Signal-Line Crossovers On Daily Gold* **Real example on daily gold:** the chart marks four crossovers between July and October 2026. 1. **July 6, cross up at 4,167.5:** MACD was still below zero. Ten sessions later price was 3.64% lower, and −4.91% at its worst, so the signal first looked wrong. Price only rose afterwards: by the cross down on August 31 it was 7.53% higher. 2. **August 31, cross down at 4,481.5:** MACD was high at 104.67. Ten sessions later price was 3.32% lower. 3. **October 16, cross up at 4,181.1:** the two lines were running almost on top of each other below zero. 4. **October 22, cross down at 4,060.4:** only 4 sessions after signal 3 and 2.89% lower. This is the whipsaw LuxAlgo warns about. Over the latest two years of this data, daily gold produced 34 signal-line crossovers. Of the 33 with a full 10 sessions to measure, price moved in the signal's direction in 16, just under half. That is why a crossover should not be your only reason to enter. ### Zero-Line Crossover A MACD line above zero means the 12-period EMA is above the 26-period EMA. Below zero means the opposite. A zero-line cross is therefore the same event as the two EMAs crossing. This is the slowest MACD signal because it appears only after a trend has already travelled some distance. In return, it is less noisy than the signal-line cross. ![MACD zero-line crossovers on daily gold: above zero on Aug 6, 2026 at 4,299.6 and below zero on Sep 17, 2026 at 4,399.7](https://backcomtrader.vn/assets/img/posts/media/2026/11/macd-zero-line-crossover-gold-chart.webp) *MACD Zero-Line Crossovers On Daily Gold* **Real example on daily gold:** MACD crossed above zero on August 6 at 4,299.6, exactly where the 12-period EMA moved above the 26-period EMA on the chart. Compared with the signal-line cross of July 6, it came 23 sessions later and 132.1 USD higher, and that gap is the lag. Ten sessions later price was 6.32% higher. On September 17 MACD fell below zero at 4,399.7, and ten sessions later price was 4.49% lower. Both moves went the right way, but that is not always the case: over two years of data, daily gold had 9 zero-line crosses and price moved in the signal's direction after 10 sessions in only 3. Zero-line crosses are far fewer than the 34 signal-line crosses, but fewer does not mean more accurate. | Signal | Condition | Speed | What to watch | | --- | --- | --- | --- | | **Signal-line cross** | MACD crosses its 9-period EMA | Fast | Many false signals in sideways markets | | **Zero-line cross** | MACD changes sign, EMA 12 crosses EMA 26 | Slow | Often late in a fast move | | **Divergence** | Price and MACD make mismatched highs or lows | Early | Needs confirmation and can last a long time | **Reference for reading MACD signals as at 2 November 2026, based on descriptions from LuxAlgo and Investing.com. Each signal has its own limits, so traders should test them on the pair and timeframe they actually trade.** ## What The MACD Histogram Tells You **The MACD histogram** is a series of bars measuring the distance between the MACD line and the signal line. Bars sit above zero when the MACD line is above the signal line, and below zero when it is below. The histogram crosses zero at exactly the moment the two lines cross, as LuxAlgo describes. What it adds is the slope of the convergence. When the bars shrink toward zero, the gap between the lines is closing and a crossover may be near. Traders usually read the histogram in three ways: - **Bars growing:** momentum in the current direction is strengthening. - **Bars shrinking without changing sign:** the move is losing energy, which may be a moment to review a stop loss or take partial profit. - **Bars changing sign:** the lines have just crossed, equivalent to a signal-line crossover. ![MACD histogram on daily gold, August 2026: bar peak +50.1, shrinks to +27.7, lower peak +35.6, then flips to −6.2](https://backcomtrader.vn/assets/img/posts/media/2026/11/macd-histogram-gold-chart.webp) *How The MACD Histogram Shifted On Gold, August 2026* **Real example on daily gold, August 2026:** 1. **August 11:** the bars peaked at +50.1. 2. **August 18:** the bars shrank to +27.7 but price did not fall, and gold went on to reach 4,755.0 on August 25. Shrinking bars were an early warning that did not play out this time. 3. **August 24:** the bars made a lower peak at +35.6 even though price was higher, so momentum had weakened compared with earlier in the month. 4. **August 31:** after 5 straight sessions of shrinking, the bars flipped to −6.2, on the same session MACD crossed down. Price closed 4.60% below August 24. One caution: tall bars do not mean price will keep going. According to Investing.com, an extreme histogram reading often signals that momentum is slowing, after which the curve tends to revert toward its mean. The histogram adds information about speed, but it does not replace analysis of price structure. ## MACD Divergence: An Early Signal That Is Easy To Misread **MACD divergence** appears when price and the indicator tell different stories. LuxAlgo describes it as price making a new extreme while the MACD line or histogram makes a lesser one. There are two basic forms: 1. **Bullish divergence:** price makes a lower low while MACD makes a higher low. Selling pressure may be fading and an upward reversal is possible. 2. **Bearish divergence:** price makes a higher high while MACD makes a lower high. Buying pressure may be fading and a downward reversal is possible. This signal comes earlier than a crossover, but it is also the easiest to misread. Price can diverge several times and still continue the trend, especially when momentum is strong. Both sources above stress that divergence needs further confirmation before you act. A careful routine for traders looks like this: 1. **Mark two clear highs or two clear lows** on the same timeframe, rather than connecting small swings. 2. **Compare the price extremes with the MACD extremes** at exactly those two moments. 3. **Wait for confirmation from price structure**, such as a break of the nearest support or resistance zone. 4. **Place the invalidation point** beyond the last price high or low. ### Real Examples: One That Worked And One That Failed ![Bullish MACD divergence on gold H4: price lows 3,975.7 to 3,955.4 while MACD rises from −59.8 to −24.8](https://backcomtrader.vn/assets/img/posts/media/2026/11/bullish-macd-divergence-gold-h4.webp) *Bullish MACD Divergence On Gold H4* **Bullish divergence on gold H4:** on June 24, 2026 (16:00 UTC) price made a low of 3,975.7 with MACD at −59.8. On June 30 (00:00 UTC) price made a lower low of 3,955.4 while MACD was only at −24.8. Once the low was confirmed by 5 bars, price moved up, and 10 bars later it closed at 4,141.4, which was 3.05% higher. ![Failed bearish MACD divergence on EUR/USD D1: highs 1.1575 to 1.1635, MACD 0.018 to 0.007, yet price kept rising](https://backcomtrader.vn/assets/img/posts/media/2026/11/failed-bearish-macd-divergence-eurusd.webp) *A Bearish MACD Divergence That Failed On EUR/USD D1* **Bearish divergence on EUR/USD D1:** on April 21, 2025 price made a high of 1.1575 with MACD at 0.018. On June 12, 2025 price made a higher high of 1.1635 with MACD at only 0.007, a very clear bearish divergence. But price did not fall: 10 sessions after the high was confirmed (June 19) it was 2.25% higher, and on July 1 it closed at 1.1809. Applying the same rule (swing points with 5 bars on each side, two extremes no more than 60 bars apart) to gold H4 over the latest two years gives 37 divergences, and price moved in the expected direction after 10 bars in only 14 of them. So divergence is a reason to look closer, not a reason to enter. **Data: Yahoo Finance (GC=F, EURUSD=X), retrieved on 3 November 2026 and self-calculated. Past results do not guarantee future results.** ## How To Use MACD On MT5 Step By Step **Using MACD** on MetaTrader 5 has two parts: adding the indicator to the chart, and deciding the filters you will use to read it. The second part matters much more than the first. To add the indicator: 1. Open the chart of the pair you want to follow in MT5. 2. Go to **Insert**, choose **Indicators**, then **Oscillators**, and select **MACD**. 3. Keep the defaults Fast EMA 12, Slow EMA 26, MACD SMA 9 and set **Apply to: Close**. 4. Confirm, and the indicator appears in a sub-window below the price chart. **Note:** the built-in MACD on MT5 draws the MACD line itself as bars, and its signal line is a 9-period SMA, so the bars cross zero when the EMA 12 crosses the EMA 26 rather than showing MACD minus signal line as above (as described by the mql5.com community). If you are unsure how the two platforms differ, see [MT4 vs MT5 differences](https://backcomtrader.vn/en/mt4-vs-mt5-differences). After adding it, you should fix a clear reading rule before trading: - **Take only crossovers that agree with the larger trend:** for example, only consider buys when price is above the 200 EMA. - **Ignore crossovers near the zero line when price is flat:** this zone holds the most noise. - **Combine with price zones:** a signal at support or resistance is more reliable than one in empty space. - **Test on a demo account and historical data:** the default settings do not guarantee results. ## Limits Of MACD And 4 Common Mistakes **MACD** has three main limits: it lags because it is built from EMAs, it gives false signals when price moves sideways, and its values cannot be compared across instruments. Investing.com also stresses that it cannot forecast every reversal. Four mistakes traders often make with MACD: - **Entering the moment the lines cross:** a crossover is only a necessary condition. Without a larger trend and a price zone, signals often fail. - **Using MACD in a flat market:** constant crossovers produce a string of small losing trades while costs add up. - **Reading MACD as overbought or oversold:** MACD has no fixed bounds like RSI, so "high" or "low" only means something against the instrument's own history. - **Optimizing settings until they fit the past:** a parameter set that looks perfect on old data usually degrades when the market changes regime. A common answer is to use MACD to gauge trend speed while basing entries on price structure and risk management. Before you click, you should size the trade with a [position size calculator](https://backcomtrader.vn/en/tools/position-size-calculator) and keep a journal of every signal to see which ones actually worked. ## MACD Signals And Trading Costs **MACD signals** on small timeframes appear frequently, so trading costs become a factor you should not ignore. Every order pays the spread, and many accounts also charge commission. A crossover strategy can produce dozens of trades a week, so even a small spread difference adds up. Part of that cost can be offset by a rebate paid on closed lots. A rebate does not make a wrong trade right and does not cover losing trades. BackComTrader is an independent introducing broker (IB/affiliate) of its partner brokers; rebates are paid from the commission the broker pays BackComTrader, see the [risk disclaimer](https://backcomtrader.vn/en/risk-disclaimer). You can check current conditions and rebate levels on the list of [partner brokers](https://backcomtrader.vn/en/broker). ## Frequently Asked Questions (FAQ) About MACD **Can MACD Predict A Reversal In Advance?** Not reliably. **MACD** is built from EMAs, so it lags price, and Investing.com states that it cannot forecast every reversal. Divergence gives an earlier signal than a crossover but still needs confirmation from price structure. You should treat MACD as supporting evidence, not the only reason to enter. **Which Timeframe Works Best For MACD?** There is no single best timeframe. The **12, 26, 9** settings were inherited from daily charts, and smaller timeframes tend to produce more false signals. You can test the same rule on H1, H4 and D1 with historical data, then choose the timeframe that matches how often you can watch the chart. **Is A Color Change In The MACD Histogram A Buy Or Sell Signal?** Not by itself. The **MACD histogram** changes sign exactly when the MACD line crosses the signal line, so it is just another view of the same crossover. Shrinking bars show a slowing move, but they are not a reversal order. Wait for further confirmation before acting. **Should You Change The MACD 12 26 9 Settings?** You can, but carefully. Shorter periods make the indicator faster and add false signals, while longer periods make it slower and less noisy. Test any change on a demo account and historical data, and avoid tuning the settings to fit one period only. ## Conclusion: MACD Indicator Explained And How To Use It To Read Momentum Understanding the **MACD indicator** comes down to three points: the MACD line is the difference between two EMAs, the signal line and histogram only clarify how fast that difference is changing, and every signal lags because it is built from past prices. Traders need to look at the larger trend, price zones and risk management together instead of waiting only for two lines to cross. The next step is to add MACD 12, 26, 9 to a demo chart, record crossovers and divergences for a few weeks, and compare them with what price actually did. Once the rules are clear, you can size the trade with the [position size calculator](https://backcomtrader.vn/en/tools/position-size-calculator) before risking real money, or browse more [forex knowledge articles](https://backcomtrader.vn/en/blog/knowledge). > **Disclaimer:** This content is compiled by BackComTrader for information only and is not investment advice or a trading recommendation. Trading forex and CFDs is leveraged, carries high risk and can result in the loss of all capital. The numeric examples use past prices, technical indicators do not guarantee results, and you should verify everything yourself before placing a trade. ## Related Posts [View all](https://backcomtrader.vn/en/blog) [![What is support and resistance: 5 ways to identify key price zones](https://backcomtrader.vn/assets/img/posts/media/2026/11/support-and-resistance-identify-zones-thumbnail.webp) Technical Analysis20/11/2026 What Is Support And Resistance? 5 Ways To Identify Key Price Zones Support and resistance are price zones, not single lines. Identify them with 5 signs, spot a false breakout and place a Stop Loss with an XAUUSD example. 13 min read](https://backcomtrader.vn/en/support-and-resistance-identify-zones) [![What is the RSI indicator: how to use RSI, overbought, oversold and divergence](https://backcomtrader.vn/assets/img/posts/media/2026/11/rsi-indicator-how-to-use-rsi-thumbnail.webp) Technical Analysis20/11/2026 What Is The RSI Indicator? How To Use RSI, Overbought, Oversold And Divergence Starting from Wilder's formula and a 15-close example that produces an RSI of 60, this guide shows why the 70/30 zones and divergence are only momentum warnings that need price confirmation, using real gold and EUR/USD charts, plus the steps to add RSI on MT5 through the Navigator and the Parameters, Levels and Visualization tabs. 17 min read](https://backcomtrader.vn/en/rsi-indicator-how-to-use-rsi) [![What is a price gap: weekend gaps in forex and gold and how to protect your trades](https://backcomtrader.vn/assets/img/posts/media/2026/11/price-gap-forex-weekend-gap-thumbnail.webp) Technical Analysis20/11/2026 What Is A Price Gap? Weekend Gaps In Forex And Gold And How To Protect Your Trades This guide separates ChartSchool's strict definition of a gap from everyday forex usage, converts the weekly open to UTC around the Nov 1, 2026 US clock change and explains why a gap fill is not a rule. A hypothetical XAUUSD trade shows a 4,195.00 Stop Loss filling at 4,185.00 and doubling the planned loss. 14 min read](https://backcomtrader.vn/en/price-gap-forex-weekend-gap) --- Canonical HTML: https://backcomtrader.vn/en/macd-indicator-explained-how-to-read-macd · Updated: 2026-11-13T02:32:09+00:00