ArticlePDF Available

A Study On The Effectiveness Of Moving Average Convergence And Divergence (MACD)

Authors:

Abstract

In the digitalized word, it becomes easier to trade in stock but earning profit requires some analysis before investing. Analysis in stock can be categorized into fundamental and technical. Fundamental analysis is based on the performance, financials and future prospects of the company whereas technical analysis is based on the historical market data of stock mainly on stock price and volume. Technical analysis is done through charts and statistical indicators. One of the most popular technical analysis tools is Moving Average Convergence and Divergence shortly called as MACD. MACD can be interpreted in two ways i.e. through Centreline Crossover Strategy and Signal Line Crossover Strategy. The objective of this study is to analyse the effectiveness of the MACD with reference to select stocks in Information Technology Sector being traded in BSE. For this purpose, a comparative study on profitability is made among two strategies of MACD and with Buy and Hold strategy. In the Buy and Hold strategy itself, analysis is done for two variations i.e. buy based on MACD centreline crossover and then hold and Random buy and hold. Extended Internal Rate of Return (XIRR) has been used to measure profitability. Based on the sample data for the population taken for analysis, Centre Line Crossover Strategy is same or more profitable than Signal Line Crossover Strategy and Random Buy and Hold strategy.
Copyright © 2024 by Author/s and Licensed by Kuey. This is an open access article distributed under the Creative Commons Aribution
License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Educational Administration: Theory and Practice
2024, 30(5), 8609-8618
ISSN: 2148-2403
https://kuey.net/ Research Article
A Study On The Effectiveness Of Moving Average
Convergence And Divergence (MACD)
Porselvi R1*, Dr. Meenakshi A2
1*Research Scholar, Vels Institute of Science, Technology & Advanced Studies, Chennai, India
2Associate Professor and Research Supervisor, Vels Institute of Science, Technology & Advanced Studies, Chennai, India
*Corresponding Author: Porselvi R
*Research Scholar, Vels Institute of Science, Technology & Advanced Studies, Chennai, India
Citation: Porselvi R & Dr. Meenakshi A et al. (2024). A Study On The Effectiveness Of Moving Average Convergence And Divergence
(MACD), Educational Administration: Theory and Practice, 30(5), 8609-8618. Doi: 10.53555/kuey.v30i5.3518
ARTICLE INFO
ABSTRACT
In the digitalized word, it becomes easier to trade in stock but earning profit
requires some analysis before investing. Analysis in stock can be categorized into
fundamental and technical. Fundamental analysis is based on the performance,
financials and future prospects of the company whereas technical analysis is based
on the historical market data of stock mainly on stock price and volume. Technical
analysis is done through charts and statistical indicators. One of the most popular
technical analysis tools is Moving Average Convergence and Divergence shortly
called as MACD. MACD can be interpreted in two ways i.e. through Centreline
Crossover Strategy and Signal Line Crossover Strategy. The objective of this study
is to analyse the effectiveness of the MACD with reference to select stocks in
Information Technology Sector being traded in BSE. For this purpose, a
comparative study on profitability is made among two strategies of MACD and
with Buy and Hold strategy. In the Buy and Hold strategy itself, analysis is done
for two variations i.e. buy based on MACD centreline crossover and then hold and
Random buy and hold. Extended Internal Rate of Return (XIRR) has been used to
measure profitability. Based on the sample data for the population taken for
analysis, Centre Line Crossover Strategy is same or more profitable than Signal
Line Crossover Strategy and Random Buy and Hold strategy.
Keywords: Moving Average Convergence and Divergence (MACD), Technical
Analysis, Buy and Hold Strategy, Technical Indicator
Introduction
In the digitalized word, it becomes easier to trade in stock by a common man who has no knowledge about
investing in stock. Opening of online trading and demat account is a simple process nowadays. Mobile apps
made the stock trading at the reach of everyone. Personalized dash board of the trading account helps the
investor to know the holdings and current value of the invested stocks. Personalized dash board also gives more
information about the stock in which the investor is interested to invest. But to make profit and to minimize
loss, analysis about the stock, the price movements and the technical indicators are vital for the investor. Stock
Analysis can be categorized into fundamental analysis and technical analysis.
Fundamental analysis is the analysis of financials through Balance Sheet, Profit and Loss accounts, Cash flows
and financial Ratios. Analysis on competitors and future prospects of the company also part of fundamental
analysis. Technical analysis is the analysis of historical data of the stock price and volume through charts,
trends and other statistical indicators.
Technical analysis is based on few assumptions as given below.
Market discounts everything: It means that the stock price reflects everything about the stock
“Howis more important than “Why”: Technical analysts are interested in knowing ‘howthe price reacts
than ‘why
Price moves in Trend: The stock price establishes a trend and moves in the direction of the trend
History tends to repeat itself: It is based on the assumption that market participants will react in the same
way for the price movements. This will result in the history repeats itself.
8610 Porselvi R & Dr. Meenakshi A et al. (2024)./ Kuey, 30(5), 3518
There are many technical indicators available for technical analysis. One of the most common technical
indicators is Moving Average Convergence and Divergence, shortly called as MACD. It was created by Gerald
Appel in the late 1970’s. Though invented in nineteen seventies, MACD is still considered as one of the most
reliable technical indicators.
What is MACD?
Moving Average Convergence and Divergence (MACD) is about the Convergence and Divergence among two
Exponential Moving Averages (EMA) of the same stock price for two different periods. 12 days and 26 days are
considered as the standard period for MACD calculation though it is not sent in stone. For MACD, EMAs are
being calculated on the closing price. Convergence happens when the 26 days EMA is moving towards 12 days
EMA. Divergence happens when the 26 days EMA is moving away from 12 days EMA. Convergence is a signal
to sell (short) and Divergence is a signal to buy (long). Both are illustrated in Graph 1.
Graph 1
MACD can be said as both Trend and Momentum indicator. Trend indicators analyse the direction and
persistence of the price movements over time. Momentum indicators analyse the speed and strength of price
movements. Trend indicators emphasize on the consistency of price movements whereas momentum
indicators confirm the trends as well as signal the potential trend reversals. MACD performs both.
MACD graph is constructed as explained below.
A. 12 days EMA is calculated on the day’s closing price.
B. 26 days EMA is calculated on the day’s closing price.
C. 26 days EMA is subtracted from 12 days EMA (A-B). These are MACD values and form MACD line.
D. 9 days EMA of MACD values are calculated. These values form Signal line.
E. Signal line values are subtracted from MACD values (C-D). These values form Histogram.
MACD graph is interpreted in two ways as explained below.
1. Centre Line Crossover: When the MACD line crosses above Zero from negative territory, it is assumed as
the signal of bullish trend and stocks can be bought. When the MACD line crosses below Zero from positive
territory, it is assumed as the signal of bearish trend and stocks can be sold. This method is nothing but the
cross over of 12 days EMA with 26 days EMA.
2. Signal Line Crossover: When the histogram crosses above Zero from negative territory, it is assumed as the
signal of bullish trend and stocks can be bought. When the histogram crosses below Zero from positive
territory, it is assumed as the signal of bearish trend and stocks can be sold. This method is nothing but the
cross over of MACD line with Signal line.
Both methods are illustrated in Graph 2.
Graph 2
8611 8153, 30(5), / Kuey.et al. (2024) Porselvi R
This paper is focused on analysing the effectiveness of MACD as an indicator for buy, hold or sell decision. For
this purpose, a study is made on the profitability of Buy and Sell decisions based on MACD and it is compared
with the profitability on Buy and hold decision. In the Buy and Hold decision itself, two variants are used to
analyse i.e. (i) Buy decision based on MACD and then Hold, and (ii) Buy decision taken randomly without
considering MACD and hold. An attempt is also made to analyse the profitability between the two methods of
MACD interpretation i.e. Centre Line Crossover Vs. Signal Line Crossover. This study has been made with
reference to select stocks in Information Technology Sector being traded in BSE namely Tata Consultancy
Services Limited, Infosys Limited, HCL Technologies Limited and Wipro Limited.
Literature Review
Dipak Vishwakarma, Trupti Aod, Ghanshyam Gaur, Prof. Samir Thakkar in their study on “Trading Through
Technical Analysis with MACD”, tested whether the return from investment positions based on MACD tool is
more significant than Buy and Hold Strategy. They also tested whether the return from investment positions
based on EMA tool is more significant than Buy and Hold Strategy. They collected data for the period of 10
years for 3 currency pairs and 3 stocks of Indian companies and done their study. After studying, they found
that different strategies are significant for different currency pairs and for different companies.
Abhisek Khatua, in his study on “An Application of Moving Average Convergence and Divergence (MACD)
Indicator on Selected Stocks Listed On National Stock Exchange (NSE)applied the MACD tool on selected 5
stocks for one year and analysed. He also pointed out the supplementary rules. Buy signals can be more reliable
when the MACD line has crossed above “0” after some time since the recent sell signal is created. Sell signals
can be more reliable when MACD line has crossed below “0” after some time since the recent buy signal is
created.
Alex Spiroglou, in his research on “MACD-V, Volatility Normalised Momentum”, tried to improve existing
classic MACD through new techniques to eliminate its shortcomings. He explained the drawbacks of MACD as
the MACD values are not comparable across time and across securities. Because of these drawbacks, he
mentioned that it is not possible to standardise the intensity of MACD into quantitative such as high Vs low
and/or overbought Vs. Oversold levels. He also pointed out one more drawback of MACD as the MACD signals
are late while high momentum trend reversals. He first tested Percent Price Oscillator (PPO) which is
normalised version of MACD by changing absolute value of MACD into percentage. PPO overcomes the
drawback of comparability across time but not across securities. PPO failed to overcome other drawbacks as
well. He then tested his new technique MACD-V which is volatility normalised momentum by defining MACD
as percentage of Average True Range. He also used histogram MACD-VH which is based on MACD-V. After
testing he found that MACD-V is capable of comparing the values across time and across securities.
Rashesh Vaidya, in his study on “Moving Average Convergence-Divergence (MACD) Trading Rule: An
Application in Nepalese Stock Market (NEPSE)analysed Nepalese stock market for the period 1998-2020
with the help of MACD. He found that high level market fluctuations were seen in FY 2019-20. He also found
that there was more bearish trend in NPSE in the test period and only five percent of trading days were stable
which is the indication of highly unstable and volatile market. He recommended using of candlestick charting
along with MACD for better results.
Yogesh D Mahajan & Krishnamurthy Inumula in their study on “Optimization of MACD and RSI indicators:
An Empirical Study of Indian Equity Market for Profitable Investment Decisions tested the potential
contribution of classical MACD & Relative Strength Indicator (RSI) over Buy and Hold strategy. They also
tested optimised MACD and RSI over classical MACD & RSI and also over Buy and Hold strategy. For this
purpose, they selected 30 stocks from 5 sectors which were traded continuously in NSE for the period of 3
years. They used a range for optimisation. They tested and concluded that Buy and Hold strategy is more
profitable than classical MACD & RSI but normalised MACD & RSI leads to more profitability than classical
MACD & RSI and Buy and Hold strategy.
Dejan Eric, Goran Andjelic & Srdjan Redzepagic in their study on “Application of MACD and RVI indicators as
functions of investment strategy optimization on the financial markettested whether the application of MACD
and Relative Volatility Index (RVI) contribute significantly to the optimization of investment strategy in the
financial market. They have done their study on the stocks which are continually traded on the financial market
of the Republic of Serbia, i.e. Belgrade Stock Exchange Inc. Belgrade for the period of four years from June
2004 and May 2008. They optimised the standard parameter of (12, 26,9) of the MACD indicator as different
time period for each stock based on their study. They used RVI indicator to confirm their optimized value. After
their study, they found that the MACD and RVI indicators are effective in the formulation and optimization of
investment strategy in the financial market of transitional country. They concluded that investment strategy by
the optimization of MACD and RVI indicators is more profitable than the simple buy & hold approach.
8612 Porselvi R & Dr. Meenakshi A et al. (2024)./ Kuey, 30(5), 3518
Gabriel Dan I.Anghel in his study on “Stock market efficiency and the MACD. Evidence from countries around
the world” tested whether MACD is capable of generating surplus returns for an investor if used in world
markets. For this purpose, he selected stocks listed in 75 world stock markets and took the data for 12 years
from 2001 to 2012. He used Standard and Bootstrap method and optimized the testing techniques. He
concluded by saying that weak form market efficiency can be discarded for 34 out of the 75 studied markets
while applying MACD as an investment technique. Based on his study, he ranked the relative market efficiency
of the national stock markets.
Uzeyir Aycel and Yunus Santur in their study on “A new moving average approach to predict the direction of
stock movements in algorithmic trading” back tested 30 stocks in BIST30 by using different approach. He used
moving averages and used golden ratio to weigh the moving average. He compared the Profit Factor of his
approach with MACD, RSI, Stoch, and PSAR and found his approach yield better result.
Ale J. Hejase, Ruba M. Srour, Hussin J. Hejase and Joumana Younis tested MACD in their study on “Technical
Analysis: Exploring MACD in the Lebanese Stock Market”. They found that MACD was ineffective in Lebanese
stock market.
Rommy Pramudya & Sakina Ichsani in their study on “Efficiency of Technical Analysis for the Stock Trading”
experimented whether MACD, RSI and Bollinger Band are capable of predicting buy and sell signals at the right
time. They tested these indicators on LQ45 index. They found that MACD is slow in recognizing the buy and sell
signals comparing to RSI and Bollinger Band.
Salma Khand, Vivake Anand, Muhammad Nadeem Qureshi and Naveeda K. Katper in their study on “The
Performance of Exponential Moving Average, Moving Average Convergence-Divergence, Relative Strength
Index and Momentum Trading Rules in the Pakistan Stock Market”, tested the profitability of few variants of
EMA, MACD, RSI and MOM on KSE-100 index and found they yield more than position trading.
Objectives of the Study
The study has been made with the below objectives.
1. To compare the profitability on buy and sell decisions based on Centre Line Crossover Strategy Vs. Signal
Line Crossover Strategy
2. To compare the profitability on buy and sell decisions based on Centre Line Crossover Strategy Vs. Buy
decision based on Centre Line Crossover and then Hold Strategy
3. To compare the profitability on buy and sell decisions based on Centre Line Crossover Strategy Vs. Buy on
Random day and then Hold Strategy
Research Methodology
Research Design: Descriptive research design is used for this study.
Sources of Data: Collected data which is the closing price of the stocks from the official website of BSE
https://www.bseindia.com/markets/equity/EQReports/StockPrcHistori.html?flag=0
Data Collection method: For this research, Secondary data has been used.
Population: Four Stocks from Information Technology Sector which are being traded in BSE are taken for this
study. They are Tata Consultancy Services Limited, Infosys Limited, HCL Technologies Limited and Wipro
Limited. Stocks are selected based on highest market capitalisation.
Sample Size: Data is collected for one year time period i.e. from 1st April 2023 to 31st March 2024.
Tools used for Data Analysis: The below formulas are used for the analysis of data.
1. EMA is calculated using the below formula
i. Initial EMA=SMA (Simple Moving Average)
ii. EMA= EMA(Previous Day)+(Closing Price - EMA(Previous Day)) X Smoothing Constant
Smoothing Constant= 2/ (time period+1)
It is 0.15 for 12days, 0.07 for 26days and 0.20 for 9 days
Note: SMA= (A1+A2+…..+An)/n where A= Closing Price, n= number of periods
2. MACD values= 12 days EMA - 26 days EMA
3. Signal line values= 9 days EMA of MACD values
4. Histogram= MACD values – Signal line values
Microsoft Excel has been used for the calculations and for graphs.
Profitability is calculated using Extended Internal Rate of Return (XIRR) of the cash flow. It is calculated using
the Excel formula as below.
5. XIRR =XIRR(values, dates) in MS Excel.
8613 8153, 30(5), / Kuey.et al. (2024) Porselvi R
Data Analysis
Analysis is done using the below steps in MS Excel.
1. Date wise closing prices of stock are placed in a table and corresponding values of 12 days EMA, 26
Days EMA, MACD values, Signal line values and Histogram values are calculated as given below in the table
CT 1.
CT 1
The date and the values C, D and E are plotted in graph. For the values of C & D, line chart is used and for E
Value, histogram is used. Secondary axis is used for Histogram values.
2. For the method of MACD Centre Line Crossover, Buy decision is made if the C value is crossing above Zero.
Sell decision is made if C value is crossing below Zero. Date wise closing price for each buy and sell signals
are placed in a separate table. (Table-1)
3. For the method of MACD Signal Line Crossover, Buy decision is made if the E value is crossing above Zero.
Sell decision is made if E value is crossing below Zero. Date wise closing price for each buy and sell signals
are placed in a separate table. (Table-2)
4. To test the second objective, the date and closing price corresponding to the first buy decision is taken from
Table-1. The date and closing price corresponding to the last day of the sample data is taken. Both are placed
in separate table. (Table-3)
5. To test the third objective, the date and closing price corresponding to the first and the last day of the sample
data are taken. Both are placed in separate table. (Table-4)
6. All the Buy prices are converted as negative to facilitate XIRR calculation.
7. XIRR has been calculated for the values of each table i.e. Table-1, Table-2, Table-3 & Table-4.
Findings
For Tata Consultancy Services Ltd, the MACD graph has come as below in Graph 3.
Graph 3
By using the method Centre Line Crossover strategy, 4 Buy signals and 4 Sell signals are identified and placed
in Table-1. For the Signal line Crossover Strategy, 9 Buy signals and 10 Sell signals are identified. The first being
8614 Porselvi R & Dr. Meenakshi A et al. (2024)./ Kuey, 30(5), 3518
the Sell signal on 19th May’23, it is ignored and the rest are placed in Table-2. For MACD Buy and Hold, the
closing price of 27th Apr’23 i.e. the day on which the first Buy signal using Centre Line strategy is identified, is
taken as Buy price. The closing price of the last trading day of sample period i.e. 28th Mar’24 is taken for Hold.
Both are placed in Table-3. For Random Buy and Hold, the closing prices of the first trading day i.e. 3rd Apr’23
and the last trading day i.e. 28th Mar’24 of sample period are taken and placed in Table-4. All the 4 tables are
given below in Result Table 1.
Result Table 1
The XIRR for Centre Line Crossover Strategy, Signal Line Crossover Strategy and Random Buy and Hold
Strategy are same as 20%. For the Buy decision based on MACD Centre Line Crossover and then Hold yield a
profit of 22% for the sample data of Tata Consultancy Services Ltd.
For Infosys Ltd, the MACD graph has come as below in Graph 4.
Graph 4
4 Buy signals and 4 Sell signals are identified using Centre Line crossover strategy and placed in Table-1. 8 Buy
signals and 8 Sell signals are identified using Signal Line crossover strategy and placed in Table-2. It is assumed
that the buy/sell action based on signal is taken though the signal changes on the next day i.e. on 2nd Feb’24 in
Table-2. For MACD Buy and Hold, the closing price of 30th May’23 i.e. the day on which the first Buy signal
8615 8153, 30(5), / Kuey.et al. (2024) Porselvi R
using Centre Line strategy is identified, is taken as Buy price. The closing price of the last trading day of sample
period i.e. 28th Mar’24 is taken for Hold. Both are placed in Table-3. For Random Buy and Hold, the closing
prices of the first trading day i.e. 3rd Apr’23 and the last trading day i.e. 28th Mar’24 of sample period are taken
and placed in Table-4. All the 4 tables are given below in Result Table 2.
Result Table 2
The XIRR for Centre Line Crossover Strategy is 26% whereas the XIRR for Signal Line Crossover is 23%. For
the Buy decision based on MACD Centre Line Crossover and then Hold yield a profit of 16% whereas the
Random Buy on 3rd Apr’23 and then Hold yield only 6% for the sample data of Infosys Ltd.
For HCL Technologies Ltd, the MACD graph has come as below in Graph 5.
Graph 5
3 Buy signals and 3 Sell signals are identified using Centre Line crossover strategy and placed in Table-1. 11 Buy
signals and 11 Sell signals are identified using Signal Line crossover strategy and placed in Table-2. It is
assumed that the buy/sell action based on signal is taken though the signal changes on the next day on 20th
Oct’23, 24th & 25th Jan’24 in Table-2. For MACD Buy and Hold, the closing price of 11th May’23 i.e. the day on
which the first Buy signal using Centre Line strategy is identified, is taken as Buy price. The closing price of the
Infosys Ltd
Date price Signal Date price Signal Date price Signal Date price Signal
30-May-23 -1,322.90 Buy 16-May-23 -1,264.15 Buy 30-May-23 -1,322.90 Buy 03-Apr-23 -1,410.95 Buy
08-Jun-23 1,283.10 Sell 09-Jun-23 1,266.00 Sell 28-Mar-24 1,498.80 Hold 28-Mar-24 1,498.80 Hold
20-Jun-23 -1,303.15 Buy 13-Jun-23 -1,305.35 Buy
22-Jun-23 1,282.60 Sell 22-Jun-23 1,282.60 Sell
30-Jun-23 -1,335.20 Buy 30-Jun-23 -1,335.20 Buy
17-Oct-23 1,442.70 Sell 24-Jul-23 1,337.25 Sell
21-Nov-23 -1,439.40 Buy 09-Aug-23 -1,394.30 Buy
05-Mar-24 1,606.20 Sell 11-Aug-23 1,372.00 Sell
16-Aug-23 -1,418.50 Buy
22-Sep-23 1,496.00 Sell
07-Nov-23 -1,404.35 Buy
02-Jan-24 1,534.95 Sell
15-Jan-24 -1,652.00 Buy
01-Feb-24 1,656.45 Sell
02-Feb-24 -1,693.85 Buy
09-Feb-24 1,669.65 Sell
XIRR 26% XIRR 23% XIRR 16% XIRR 6%
Table-1
(Centre Line Crossover)
Table-2
(Signal Line Crossover)
Table-3
(MACD Buy and Hold)
Table-4
(Random Buy and Hold)
8616 Porselvi R & Dr. Meenakshi A et al. (2024)./ Kuey, 30(5), 3518
last trading day of sample period i.e. 28th Mar’24 is taken for Hold. Both are placed in Table-3. For Random
Buy and Hold, the closing prices of the first trading day i.e. 3rd Apr’23 and the last trading day i.e. 28th Mar’24
of sample period are taken and placed in Table-4. All the 4 tables are given below in Result Table 3.
Result Table 3
The XIRR for Centre Line Crossover Strategy is 44% whereas the XIRR for Signal Line Crossover is 36%. For
the Buy decision based on MACD Centre Line Crossover and then Hold yield a profit of 49% and the Random
Buy on 3rd Apr’23 and then Hold yield 41% for the sample data of HCL Technologies Ltd.
For Wipro Ltd, the MACD graph has come as below in Graph 6.
Graph 6
2 Buy signals and 2 Sell signals are identified using Centre Line crossover strategy and placed in Table-1. 8 Buy
signals and 8 Sell signals are identified using Signal Line crossover strategy and placed in Table-2. It is assumed
that the buy/sell action based on signal is taken though the signal changes on the next day on 18th Oct’23 in
HCL Technologies Limited
Date price Signal Date price Signal Date price Signal Date price Signal
11-May-23 -1,088.20 Buy 08-May-23 -1,075.40 Buy 11-May-23 -1,088.20 Buy 03-Apr-23 -1,098.40 Buy
13-Jul-23 1,109.20 Sell 08-Jun-23 1,127.00 Sell 28-Mar-24 1,543.30 Hold 28-Mar-24 1,543.30 Hold
18-Jul-23 -1,167.30 Buy 20-Jun-23 -1,168.20 Buy
21-Jul-23 1,116.75 Sell 07-Jul-23 1,157.05 Sell
11-Aug-23 -1,171.35 Buy 04-Aug-23 -1,144.25 Buy
21-Mar-24 1,597.30 Sell 28-Aug-23 1,147.00 Sell
01-Sep-23 -1,185.40 Buy
25-Sep-23 1,263.40 Sell
19-Oct-23 -1,267.50 Buy
20-Oct-23 1,258.65 Sell
31-Oct-23 -1,276.85 Buy
10-Nov-23 1,253.60 Sell
16-Nov-23 -1,311.05 Buy
06-Dec-23 1,329.65 Sell
08-Dec-23 -1,362.90 Buy
02-Jan-24 1,469.15 Sell
12-Jan-24 -1,543.00 Buy
23-Jan-24 1,522.85 Sell
24-Jan-24 -1,575.20 Buy
25-Jan-24 1,551.00 Sell
07-Feb-24 -1,614.95 Buy
21-Feb-24 1,635.65 Sell
XIRR 44% XIRR 36% XIRR 49% XIRR 41%
Table-1
(Centre Line Crossover)
Table-2
(Signal Line Crossover)
Table-3
(MACD Buy and Hold)
Table-4
(Random Buy and Hold)
8617 8153, 30(5), / Kuey.et al. (2024) Porselvi R
Table-2. For MACD Buy and Hold, the closing price of 6th July’23 i.e. the day on which the first Buy signal
using Centre Line strategy is identified, is taken as Buy price. The closing price of the last trading day of sample
period i.e. 28th Mar’24 is taken for Hold. Both are placed in Table-3. For Random Buy and Hold, the closing
prices of the first trading day i.e. 3rd Apr’23 and the last trading day i.e. 28th Mar’24 of sample period are taken
and placed in Table-4. All the 4 tables are given below in Result Table 4.
Result Table 4
The XIRR for Centre Line Crossover Strategy is 50% whereas the XIRR for Signal Line Crossover is 45%. For
the Buy decision based on MACD Centre Line Crossover and then Hold yield a profit of 30% and the Random
Buy on 3rd Apr’23 and then Hold yield 31% for the sample data of Wipro Ltd.
Profitability Consolidated
For comparison purpose, we have put the profitability i.e. XIRR% obtained through all the four strategies as
below in Result Table 5.
Result Table 5
The profitability of the Centre Line Crossover strategy is same as that of Signal Line Crossover Strategy for the
stocks of Tata Consultancy Services Ltd. The profitability of the Centre Line Crossover strategy is higher than
that of Signal Line Crossover Strategy for the stocks of Infosys Ltd, HCL Technologies Ltd and Wipro Ltd.
The profitability of Buy and Sell based on the signals of Centreline Crossover strategy is higher than Buy based
on the signal of MACD Centreline Crossover and then hold strategy for the stocks of Infosys Ltd and Wipro Ltd.
But the same is lower for the stocks of Tata Consultancy Services Ltd and HCL Technologies Ltd.
The profitability of Buy and Sell based on the signals of Centreline Crossover strategy is the same as that of
Random Buy and then Hold strategy for the stock Tata Consultancy Services Ltd. But the same is higher for the
stocks of Infosys Ltd, HCL Technologies Ltd and Wipro Ltd.
Limitations of the Study
1. Four stocks alone from the same sector of Information Technology has been taken for analysis.
2. The closing price of the signal days are taken for calculating the profitability. In real life, opening price of
next day need not be the same. So, the price may vary a little while implementing the decision.
3. The transactions costs are not considered for the calculation of profitability.
4. The Buy/ Sell signals are taken into effect even if these happen on the consecutive day.
Date price Signal Date price Signal Date price Signal Date price Signal
Table-1
(Centre Line Crossover)
Table-2
(Signal Line Crossover)
Table-3
(MACD Buy and Hold)
Table-4
(Random Buy and Hold)
Profitability
Centre Line
Crossover
Signal Line
Crossover
MACD Buy and
Hold
Random Buy
and Hold
Tata Consultancy Services Ltd 20% 20% 22% 20%
Infosys Ltd 26% 23% 16% 6%
HCL Technologies Ltd 44% 36% 49% 41%
Wipro Ltd 50% 45% 30% 31%
8618 Porselvi R & Dr. Meenakshi A et al. (2024)./ Kuey, 30(5), 3518
Conclusion
Based on the sample data for the population taken for analysis, Centre Line Crossover Strategy is same or more
profitable than Signal Line Crossover Strategy and Random Buy and Hold strategy. But the Centre Line
Crossover Strategy is lesser profitable than Buy based on MACD Centre Line Crossover and then Hold strategy
for 50% of population and is more profitable for 50% of the population taken for study. But the result can be
more effective to follow if the same analysis is done for more number of stocks from different sectors.
References
1. Ale J. Hejase, Ruba M. Srour, Hussin J. Hejase and Joumana Younis, Technical Analysis: Exploring
MACD in the Lebanese Stock Market, Journal of Research in Business, Economics and Management, April
2017
2. Dejan Eric, Goran Andjelic & Srdjan Redzepagic, Application of MACD and RVI indicators as functions of
investment strategy optimization on the financial market, Journal of Economics and Business, June 2009
3. Dipak Vishwakarma, Trupti Aod, Ghanshyam Gaur, Prof. Samir Thakkar, Trading Through Technical
Analysis with MACD, International Journal of Creative Research Thoughts, March 2021
4. Gabriel Dan I.Anghel, Stock market efficiency and the MACD. Evidence from countries around the world,
Procedia Economics and Finance, December 2015
5. Khatua, Abhisek, An Application of Moving Average Convergence and Divergence (MACD) Indicator on
Selected Stocks Listed on National Stock Exchange (NSE) (November 19, 2016) Available at
SRN: https://ssrn.com/abstract=2872665 or http://dx.doi.org/10.2139/ssrn.2872665
6. Melvin Macutong, MACD -Moving Average Convergence Divergence Trading Guide,
https://www.academia.edu/42348803/MACD_Moving_Average_Convergence_Divergence_Trading
_Guide?email_work_card=view-paper
7. Rashesh Vaidya, Moving Average Convergence-Divergence (MACD) Trading Rule: An Application in
Nepalese Stock Market (NEPSE, Quantitative Economics and Management Studies, November 2020
8. Rommy Pramudya & Sakina Ichsani, Efficiency of Technical Analysis for the Stock
9. Trading, International Journal of Finance & Banking Studies, Vol 9 No 1, 2020
10. Salma Khand, Vivake Anand, Muhammad Nadeem Qureshi and Naveeda K. Katper, The Performance of
Exponential Moving Average, Moving Average Convergence-Divergence, Relative Strength Index and
Momentum Trading Rules in the Pakistan Stock Market, Indian Journal of Science and Technology, July
2019
11. Spiroglou, Alex, MACD-V: Volatility Normalised Momentum (May 3, 2022). Available at
SSRN: https://ssrn.com/abstract=4099617 or http://dx.doi.org/10.2139/ssrn.4099617
12. Uzeyir Aycel & Yunus Santur, A new moving average approach to predict the direction of stock movements
in algorithmic trading, Journal of New Results in Science, April 2022
13. Yogesh D Mahajan & Krishnamurthy Inumula, Optimization of MACD and RSI indicators: An Empirical
Study of Indian Equity Market for Profitable Investment Decisions, Asian Journal of Research in Banking
and Finance, December 2015
14. https://zerodha.com/varsity/chapter/indicators-part-2/
15. https://www.fidelity.com/learning-center/trading-investing/technical-analysis/technical-indicator-
guide/macd
16. https://howtoexcel.net/2022/01/how-to-create-a-macd-chart.html
17. https://www.senatormensch.com/momentum-indicators-vs-trend-indicators/
18. https://www.moneyworks4me.com/best-index/top-stocks/top-it-companies-list
19. https://www.bseindia.com/markets/equity/EQReports/StockPrcHistori.html?flag=0
... Moving averages can be classified into Simple Moving Averages (SMA) and Exponential Moving Averages (EMA), each offering different sensitivity to price changes. For example, EMAs give more weight to recent prices, making them more responsive to market fluctuations (Porselvi & Meenakshi, 2024). ...
... The MACD is calculated by subtracting the 26-period EMA from the 12-period EMA, generating a MACD line that can be analyzed in conjunction with a signal line. When the MACD line crosses above the signal line, it may indicate a bullish trend, while a crossover below can signal a bearish trend (Porselvi & Meenakshi, 2024). ...
... Indicators such as moving averages, Relative Strength Index (RSI), and Moving Average Convergence Divergence (MACD) are employed to determine optimal entry and exit points. This integration allows for a more nuanced approach to investment decisions, combining the long-term insights of FA with the short-term signals provided by TA (Porselvi & Meenakshi, 2024) To synthesize findings from the literature effectively, both qualitative and quantitative methodologies should be applied. Comprehensive reviews of existing studies can highlight successful strategies and reveal gaps, structuring analysis around themes such as the effectiveness of TA and FA under different market conditions and the impact of specific indicators on investment outcomes (Damodaran, 2012). ...
Article
In an increasingly interconnected global financial landscape, investors seek effective strategies for managing portfolios across borders. This review paper examines the integration of Technical Analysis (TA) and Fundamental Analysis (FA) in forecasting cross-border capital flows, focusing on the unique contexts of Thailand, United Kingdom, and Japan. TA utilizes historical price data and indicators such as moving averages and Relative Strength Index (RSI) to inform short-term trading decisions (Murphy, 1999), while FA assesses the intrinsic value of securities based on economic indicators, financial health, and market conditions to guide long-term investment strategies (Graham & Dodd, 2009). By synthesizing existing literature, this paper highlights the theoretical frameworks that support the combined use of TA and FA, aiming to bridge the gap between immediate market movements and longterm economic fundamentals. The review identifies key studies that demonstrate the efficacy of integrating both approaches, suggesting that this combined methodology can enhance forecasting accuracy and improve investment outcomes. Through case studies of Thailand, United Kingdom, and Japan, the paper illustrates the practical applications of this combined analysis. In Thailand, local economic indicators and political events shape capital flows in the UK, macroeconomic factors such as Brexit and monetary policy play crucial roles and in Japan, unique market characteristics and technological advancements influence investor behavior. Ultimately, this review advocates for a holistic approach to investment analysis, emphasizing the need for further research into the synergistic effects of TA and FA in international portfolio management.
... Technical analysis is a method for predicting the future price movements of the market by evaluating historical market data and trading volumes. Technical analysis indicators such as RSI (Relative Strength Index) [1], MACD (Moving Average Convergence Divergence) [2] and Bollinger Bands [3] help traders identify market trends and potential trading points. However, these indicators may not be sufficient when market conditions change suddenly. ...
Conference Paper
Full-text available
Cryptocurrency markets differ significantly from global financial markets due to the high volatility and rapidity of price movements, making it difficult for investors to develop effective strategies. While technical analysis predicts price movements sing historical price data and trading volume, artificial intelligence methods are at the forefront of extracting meaningful and accurate models from large data sets. This study aims to increase the accuracy of price forecasts in cryptocurrency markets by integrating technical analysis and artificial intelligence methods. A hybrid model was created by integrating technical analysis indicators (RSI, MACD, Bollinger Bands) and three different machine learning (Support Vector Machines (SVM), Decision Trees and Random Forest). Metrics such as Mean Square Error (MSE), Root Mean Square Error (RMSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), R-square (R²) and Adjusted R-square (Adjusted R²) were used to evaluate the model performance. According to the study, the Random Forest model was able to predict price movements in cryptocurrency markets with an accuracy rate of over 95%. The obtained accuracy rate shows that the Random Forest model effectively captures market movements and provides investors with more reliable trading signals. In a case study using five different cryptocurrencies - Ethereum, Ripple, Litecoin, Cardano and Polkadot - it was observed that the hybrid model improves the accuracy of price predictions. Hybrid models provide a higher level of accuracy and reliability than models using only technical analysis or artificial intelligence methods. These results demonstrate the potential of integrating technical analysis and artificial intelligence to improve price forecasts in cryptocurrency markets and provide an important foundation for future research.
... In this case we decided to use several moving averages that will be defined in later sections. Moving averages are some of the most frequently used indicators for stock performance [5][6][7][8][9] and they are easily obtained. ...
Article
Full-text available
Narrow markets are typically considered those that due to limited liquidity or peculiarities in its investor base, such as a particularly high concentration of retail investors, make the stock market less efficient and arguably less predictable. We show in this article that neural networks, applied to narrow markets, can provide relatively accurate forecasts in narrow markets. However, practical considerations such as potentially suboptimal trading infrastructure and stale prices should be taken into considerations. There is ample existing literature describing the use of neural network as a forecasting tool in deep stock markets. The application of neural networks to narrow markets have received much less literature coverage. It is however an important topic as having reliable stock forecasting tools in narrow markets can help with the development of the local stock market, potentially also helping the real economy. Neural networks applied to moderately narrow markets generated forecasts that appear to be comparable, but typically not as accurate, as those obtained in deep markets. These results are consistent across a wide range of learning algorithms and other network features such as the number of neurons. Selecting the appropriate network structure, including deciding what training algorithm to use, is a crucial step in order to obtain accurate forecasts.
Article
Full-text available
There are two types of analysis done for a stock market. One is fundamental analysis, where an investor looks at an intrinsic value of the stock, and another is technical analysis, where investors determine the future trend of the market looking at the current pattern or trend of the market. This paper is focused on one of the technical analysis tools, i.e., Moving Average Convergence-Divergence. It is a tool based on the three exponential moving average (9-12-26 EMA Rule). The MACD analysis, with the help of a single line, was helpful to find out the exact bullish and the bearish trend of the Nepse. A signal line is a benchmark to determine the stock market moving either to a bullish or bearish trend. It can help an investor, where the market is going in a direction. A market convergence, divergence, and crossover were better identified with the help of the MACD histogram. The paper found that the Nepse return was stable for a very minimal period from 1998-99 to 2019-20. The shift from the bullish to bearish or vice-verse were seen easily identified with the help of a MACD histogram. Finally, a better-combined knowledge of moving average and candlestick chart analysis will help an investor, to put a clear picture of a market trend with the help of MACD analysis.
Article
Full-text available
The stock markets have shown a great growth in the financial world that required traders to deal with many quantitative methods to analyze markets in order to predict commodities’ future prices. This study assesses the effect of technical analysis on the Lebanese stock markets by using a tool known as the Moving Average Convergence/Divergence (MACD) oscillator that explores how MACD can be utilized to optimize profits in the Lebanese stock exchange, during the trading process. The study is performed on closing prices of shares of six Lebanese banks and a real estate company, over a time period extending from the beginning of the year 2004 till the end of the year 2014. Results are meant to indicate whether MACD is able to optimize profits and forecast the Lebanese stock prices. It is concluded that the application of MACD in the decision making process for investing in the Lebanese stock market does not significantly contribute to the maximization of profitability on investments.
Article
Full-text available
This paper assesses the state of informational efficiency in stock markets of 75 countries around the world by empirically evaluating the economically relevance of a very popular technical analysis indicator, namely the Moving Average Convergence Divergence. There are many published papers that evaluate market efficiency around the world, but none looks at as many countries as this one does. In total, 1336 companies are selected in the sample, with temporal data starting January 1st 2001 and ending December 31, 2012. The methodology used here is based on trading simulation using an optimized trading rule that is applied on out of sample quotes. To be in accordance with the latest guidelines in the field, several statistical tests, including a bootstrap based one, are performed to validate the estimators, thus ensuring bias-free results and more relevant conclusions. Several important statements can be made based on the obtained results, the most important being that traders using the MACD as an technical analysis investment method on the stock market could some times and for certain companies obtain abnormal cost and risk adjusted returns, this pointing out that the world's stock markets present important inefficiencies.
Article
Full-text available
The determination of trends and prediction of stock prices is one of the main tasks of the MACD (Moving Average Convergence Divergence) and the RVI (Relative Volatility Index) indicators of the technical analysis. The research covers the sample representing stocks which are continually traded on the fi nancial market of the Republic of Serbia. Subject of this research is to determine the possibility of MACD and RVI indicators application in investment decision making processes on the fi nancial market of the Republic of Serbia. The main goal of the research is to identify the most profi table parameters of the MACD and RVI indicators as functions of investment strategy optimization on the fi nancial market. The main hypothesis of the research is that the application of the MACD and RVI indicators of technical analysis signifi cantly contributes to investment strategy optimization on the fi nancial market. The applied methodology during the research includes analyses, synthesis and statistical/ mathematical methods with special focus on the method of moving averages. Research results indicate signifi cant possibilities in application of MACD and RVI indicators of technical analysis as functions of making optimum decisions on investment. According to the obtained results it is concluded that the application of the optimized MACD and RVI indicators of technical analysis in decision making process on investing on the fi nancial market signifi cantly contributes maximization of profi tability on investments.
Article
This study is aimed at undertaking technical analysis of selected companies included in the CNX Nifty. Technical Analysis is widely used by traders for trading decisions in the stock market especially intraday trading. Various technical indicators like the moving averages or momentum indicators assist the traders in decision making. One such trend indicator is the Moving Average Convergence and Divergence (MACD) indicator. This working paper analyses the application of MACD indicator on selected five stocks from the National Stock Exchange (NSE). Certain precautionary measures have also been suggested for successful implementation of the indicator. This project also demonstrates how MACD can be of valuable use for the investors in marking their investment decisions.
Trading Through Technical Analysis with MACD
  • Dipak Vishwakarma
  • Trupti Aod
  • Ghanshyam Gaur
  • Prof Samir
  • Thakkar
Dipak Vishwakarma, Trupti Aod, Ghanshyam Gaur, Prof. Samir Thakkar, Trading Through Technical Analysis with MACD, International Journal of Creative Research Thoughts, March 2021
Uzeyir Aycel & Yunus Santur, A new moving average approach to predict the direction of stock movements in algorithmic trading
Uzeyir Aycel & Yunus Santur, A new moving average approach to predict the direction of stock movements in algorithmic trading, Journal of New Results in Science, April 2022