MACD Indicator Explained, with Formula, Examples, and Limitations

What Is Moving Affordable Convergence/Divergence (MACD)?

Moving commonplace convergence/divergence (MACD, or MAC-D) is a trend-following momentum indicator that presentations the relationship between two exponential moving averages (EMAs) of a security’s price. The MACD line is calculated by the use of 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 absolute best of the MACD line, which can function as a motive for acquire or advertise signs. Consumers would in all probability acquire the protection when the MACD line crosses above the signal line and advertise—or temporary—the protection when the MACD line crosses underneath the signal line. MACD indicators will also be interpreted in a large number of ways, on the other hand the additional common methods are crossovers, divergences, and rapid rises/falls.

Key Takeaways

  • The moving commonplace convergence/divergence (MACD, or MAC-D) line is calculated by the use of subtracting the 26-period exponential moving commonplace (EMA) from the 12-period EMA. The signal line is a nine-period EMA of the MACD line.
  • MACD is perfect used with day-to-day periods, where the traditional settings of 26/12/9 days is the norm.
  • MACD triggers technical signs when the MACD line crosses above the signal line (to buy) or falls underneath it (to advertise).
  • MACD can have the same opinion gauge whether or not or no longer a security is overbought or oversold, alerting buyers to the facility of a directional switch, and warning of a conceivable price reversal.
  • MACD can also alert consumers to bullish/bearish divergences (e.g., when a brand spanking new top in price is not confirmed by the use of a brand spanking new top in MACD, and vice versa), suggesting a conceivable failure and reversal.
  • After an indication line crossover, it is recommended to look forward to 3 or 4 days to confirm that it is not a false switch.

Moving Affordable Convergence Divergence – MACD

MACD Way


MACD = 12-Period EMA   26-Period EMA

text{MACD}=text{12-Period EMA }-text{ 26-Period EMA} MACD=12-Period EMA  26-Period EMA

MACD is calculated by the use of subtracting the long-term EMA (26 periods) from the short-term EMA (12 periods). An EMA is a type of moving commonplace (MA) that places a greater weight and significance on the newest knowledge problems.

The exponential moving commonplace is also referred to as the exponentially weighted moving commonplace. An exponentially weighted moving commonplace reacts further significantly to recent price changes than a simple moving commonplace (SMA), which applies an identical weight to all observations inside the generation.

Learning from MACD

MACD has a positive worth (confirmed for the reason that blue line inside the lower chart) on each instance the 12-period EMA (indicated by the use of the crimson line on the price chart) is above the 26-period EMA (the blue line in the price chart) and a adversarial worth when the 12-period EMA is underneath the 26-period EMA. The level of distance that MACD is above or underneath its baseline implies that the distance between the two EMAs is emerging.

Inside the following chart, you’ll be able to see how the two EMAs performed to the price chart correspond to the MACD (blue) crossing above or underneath its baseline (crimson dashed) inside the indicator underneath the price chart.

Image by the use of Sabrina Jiang © Investopedia 2022


MACD is ceaselessly displayed with a histogram (see the chart underneath) that graphs the distance between MACD and its signal line. If MACD is above the signal line, the histogram might be above the MACD’s baseline, or 0 line. If MACD is underneath its signal line, the histogram might be underneath the MACD’s baseline. Consumers use the MACD’s histogram to identify when bullish or bearish momentum is key—and possibly overbought/oversold.

Image by the use of Sabrina Jiang © Investopedia 2022


MACD vs. Relative Power

The relative energy index (RSI) objectives to signal whether or not or no longer a market is thought of as to be overbought or oversold on the subject of recent price levels. The RSI is an oscillator that calculates commonplace price options and losses over a given time frame. The default time period is 14 periods with values bounded from 0 to 100. A learning above 70 suggests an overbought state of affairs, while a learning underneath 30 is thought of as oversold, with every most likely signaling a absolute best is forming, or vice versa (a bottom is forming).

The MACD traces, then again, would not have concrete overbought/oversold levels similar to the RSI and other oscillator analysis. Relatively, they function on a relative basis. That’s to say an investor or broker should focal point on the degree and process the MACD/signal traces when compared with earlier price movements inside the protection handy, as confirmed underneath.

MACD measures the relationship between two EMAs, while the RSI measures price industry on the subject of recent price highs and lows. The ones two indicators are ceaselessly utilized in mixture to give analysts a further complete technical symbol of a market.

The ones indicators every measure momentum in a market, on the other hand on account of they measure more than a few components, they from time to time give reverse indications. For instance, the RSI would in all probability show a learning above 70 (overbought) for a sustained time frame, indicating a market is overextended to the acquisition facet on the subject of recent prices, while MACD indicates {the marketplace} continues to be increasing in buying momentum. Each indicator would in all probability signal an upcoming type industry by the use of showing divergence from price (price continues higher while the indicator turns lower, or vice versa).

Boundaries of MACD and Confirmation

One of the vital necessary primary problems with a moving commonplace divergence is that it will most likely ceaselessly signal a conceivable reversal, on the other hand then no actual reversal happens—it produces a false sure. The other downside is that divergence doesn’t forecast all reversals. In several words, it predicts too many reversals that don’t occur and not enough precise price reversals.

This implies confirmation should be sought by the use of trend-following indicators, such for the reason that Directional Movement Index (DMI) tool and its key phase, the Affordable Directional Index (ADX). The ADX is designed to signify whether or not or no longer a manner is in place or not, with a learning above 25 indicating a manner is in place (in each path) and a learning underneath 20 suggesting no type is in place.

Consumers following MACD crossovers and divergences should double-check with the ADX forward of making a trade on an MACD signal. For instance, while MACD may be showing a bearish divergence, a examine of the ADX would in all probability let you know {{that a}} type higher is in place—all through which case you in all probability can steer clear of the bearish MACD trade signal and wait to seem how {the marketplace} develops over the following few days.

Alternatively, if MACD is showing a bearish crossover and the ADX is in non-trending territory (<25) and has most definitely confirmed a top and reversal on its own, you should have superb objective to take the bearish trade.

Additionally, false sure divergences ceaselessly occur when the price of an asset moves sideways in a consolidation, similar to in a range or triangle fashion following a manner. A slowdown inside the momentum—sideways movement or slow trending movement—of the price will objective MACD to pull transparent of its prior extremes and gravitate against the 0 traces even inside the absence of an actual reversal. Another time, double-check the ADX and whether or not or no longer a manner is in place forward of appearing.

Example of MACD Crossovers

As confirmed on the following chart, when MACD falls underneath the signal line, it is a bearish signal indicating that it may be time to advertise. Conversely, when MACD rises above the signal line, the indicator gives a bullish signal, suggesting that the price of the asset is much more likely to revel in upward momentum. Some buyers look forward to a confirmed transfer above the signal line forward of entering a spot to reduce the chances of being faked out and entering a spot too early.

Crossovers are further unswerving as soon as they comply with the existing type. If MACD crosses above its signal line after a brief downside correction inside a longer-term uptrend, it qualifies as a bullish confirmation and the most definitely continuation of the uptrend.

Image by the use of Sabrina Jiang © Investopedia 2022


If MACD crosses underneath its signal line following a brief switch higher inside a longer-term downtrend, buyers would consider {{that a}} bearish confirmation.

Image by the use of Sabrina Jiang © Investopedia 2022


Example of Divergence

When MACD forms highs or lows that that exceed the corresponding highs and lows on the price, it is called a divergence. A bullish divergence turns out when MACD forms two rising lows that correspond with two falling lows on the price. It is a professional bullish signal when the long-term type stays to make certain.

Some buyers will seek for bullish divergences even though the long-term type is adversarial on account of they can signal a change inside the type, despite the fact that this system is way much less unswerving.

Image by the use of Sabrina Jiang © Investopedia 2022


When MACD forms a series of two falling highs that correspond with two rising highs on the price, a bearish divergence has been formed. A bearish divergence that appears all over a long-term bearish type is thought of as confirmation that the trend is much more likely to continue.

Some buyers will look forward to bearish divergences all over long-term bullish inclinations on account of they can signal susceptible level inside the type. Alternatively, it is not as unswerving as a bearish divergence all over a bearish type.

Image by the use of Sabrina Jiang © Investopedia 2022


Example of Rapid Rises or Falls

When MACD rises or falls hastily (the shorter-term moving commonplace pulls transparent of the longer-term moving commonplace), it is a signal that the protection is overbought or oversold and will temporarily return to common levels. Consumers will ceaselessly combine this analysis with the RSI or other technical indicators to make sure overbought or oversold prerequisites.

Image by the use of Sabrina Jiang © Investopedia 2022


It is not ordinary for consumers to use the MACD’s histogram the equivalent manner that they’re going to use the MACD itself. Certain or adversarial crossovers, divergences, and rapid rises or falls will also be known on the histogram as well. Some revel in is sought after forward of deciding which is perfect in any given situation, on account of there are timing permutations between signs on the MACD and its histogram.

How do buyers use moving commonplace convergence/divergence (MACD)?

Consumers use MACD to identify changes inside the path or energy of a stock’s price type. MACD can seem tricky to begin with glance, as it’s made up our minds via additional statistical concepts such for the reason that exponential moving commonplace (EMA). Then again principally, MACD helps buyers come across when the recent momentum in a stock’s price would in all probability signal a change in its underlying type. It’s going to have the same opinion buyers come to a decision when to enter, add to, or cross out a spot.

Is MACD a primary indicator or a lagging indicator?

MACD is a lagging indicator. In spite of everything, the entire knowledge used in MACD is in keeping with the traditional price movement of the stock. On account of it is in keeping with historic knowledge, it must necessarily lag the price. Alternatively, some buyers use MACD histograms to expect when a change in type will occur. For the ones buyers, this side of MACD may well be thought to be as a primary indicator of long term type changes.

What is an MACD bullish/bearish divergence?

A MACD sure (or bullish) divergence is a situation all through which MACD does not reach a brand spanking new low, despite the fact that the price of the stock reached a brand spanking new low. This is seen as a bullish purchasing and promoting signal—due to this fact, the time frame “positive/bullish divergence.” If the opposite state of affairs occurs—the stock price reaches a brand spanking new top, on the other hand MACD fails to do so—this may well be seen as a bearish indicator and termed “negative/bearish divergence.” In every cases, the setups recommend that the switch higher/lower would possibly not ultimate, so you’re going to want to check out other technical analysis, similar to the relative energy index (RSI) discussed above.

The Bottom Line

MACD is a precious tool of the moving-average type, perfect used with day-to-day knowledge. Merely as a crossover of the nine- and 14-day SMAs would in all probability generate a purchasing and promoting signal for some buyers, a crossover of the MACD above or underneath its signal line may also generate a directional signal.

MACD is in keeping with EMAs (further weight is placed on the newest knowledge), on account of this that it will most likely react very quickly to changes after all inside the provide price switch. Then again that quickness can be a two-edged sword. Crossovers of MACD traces should be well-known, on the other hand confirmation should be sought from other technical signs, such for the reason that RSI, or perhaps a few candlestick price charts. Further, on account of it is a lagging indicator, it argues that confirmation in subsequent price movement should amplify forward of taking the signal.

Similar Posts