MACD Indicator: Finding entry and exit points
The Moving Average Convergence Divergence (MACD) indicator can help traders identify significant changes in momentum and market sentiment, providing insights for entering and exiting a trade.
The Moving Average Convergence Divergence (MACD) indicator can help traders identify significant changes in momentum and market sentiment, providing insights for entering and exiting a trade.
In this article you will learn:
- What Moving Average Convergence Divergence (MACD) is
- Using MACD to build your trading strategy
- Things to consider when using MACD
What is the Moving Average and who invented it?
The Moving Average Convergence Divergence indicator (aka. MAC-D or Histogram) is a momentum tool that shows the relationship between two different "speeds" of price action. It is very popular indicator among traders. It helps traders identify when a trend is gaining strength or losing steam. Developed by Gerald Appel in 1977, the MACD was designed to be a high-quality, easy-to-maintain indicator that provides clear signals even on noisy price charts.
What is a MACD in trading?
The MACD is a second-derivative momentum tool that quantifies the velocity of trend acceleration and decay. Rather than just signaling "buy" or "sell," it measures the rate at which short-term sentiment (12-EMA) deviates from the medium-term mean (26-EMA).
Structural Mechanics
- The Zero-Line (Equilibrium): This represents the point where the 12 and 26-period EMAs are equal. Trading above zero indicates a systemic bullish regime; below zero defines a bearish bias.
- Momentum Velocity: The distance between the MACD and Signal lines (the Histogram) reflects the strength of the current move. A widening gap indicates accelerating momentum, while a narrowing gap signals mean reversion.
Technical Application
- Order Flow Exhaustion: Divergence occurs when price prints a new extreme but the MACD does not. This identifies diminishing marginal conviction, suggesting that institutional participation is thinning and a reversal is imminent.
- Slope Analysis: The histogram’s slope often peaks before the price does. A "rounding off" of the histogram acts as a lead indicator that the trend’s "fuel" is spent, even if price is still drifting higher.
- The "Hook" Entry: In a trending market, traders look for the MACD to pull back toward the zero line without crossing it, then "hook" back into the primary trend—confirming a high-probability continuation.
While price tells you the "where," the MACD tells you the "how fast." It transforms lagging price data into a leading gauge of momentum health, identifying when a trend is high-conviction or merely hollow.
What is a MACD indicator and what is the theory behind it?
Moving Average Convergence Divergence is classified as a lagging indicator. All of the data used by MACD calculations is based on the historical price action. As a result, it “lags” the price.
How to use a MACD indicator
When applying the indicator to your chart, you’ll see two lines running alongside each other and oscillating above and below a zero horizontal line. The MACD line (typically colored blue) is not just a moving average. It is, in fact, the result of a calculation between two different exponential moving averages.
If you were to use the default settings for the indicator, that calculation would come from subtracting the 12-period exponential average from the 26-period exponential moving average. The second component is the signal line which, for the default settings, is calculated by taking a 9-period exponential moving average of the MACD line itself. Or, put another way, it’s a reading of an average of the last 9 values of the MACD line. This results in the signal line being a slightly slower, more smoothed out version of the MACD line.
The lines on the histogram oscillate around the zero line and that gives the MACD the characteristic of the oscillator.
The MACD provides the histogram placed typically just below a price chart.
This part of the indicator shows you the strength of the price move and can serve as an early warning to get ready for a cue. The deeper or higher the lines, the stronger the move in price.
- When the lines are above the zero horizontal, the market can be said to be bullish, and when they are below, we are in bearish mode.
- When the signal line crosses the MACD line, the indicator is said to be generating a potential buy (above signal line) or sell indication (below signal line).
How to use the MACD to trade
The MACD trading strategy in its most basic form involves using the crossing of the signal line as your entry or exit point for a trade. Although this approach can deliver profitable results in many cases, the MACD’s signal can often fail. This can happen, for instance, when the MACD line and signal line cross over one another multiple times. If you took an entry every time they crossed, you could quickly lose numerous trades in a row. This is why so many traders prefer to combine the MACD with another form of market analysis.
In the example below, we can see how useful it is to map out areas of support and resistance as we consider the validity of the MACD indications. Clearly, when price hits a strong area of support we can be more confident that the MACD’s sign is reliable. If you look at the last move up, you can see the MACD gives us a buy indication, but as the price nears an area of resistance, it flips to the downside. If you hadn’t drawn in the zone of resistance and opened a buy trade, you would have run into a strong, engulfing red candle.
The MACD and divergence
Many traders ignore the price cues created by the crossover and only use the MACD in conjunction with divergence. So what they are looking for is:
- A period of decreasing momentum as price rises, and
- A period of increasing momentum as price falls
How to spot this divergence?
Let’s look at an example. The chart below shows pound sterling in an uptrend against the Japanese yen. To the left of the chart you’ll see a double top forming, where the second top is higher than the first. However, if you look directly below to the MACD, you’ll see momentum is weakening. So even though price is climbing we can see from the divergence between price and momentum that a move to the downside can be anticipated. In fact, shortly after the bears regain control, the red line crosses the blue line and sinks below the horizontal line; price crashes through the 50-period EMA (Exponential Moving Average) and retraces hard.
So we can see that when momentum fails, doubt tends to set in, sometimes rapidly, and the switch in sentiment brings about a reversal. Generally speaking, the higher the timeframe you are looking at, the bigger the reversal.
Three things to bear in mind when using the MACD
Here are some cautionary measures to keep in mind whenever you use the MACD to inform your trading decisions:
Different timeframes and fake signals.
You’ll notice that the MACD can sometimes give a trading indication on a 15-minute chart, which looks dubious at best on a 4-hour chart. By identifying areas of support and resistance prior to following such a cue, you may better establish whether it is reliable or not. You might also like to incorporate moving averages into your strategy so you have further confluence.
MACD settings.
Many professional traders find the default settings (12, 26 and 9) to be too slow, causing late entry and exit to and from a trade. You may want to customize/format the settings and see how well they perform on a demo account. Some alternative settings to try are:
8, 21, 5
3, 17, 5
3, 10, 16
What you’re looking for is to see how close the crossover matches with the reversal on your chart. The best thing to do is to experiment on OANDA’s demo account to find out which settings work best for the instruments you like to trade. Then you can apply them to your live account with greater confidence in your MACD strategy.
Double tops and double bottoms.
These candlestick patterns typically form at the end of a strong push up or down in the market. So, if the price has climbed at speed with little resistance, but then hits an area of resistance and starts to drop, because the move has been made with strong momentum, it is likely that the price will drop only to head back up to retest the area of resistance. The stronger the momentum, either up or down, the less reliable the signal.
Frequently asked questions (FAQ)
Is Moving Average Convergence Divergence a leading or lagging indicator?
The data used in the MACD is based on historical price movement and because of that it always carries out the ‘lag’. This is why MACD is classified as a lagging indicator. On the other hand, some traders prefer using the histogram aspect of MACD to detect when the actual change in trend will occur. In this context, MACD can be considered to be a leading indicator for future changes in trends.
What is the history of MACD and who invented it?
The Moving Average Convergence Divergence indicator was invented by Gerald Appel around 1977 in an attempt to create an easy-to-read indicator.
How to read trends using MACD?
When the MACD line crosses the zero line above, it signals an uptrend, while below indicates a downtrend. When the MACD line crosses above the signal line, it can be read as an indication to buy, while when it crosses below the signal line, it is an indication to sell.
Key takeaways
- The MACD indicator (or oscillator) is one of the best indicators for identifying trends and reversals in the financial markets.
- The MACD strategy in its most basic form involves using the crossing of the smoothed out signal line over the MACD line as your entry or exit point for a trade.
- Consult other technical indicators when looking for a confirmation in conjunction with MACD..
- The MACD is often used purely to identify divergence in the market, when price diverges from momentum, and warns traders of a possible reversal.
- Some traders may customize the default settings, causing late entry and exit to and from a trade. You may want to alter the settings and see how well they perform on a demo account.
Past performance is not indicative of future results. This article and its contents are for educational purposes only and should not be considered trading advice.
Forex trading is high risk. Losses may exceed deposits.
Difference between leveraged and other forms of financial trading.
expand_less expand_moreUse fundamental analysis to your advantage.
expand_less expand_moreHow is technical analysis different from fundamental analysis?
expand_less expand_moreHow to build a robust trading strategy using indicators and oscillators.
expand_less expand_more