logo
Table of Content

MACD

By HDFC SKY | Published at: Sep 9, 2024 09:03 AM IST

WhatsAppLinkedInX (Twitter)Google Preferred
MACD

Open Free Demat Account

By signing up I certify terms, conditions & privacy policy

Summary

Before we understand moving average convergence divergence (MACD), it will help to quickly recap the concept of moving averages. Moving average is an indicator used in technical analysis to gauge the average price of a stock over a particular time frame.

For instance, if we are looking at the 21-day moving average of a particular stock, it would be the simple arithmetic mean of the close price of the past 21 sessions. In the subsequent session, the closing price of the previous session would be added to calculate the new 21-day average, and the first price of the last series would be removed. You can read about this concept in greater detail in chapter 8.4 – Moving Averages.

Now, let us learn about the MACD indicator. The MACD indicator, developed by Gerald Appel in the late 1970s, is used to analyse the strength, direction, momentum, and duration of a trend in a stock's price.

As the name suggests, the MACD indicator tracks the convergence and divergence between moving averages — a long-term or ‘slow’ moving average (26-day, 50-day, 100-day), and a short-term or ‘fast’ moving average (5-day, 9-day, 12-day).

Convergence is when the two moving averages come close to one another, whereas divergence is when they move away from each other.

Generally, a 12-day EMA and a 26-day EMA are used to calculate the MACD value.

Exponential Moving Average or EMA refers to the weighted moving average that gives more weightage to the most recent price of a stock. This is different from the simple moving average (SMA), which uses an equal distribution of weights for all the prices. Since the latest price of a stock will always be more relevant than older data, the EMA responds faster to price changes than SMA. You can easily calculate the EMA using any charting tools.

MACD value is calculated by subtracting 26-day EMA from the 12-day EMA.

MACD value = 12-day EMA minus 26-day EMA

So, if the 12-day EMA is Rs 100 and the 26-day EMA is Rs 90, MACD value would be +10.

As the MACD value increase, say from +10 to +20, divergence is occurring between 12-day EMA and a 26-day EMA. When the MACD value decreases, say from +10 to +5, convergence is occurring between the 12-day EMA and a 26-day EMA.

Interpretation of MACD

A positive MACD value signals bullish momentum in the stock, as 12-day EMA will be greater than the 26-day EMA only when stock prices are trending upwards. This is because the current market price has a greater influence on the shorter-term moving averages than the longer-term moving averages. Similarly, a negative MACD value indicates bearish momentum in a stock.

When we plot these MACD values over a line graph, it is called the MACD line. And since its value can be both positive and negative, the MACD line moves around the zero line on the price charts.

We can make the following assumptions from the MACD line:

  • MACD above zero signals bullish momentum, while MACD below zero is signals bearish momentum.
  • When MACD moves into the positive territory from below the zero-line on a chart, it indicates divergence between the two moving averages. This means the bullish momentum is picking pace.
  • When MACD moves into the negative territory from above the zero-line on a chart, it indicates convergence. This means the bearish momentum is getting stronger.

Generally, a trader would wait for MACD crossover to enter a trade in the desired direction. However, many technical analysts have argued that the MACD comes with a lag where most of the up/down move would already be done by the time the crossover happens. So, they use what is called a signal line — which plots the nine-day EMA of the MACD along with the MACD line.

Traders look for convergence and divergence between the MACD line and the signal line to draw the following conclusions:

  • When the MACD line converges into the signal line from below, it signals bullish sentiment in the stock. The further below the zero line this convergence/crossover takes place, the stronger the sentiment.
  • When the MACD line converges into the signal line from above, it signals bearish sentiment in the stock. The further above the zero line this convergence/crossover takes place, the stronger the sentiment.
Summarize with AI
Google GeminiChatGPTPerplexity AIAnthropic AIGrok AI

About Author

HDFC SKY

HDFC SKY

Desktop BannerMobile Banner

Invest Anytime, Anywhere

Get it on Google PlayGet it on App Store

Open Free Demat Account Online

By signing up I certify terms, conditions & privacy policy