The Moving Average Convergence Divergence (MACD) is a popular technical analysis indicator used to identify trend reversals, momentum shifts and potential trade opportunities in the financial markets.
The MACD indicator is composed of three components:
MACD Line - The MACD line is calculated by subtracting the 26-period Exponential Moving Average (EMA) from the 12-period EMA.
Signal Line - The signal line is a 9-period EMA of the MACD line.
Histogram - The histogram represents the difference between the MACD line and the signal line.
The MACD line and the signal line oscillate around the zero line. When the MACD line crosses above the signal line, it is considered a bullish signal, indicating that upward momentum may be increasing. Conversely, when the MACD line crosses below the signal line, it is considered a bearish signal, indicating that downward momentum may be increasing.
The MACD histogram is a visual representation of the difference between the MACD line and the signal line. When the histogram is positive, it suggests that the MACD line is above the signal line, which is a bullish signal. When the histogram is negative, it suggests that the MACD line is below the signal line, which is a bearish signal.
Here is an example of the MACD calculation:
Calculate the 12-period EMA:
EMA = (Current Price - Previous EMA) x (2 / 13) + Previous EMA
Calculate the 26-period EMA:
EMA = (Current Price - Previous EMA) x (2 / 27) + Previous EMA
Calculate the MACD Line:
MACD Line = 12-period EMA - 26-period EMA
Calculate the Signal Line:
Signal Line = 9-period EMA of the MACD Line
Calculate the Histogram:
Histogram = MACD Line - Signal Line
Traders can use the MACD indicator to identify potential buy or sell signals. For example, if the MACD line crosses above the signal line, traders may consider this a potential bullish signal and look for opportunities to buy. Conversely, if the MACD line crosses below the signal line, traders may consider this a potential bearish signal and look for opportunities to sell.
Register for our FREE course below for a more detailed video explanation which we cover in one of the modules.