What is MACD?

MACD  or Moving Average Convergence Divergence is one of the most popular and widely used technical analysis Indicators. We will try to explain about MACD Indicator and it's use in technical analysis. We will also highlight some unique trading strategies. Please note that the explanation here is focused for Forex trading but the same is valid for stocks or any commodity trading.

Table of Contents
  1. MACD Indicator
  2. MACD as momentum oscillator
  3. MACD technical Analysis
  4. MACD and trends
  5. MACD Calculation
    - MACD Formula 
    - MACD Period Setting
  6. MACD Trading Strategies
     - Example of MACD signals
    - MACD Crossover Signals
  7. Convergence and Divergence 
     - Divergence and convergence in technical analysis
  8. Further studies

MACD Indicator

Moving Average Convergence Divergence (MACD) indicator was invented by Gerald Appel in 1960s.

Here we will discuss about MACD, it's construction, types of trading signals with  examples and also an insight of MACD trading strategies.

Moving Average Convergence Divergence is a momentum Oscillator and can be used to determine the momentum of the price action.

MACD is comprised of two EMAs (Exponential Moving Averages) of two different time periods. One for longer time period and another for shorter period, for example EMA for past 12 periods and for past 26 periods.

MACD is unique as it has lagging indicator elements as well as leading elements.

  1. Moving averages are trend-following indicators. Trend following indicators are those which tend to confirm the trend after it has begun and hence are classified as lagging indicators.
  2. However, by taking the differences in the moving averages, this indicator incorporates aspects of momentum or leading elements. This is because it tells us in advance (with a slight lag) about the possibilities of a reversal in the ongoing trend. This is explained later in the following sections.

MACD as Momentum Oscillator

MACD is a momentum oscillator. If the market is having trend, either up or down, then It tells us whether the momentum of the trend is getting stronger or is it weakening. It may give many false signals when the market does not have a trend and is running sideways. False signals are more when the price movement range is narcontainer.

What is momentum:

In trading the momentum is the rate of price increase during uptrend and rate of price decrease during downtrends.

Let's try to have an explanation with an easy example. Let's say we are driving a car and during the travel the speeds have been as follows:

Between 2:00 PM and 3:00 PM the average speed was 100 km/hr.
Between 3:00 PM to 4:00 PM the average speed was 110 km/hr and
During the next hour i.e. between 4:00 PM and 5:00 PM the speed was 111 km/hr.

Now as we see that the average speed has  continuously been increasing. We might get the impression that it was an uptrend as average was continuously getting higher. But it would have been an illusion as we did not consider the momentum. If we notice the average speed during the last leg i.e. speed between 4:00 PM to 5:00 PM, we would see that the momentum of increase in the average speed was dying down. This indicated the possibility that during the next leg, the speed might further go down instead of going up.

Momentum takes out the illusion of the trend even if there is a constant upward or downward movement. And it tells us if the rate of change is slowing down or going up. The drop in  momentum indicates the possibilities of a reversal in the trend.

Buying is signaled when the uptrend is gaining momentum and selling is signaled when the downtrend starts gaining momentum. MACD helps us in doing so.

MACD Technical Analysis

MACD and Trends:

Let's consider a bullish market. Before entering the long position we would like to know if the momentum of the upward momentum is maintained or it is slowing down. In case the uptrend is slowing down then the market might be going for a correction or reversal. That would mean that once we buy, there can be a possibility of a downward correction. The vice-versa is true in the downtrend or bearish market i.e. If the downtrend is slowing down and we enter a short position, the downtrend may go for reversal and an upward move may start. Moving Average Convergence Divergence helps us in estimating the momentum of the trend.

During an uptrend we would like to buy when we find out that the uptrend is gaining momentum  as in that case we can expect further upwards moves. Similarly in a downtrend we would like to enter a short position when the downward momentum is getting stronger as further drop in the price can be expected. Hence knowing about the momentum of the trend is very important and  MACD helps us in  determining that.

MACD Calculation

MACD Formula

MACD= shorter term moving average - longer term moving average.

Period Settings for MACD

The most common period setting for MACD is 26, 12, 9. Now we will see what does it mean and how MACD is constructed.

Here “26” is EMA of previous 26 periods, “12” is EMA of previous 12 periods. And MACD would be the line constructed by joining the points which we get by deducting EMA(26) from EMA(12). In our case it means MACD = EMA for 12 periods – EMA of 26 periods.

Uptrend: If the EMA of previous 12 periods (more recent data) is going over the EMA of 26 periods (longer time frame data), it would indicate that in recent time the market started moving upward. You may also read about moving averages.

Downtrend: If the EMA of previous 12 periods (more recent price) is going below the EMA of 26 periods, it would indicate that in recent time the prices have started going down.

Now how do we find out the momentum by using MACD? Please see the chart 1 below.

Chart 1: 

MACD - Chart 1

If we see the above EUR/USD chart, we find that there is one more line which is known as “MACD Signal Line”.

The Signal line is derived by taking the Exponential Moving Average (EMA) of the MACD line. Here with MACD (26,12, 9) we are taking the EMA of MACD for pervious 9 periods.

Now as we know that if the recent Moving Average (short term moving average) is more than the longer term moving average, it indicates an uptrend as it shows that recently the market is going up.  But how do we find out the momentum of uptrend i.e. if the trend is strong or weak? We find the momentum by comparing the positive difference of the current period to the average difference. For this purpose we need to find out the average difference. This average difference is nothing but the “average” of the differences for past few periods. In our case (MACD 26, 12, 9) it is the average of the differences over past 9 periods. Every technical analysis indicator has some default or most common settings for time period. It is always advisable to use these standard setting. The reason is simple that majority of traders would be using those settings to buy or sell and hence adding momentum to the price trend in those direction.

With MACD (26,12,9) what we are calculating is as follows:

  1. Moving average of closing prices for past 12 periods, say “X”
  2. Moving average of the closing prices for past 26 periods, say “Y”
  3. Difference “X-Y” (MACD). If it is positive then it’s a signal for uptrend and if negative than of downtrend.
  4. Moving average of “X-Y” for past 9 periods, say “Z”
  5. If MACD line (connecting all “X-Y” points) moves above the trigger or signal line (line connecting all “Z” points) then it would indicate that the current rate of upward movement has gone higher than the average rate of previous 9 periods.. This indicates that the uptrend is increasing or gaining momentum and it may be the time to buy.

Opposite of points 1 to 5 above i.e. when the MACD gores below the signal line would indicate the time to sell.

Summary of MACD Construction

  1. The main line, sometimes called as MACD fast line, is calculated by taking the difference between two Exponential Moving Averages (EMAs) - popularly the 12 and 26 period EMAs.
  2. The signal line, sometimes called as the trigger line, is an EMA of the MACD main line. This popularly uses 9 period EMA of the Moving Average Convergence Divergence main line.
  3. The MACD histogram is a bar chart that shows the difference between the two lines (main line and signal line) Mathematically, it is the signal line subtracted from the MACD main line (Histogram = Main Line – Signal Line).
  4. We may also use shorter time periods for shorter time frame trading. Shorter periods can also be used when market is very volatile.

MACD Trading Strategies:

In technical analysis, the main signals we look for are as follows:

  1. Main line crossing the signal line.
  2. MACD main line crossing the center line i.e. moving from positive to negative or vice versa.
  3. Divergence / Convergence.

MACD Crossover Signals:

1) MACD main line crossing signal line (trigger line): 

When the main line crosses the signal line it gives a signal for change.

MACD main line moves over the signal line:

Such move indicates that the recent upward momentum is more than the previous. Now if the MACD was already in positive range, indicating an uptrend then it would mean that the uptrend is getting stronger. If the MACD was in negative range then it may mean that a reversal or upward correction can be expected. Please check charts 2 & 3 below.

A bullish moving average Crossover occurs when the main line moves above its signal line.

MACD main line moves below the signal line:

Such move indicates that the recent downward momentum is getting stronger than the previous. This is just opposite to the bullish signal we explained above. In this case if the MACD was already in negative range then it indicates that the existing downtrend is getting stronger. If the MACD was in positive range then it signals the possibilities of a reversal or correction of the existing uptrend. Please check charts 2 & 3 below.

A bearish moving average Crossover occurs when MACD moves below its signal line.. This crossover below signals that the market is becoming bearish and it may be the  time to sell.

Please keep in mind that MACD works better during a reversal of a trend (uptrend to downtrend or vice-versa) or during the sideways market when the movement range is not very narcontainer

2) MACD main line crossing the center line:

  • A Bullish Center line Crossover occurs when the main MACD line moves above the zero/Center line. This gives a clear signal that momentum has reversed from negative to positive (from downtrend to uptrend).
  • A Bearish Center line Crossover occurs when the main line moves below the zero/Center line. This gives a clear signal that momentum has reversed from positive to negative (from uptrend to downtrend). 

Example of MACD signals

MACD - Chart 2

Please take a note of the points A to F in the above chart for EUR/USD: 

Point A and associated area within the green circle:

The MACD main line moves over the  signal line. This gives a “buy” signal or the signal indicating the possibilities of a correction or reversal of the downtrend.. Please note that before this crossover the MACD was in the negative zone and was representing a bearish market. The price continued moving upwards with minor corrections. .

Point B and associated area within the green circle:

At point “B” the MACD main line crosses over the “Center line”. This again signals that an  uptrend may start. 

Point D and associated area within the red circle:


At point “D” the MACD line moved below the signal line. This gives a signal that we can expect a downward correction or even a reversal of the uptrend. Please note at before this crossover MACD line was in positive zone and was indicating a bullish market. This was the time to sell the already bought lot for EUR/USD. In case we were not holding any bought position before this point “D”, we could short-sell the currency pair here to benefit from the possible downward move.

Point E and associated area within the red circle:

The MACD line started crossing the signal line upward. This singled that the market may start going up. This signal was not a strong signal as the MACD line did not really move up sharply.

Please take a note of areas within the circles in the above charts. Before each crossover there has been a divergence. For example before the crossover at point D, the MACD line had started moving downwards sharply. Similarly within the area of point “E”, the MACD line had started moving upwards sharply before the actual crossover took place. In the area “C”, the MACD line started moving down but this move was not sharp. These sharp divergences may also indicate the possible change of the trend.

Some of the above mentioned points would become more clear later in this article.

Convergence and Divergence

Moving average convergence/divergence (MACD)

Divergence and Convergence in Technical Analysis

In MACD analysis it is not only the crossover signals but we need to watch the developments of the subsequent highs and lows. When the subsequent high or low points (peaks and valleys) in MACD line are going lower than the previous peaks or lows, it may give a good signal for an emerging down trend. Similarly if the subsequent high and low points in MACD line are going higher than the previous ones, it may give a good signal for an emerging uptrend.

Chart 3:

MACD - Chart 3

Chart 4: 

MACD - chart 4

Further Studies

Please check about MACD Histogram to see what is this indicator and how to use it in technical analysis.

Please also check more explanation about MACD Divergence and it's use in trading.

We have also tried to mention about some research on revised MACD trading strategies to avoid number of false trading signals.

You may also like to check some of our trading strategies by combining MACD with RSI and SAR for better trading decisions.

You may also check some good videos about MACD.

We have explained about MACD in the context of technical analysis for Forex trading but it can be used in the same way for stocks or any commodity trading. 

Forex Analysis

Daily Technical Analysis
Weekly Forex Analysis

Forex Trading Alerts


Name:
Email:
Confirm Email:
nq4t8

We will send email alerts as soon as the Forex analysis is updated.
Request you to check the Junk (spam mail) folder immediately in case Google group mail is not received in Inbox.

Enter Forexabode Blog
Enter Forex Abode Community

Forex Rates

Forex Trading