<table>
<thead>
<tr class="header">
<th><img src="66d1bb6a03919_media/media/image1.png" style="width:1.28424in;height:0.50442in" /></th>
<th><blockquote>
<p>Available online at</p>
<p>https://jcrinn.com/<br />
https://crinn.conferencehunter.com/</p>
</blockquote></th>
<th><strong>Journal of Computing Research and Innovation</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td></td>
<td>Journal of Computing Research and Innovation 9(2) 2024</td>
<td></td>
</tr>
<tr class="even">
<td>www.jeeir.com</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>

**A Multi-Indicator Approach to Forecast Nifty50 and Bank Nifty Index Movement Insights From Indian Market**

> Braj Kishor Verma<sup>1</sup>, Shambhavi Srivastavv<sup>2</sup>

*<sup>1</sup>(Electrical Engg, Shri Ramswaroop Memorial college of Engineering and Management, Lucknow, India)*

*<sup>2</sup>(Artificial Intelligence and Machine Learning, Shri Ramswaroop Memorial college of Engineering and Management, Lucknow, India)*

<table>
<thead>
<tr class="header">
<th>ARTICLE INFO</th>
<th></th>
<th>ABSTRACT</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><p><em>Article history:</em></p>
<p>Received XXMonth 2024</p>
<p>RevisedXXMonth 2024</p>
<p>AcceptedXX Month 2024</p>
<p>Online first</p>
<p>Published1 September 2024</p></td>
<td></td>
<td><h2 id="this-research-paper-explores-the-effectiveness-of-three-prominent-technical-indicatorsmoving-averages-ma-relative-strength-index-rsi-and-moving-average-convergence-divergence-macdin-analyzing-the-nifty-50-and-bank-nifty-indices.-by-combining-these-indicators-the-study-aims-to-develop-a-comprehensive-framework-for-accurate-market-forecasting.-the-paper-investigates-the-optimal-time-periods-for-moving-averages-the-reliability-of-rsi-in-identifying-overbought-and-oversold-conditions-and-the-effectiveness-of-macd-in-pinpointing-potential-buy-and-sell-signals.-the-findings-suggest-that-a-combined-application-of-these-indicators-can-significantly-improve-the-accuracy-of-market-predictions-providing-valuable-insights-for-traders-and-investors.">This research paper explores the effectiveness of three prominent technical indicators—Moving Averages (MA), Relative Strength Index (RSI), and Moving Average Convergence Divergence (MACD)—in analyzing the Nifty-50 and Bank Nifty indices. By combining these indicators, the study aims to develop a comprehensive framework for accurate market forecasting. The paper investigates the optimal time periods for moving averages, the reliability of RSI in identifying overbought and oversold conditions, and the effectiveness of MACD in pinpointing potential buy and sell signals. The findings suggest that a combined application of these indicators can significantly improve the accuracy of market predictions, providing valuable insights for traders and investors.</h2></td>
</tr>
<tr class="even">
<td><p><em>Keywords:</em></p>
<p>MA</p>
<p>RSI</p>
<p>MACD</p>
<p>Market benchmark</p>
<p>Nifty-50</p>
<p>Bank Nifty</p>
<p>Price direction.</p>
<p><em>DOI:</em></p>
<p>10.24191/jcrinn.v9i2</p></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>

1.  **Introduction**

> In the dynamic world of major Indian stock Indices- Nifty-50 and Bank Nifty, effective analysis tools are necessary to forecast the market movement and make conscious and informed decisions. Considering some of the prominent technical indicators used in the Nifty-50 and Bank Nifty Index Analysis, wiz Moving Averages, Relative Strength Index, and Moving Average Convergence Divergence. These indicators provide peculiar insights into market trends and momentums, enabling traders to develop robust trading programs.

## Nifty-50 comprises the presentation of the largest fifty companies enlisted on the National Stock Exchange of India. These companies span different sectors, providing a diverse view of the Indian economy. Research often has a clear-cut focus on its forecasting power for economic growth, it is efficient in capturing market trends, and it is widely used in portfolio management and risk assessment.

## Bank Nifty, on the flip side, consists of the most eminent banking stocks in India. It comprises of 12 banks that are most traded and active on the exchanges. This index is pivotal for analyzing the value of the banking sector, which is often regarded as barometer for all-inclusive economy given the role of the sector in financial intermediation and economic activity.

## Simple Moving Averages are foundational tools in practical analysis that even out value data to recognize the direction of the trend. By aggregating the value data over a particular period, MA filters out the "noise" from random price fluctuations. There exist two different types of MA which comprise –the moving average (MA) or (MA) and the Exponential Moving Average (EMA). Only key difference between two is that MA provide equal weight to whole data points in same period, unlike EMA which provide more weight to recent prices, making it comparatively more responsive to new information. The overcrossing of short and long-term MA is one of the prevailing strategies used to signal entry and exit positions in trades.

## Relative Strength Index is a technical indicator that uses a scale ranging from 0 to 100 to measure the speed and the change in the price action. Generally, a Relative Strength Index above seventy shows the stock is highly bought, whereas a Relative Strength Index under thirty shows that the stock is in highly sold condition and could be poised for a rebound. RSI helps traders pinpoint highly bought conditions and oversold conditions in the market, specifying early signals for potential trend reversals. The contrast between the RSI and price action also signals the upcoming shifts in market trends.

## Moving Average Convergence Divergence is a technical indicator that indicates the relationship between the trends of the two moving averages of the price of Nifty-50 and Bank Nifty. It comprises the MACD line, signal line, and a histogram. Moving Average Convergence Divergence line is obtained by subtracting the longer-term MA (usually 26 periods) from the shorter-term MA (typically 12 periods). The signal line is a 09-period MA of the Moving Average Convergence Divergence line, which helps in determining potential buy and sells signals when it crosses the MACD line. The histogram visually depicts dissimilarity between the Moving Average Convergence Divergence and signal lines, offering a clear indication of the price change.

## When we use these indicators in combination they can depict a selective view of the stock market. To illustrate, combining the bullish crossover in the MACD with the RSI moving out of the oversold region can build up the buy signal. Likewise, integrating RSI with MACD and moving averages can boost the precision of trend detection as well as the timing of trade entries and exits.

## This incorporative approach to technical inspection allows traders to capitalize on different conditions of the market, improving their ability to predict Nifty-50 and Bank Nifty Index movements and to make strategic decisions. This synergy comprises Moving Averages, RSI and MACD forms a high-powered analytical framework which enhances the accuracy and reliability of stock production analysis.

**2.0 Literature review**

## Technical analysis in index trading encompasses different indicators that predict market movements and aid in making informed trading decisions.

## The Nifty-50, formally known as a Nifty Index, is Indian stock index, which is presenting the performance of the largest fifty companies listed in the National Stock Exchange. (Gupta, 2019).

## This index serves as a crucial benchmark for investors, offering insights into the large market trends & economic conditions in India. (Sharma, 2018)

## The Nifty-50 encompasses companies from different sectors such as the IT sector, FMCG sector, the Auto sector, consumer goods, and pharmaceuticals, providing a diversified representation of the Indian economy. (Rao \&Saha, 2017)

## The history of Nifty 50 dates back to April 22, 1996, when it was launched by the National Stock Exchange (NSE) to provide investors with a reliable benchmark for tracking the valuation of the Indian equity market. (Gupta, 2019).

## Initially comprising 50 stocks, the index has undergone periodic reviews and revisions to ensure it remains reflective of the evolving market landscape. (Kumar & Gupta, 2018) Over the years, Nifty 50 has emerged as one of the most generally tracked index in India, serving as the point indicator of market sentiment & economic health. (Sharma, 2018) As India's financial markets continue to grow and mature, Nifty 50 remains an essential tool for investors, policymakers, and market participants alike. (Rao \&Saha, 2017)

## Bank-Nifty, also called as the Nifty-Bank index, is stock index comprising the most prominent banking stocks listed on the National Stock Exchange (NSE) of India. (Patel & Srivastava, 2019)

## It serves as a key benchmark for tracking the performance of the banking sector, which plays a crucial role in driving economic growth and financial stability. (Singh \&Tripathi, 2020) 

## Bank-Nifty gives investors with insights into health and trends of the banking industry, encompassing various segments such as commercial banks, private banks, and non-banking financial institutions. (Rao & Saha, 2017)

## The history of Bank Nifty traces back to its inception in 2000 when the National Stock Exchange (NSE) introduced it as a sectoral index to gauge the performance of the banking sector. (Patel & Srivastava, 2019) Over the years, Bank Nifty has evolved into a widely tracked index, serving as a vital barometer for investors, analysts, and policymakers to assess the banking industry's dynamics and its impact on the broader economy. (Singh \&Tripathi, 2020) As India's financial markets continue to grow and develop, Bank Nifty remains a pivotal instrument for understanding and navigating the complexities of the banking sector. (Rao \&Saha, 2017)

## The Simple Moving Averages are important tools in market analysis that help smooth out valuable data to reveal trends over time. There are 2 main types: Moving Averages and Exponential Moving-Averages. MAs calculate the average of a specific range of values by the number of periods in that range, while EMAs give more weight to recent prices, making them more responsive to new information (Elder, 1993; Hull, 2017). 

## Traders use moving averages to recognize trend-directional reversal points. A joint strategy is the crossover method, where a Short Term MA crossing above a Long-Term MA signals a bullish trend, and a cross below signals a bearish trend. This method helps in generating entry and exit points in trades (Wilder, 1978; Brown, 1999). 

## The application of moving averages extends beyond simple trend identification. MA is also used to decide the support and the resistance. For instance, a security's price might bounce off its two hundred day MA multiple times, indicates a good support level. Similarly, MA may work as support and resistance, adjusting as the price moves, which provides more current and relevant data for traders (Tharp, 1998; Kaufman, 2005).

## On the other hand, we analyzed the Relative Strength Index (RSI) which was developed by J. Welles Wilder in 1978. The RSI is a momentum oscillator that measures the speed and change of price movements on a scale from 0 to 100. An RSI above seventy shows that a stock is highly bought, suggesting potential downturn, while an RSI below 30 indicates that a stock is oversold, suggesting a potential upturn (Wilder, 1978; Brown, 1999).

## The RSI is beneficial for identifying highly bought and highly sold conditions, providing traders with signals about potential reversal points. Divergence among the RSI and price movement can also indicate a potential reversal. Bullish divergence occurs when the price makes a new low, but the RSI does not, while bearish divergence occurs when the price makes a new high, but the RSI does not (Bouchentouf, 2006; Colby, 2003).

## The RSI's effectiveness in various market conditions has made it a staple in many traders' toolkits. For instance, in trending markets, the RSI can help traders stay in a trade longer by avoiding premature exits due to temporary overbought or oversold conditions. In ranging markets, the RSI can be used to optimal entry and exit points within range (Murphy, 1999; Appel, 2005).

## We observe that using these indicators (The moving averages, RSI, MACD,) in combination provides a more comprehensive market analysis. Exp., a bullish signal from the MACD confirmed by an RSI moving out of oversold territory can strengthen a buy signal. Similarly, integrating moving averages with the MACD and RSI can enhance the accuracy of trend detection and the timing of trade entries and exits (Achelis, 2001; Pring, 2002)

## Thirdly, the Moving Average Convergence Divergence is a technical indicator that demonstrates the relationship among two moving averages of a stock’s price. Created by Gerald Appel in the late 1970s, the Moving Average Convergence Divergence involves calculating the difference between the twenty-period EMA and the twelve-period EMA. This difference forms the Moving Average Convergence Divergence line, which is then smoothed with a 9-period EMA called the signal line. The histogram shows the difference among the MACD line and the signal line, highlighting momentum shifts.

## The Moving Average Convergence Divergence is particularly useful for providing clear buy and sell signals through crossovers and divergences. A bullish signal happened if the Moving Average Convergence Divergence line crosse above the signal line, indicating a potential buy opportunity, while a bearish signal occurs when the MACD line crosses below the signal line, indicating a potential sell opportunity (Murphy, 1999; Appel, 2005). Moving Average Convergence Divergence is widely used due to its straightforward interpretation and the ability to capture both trend direction and momentum. 

## In practical applications, traders use the Moving Average Convergence Divergence histogram to gauge the strength of movement. Increasing histogram bars suggests strengthening momentum, whereas decreasing bars is an indication of weakening momentum. This aspect of the MACD makes it an invaluable tool for traders looking to in or exit position based on the underlying momentum of the market (Achelis, 2001; Pring, 2002).

## The integration of Moving averages, RSI and MACD allows traders to capitalize on their complementary strengths. The moving average smooth out price data to clarify trends, whereas RSI helps identify overbought and oversold conditions, and the MACD provides insights into momentum and trend direction. This multifaceted approach enhances the accuracy of trading signals, aiding traders in making more informed decisions (Elder, 1993; Hull, 2017). 

**3.0 Theoretical background**

**1. Moving Averages (MA**)

##  MA involves using two different MA or moving averages, typically a short term which is the 13-day, and medium-term which is the 23-day moving average. The crossover of these two lines is used to signal potential buy or sell opportunities.

##  Interpretation: A "Golden Cross" occurs when the 13-Day MA Crosse is above 23-Day MA, suggesting upward momentum. 

## A "Death Cross" occurs if the short-term MA crosses down the long-term MA, indicating downward momentum. (Murphy, J.J 1999)

## The sum of a given set of values over a specified time is often termed as the Moving Average. This set of values includes the values of stocks or a set of numbers, which are aggregated and then divided by a total number of the values or numbers. For the calculating, the MA is as:

![](66d1bb6a03919_media/media/image2.png)

## Where: 

## N = Average in period n

## n = Number of periods

**2. Relative Strength Index:**

##  RSI, which is an oscillator that oscillates between a range of 0 to 100 and is used to identify the rate of change of values movements. RSI is commonly used to identify the oversold or over-bought conditions in a market.

## Interpretation: A Relative Strength Index above seventy is generally considered as overbought; suggesting sell opportunity and a Relative Strength Index under thirty is considered highly sold, suggesting a potential buy possibility. (Wilder, J.W. 1978)

![](66d1bb6a03919_media/media/image3.png)

## The RSI is calculated using two parts which include- The average loss or the average gain which is used to calculate the average percentage of loss or gain during a look-back period. Note that the formula uses a non-negative value for the average loss.

## In the calculations of average gain, the period with price loss is counted as zero. Whereas in the calculations of average loss, the period with price increases counted as zero. The standard RSI value is 14.4, which is the ideal number of periods used for the calculation.

3\. **Moving Average Convergence Divergence (MACD)**

##  MACD is the technical indicator that signifies the relationship among two MAs of the price in Nifty-50 and Bank Nifty. The outcome of the difference between the EMA which is the 26-period Exponential Moving Average and the 12-period EMA is known as the MACD line. A 9-day Exponential Moving Average of the MACD, known as the signal line, is then graphed on top of the MACD line, which serves as a function triggering the buy and the sell signals.

## Interpretation: When the Moving Average Convergence Divergence line crosses the signal line, it indicates a buy signal, suggesting that it may be time to buy. But, when the Moving Average Convergence Divergence line crosses down the signal line, it indicates a sell signal, suggesting that it may be time to sell. (Achelis, S.B. 2000)

**Moving Average Convergence Divergence Formula**

MACD = (12-Days Exponential Moving Averages) − (26-Days Exponential Moving Averages)

We calculate the Moving Average Convergence Divergence by subtracting the long-term Exponential Moving Averages from the short-term Exponential Moving Averages. Exponential Moving Average is a moving average that places a higher weight and importance on most data points.

• The MACD line is the difference between the 26-period EMA and the 12-period EMA.

• The nine-period EMA of the MACD line is termed the signal line

• MACD is well used with daily periods when the normal values of 26-12-9 days as preset values.

**4.0 Methodology**

> **Data Collection**

## 1\. Sources: We collected historical index data for the Nifty 50 and Bank Nifty indices from 

## dependable financial databases such as the National Stock Exchange of India, investing.com, and 

##  Tradingview.com website.

##  2. Time Frame: We opted for a time frame that included the bullish and bearish market conditions to test the 

##  robustness of the indicators, taking into consideration the day-by-day data over 10 years for a 

##  comprehensive analysis.

##  3. Frequency: We used daily open, close, low, and high prices for the calculation using technical indicators, 

##  but also, considered the daily time frame for a broader insight.

**Calculation of Technical Indicators:**

## **Moving Averages (MA):** Calculate the MA for different periods (e.g., 13-Day and 23-Day<span class="underline">)</span> to understand Short-Term and Medium-Term trends.

## 

## **Relative Strength Index (RSI):** Calculate the RSI over a 14-day period to identify highly bought and highly sold conditions.

## 

## **Moving Average Convergence Divergence:**

## 

##  Calculate the MACD line as the difference between the 12-day Exponential Moving Averages and the 26-day Exponential Moving Averages.

##  Calculate the Signal line as the 9-days Exponential Moving Averages of the Moving Average Convergence Divergence line.

##  Compute the MACD histogram as the difference between the **Moving Average Convergence Divergence** line and the Signal line.

## **Strategy Development**

## 

##  **Indicator-Based Trading Rules:**

## **Moving Averages**: Generate buy signals when the green candles cross over the 13-day MA line and sell signals if red candle crosses down the 13-day or 23-day moving average line.

## **Moving Average Convergence Divergence:** Generate buy signals when the MACD line crosses above the Signal line and sell signals when it crosses below.

## **Relative Strength Index**: Generate buy signal when RSI moves above 40 with uptrend and sell signal when it moves below 60 with downtrend.

## **Combined Strategy:** Our aim is to develop a combined strategy using all three indicators.

##  

## For instance, 

## **A Buy signal-**

##  Requires Moving average when green candle crosses moving 13-day average line.

##  An RSI above 40 with an uptrend.

##  With a confirmation from the MACD line crossover signal line.

## 

## **A Sell signal-**

##  Requires Moving average when red candle crosses down moving 13-day average line.

##  An RSI below 60 with a downtrend.

##  With a confirmation from MACD line to down crosses the signal line. 

## Our trading strategies for the Nifty-50 and Bank Nifty indices under the different market conditions include a specific entry point and stop loss levels for effective risk management. 

## In case of a bullish condition for Nifty-50 and Bank Nifty, we take into consideration the green candle and determine our entry point which is above the closing price of this <span class="underline">(</span>green) candle, and the stop loss is below this (green) candle’s low. 

## Conversely, in case of a bearish condition for Nifty-50, we take into consideration the red candle and determine our entry point which is below the closing price of this (red) candle, and the stop loss is above this (red) candle’s high.

## **Analyzing NIFTY 50**

## **Bullish Condition**

Buy Signal of Nifty-50 at 27-03- 24

![](66d1bb6a03919_media/media/image4.png)

Figure 1.0: Buy Signal of Nifty-50 at 27-03- 24

## Figure 1.0 shows the one best buy signal generated in Nifty-50. On the date 27/3/24, a Green candle crossed the 13-day Moving Average line, RSI above 51.39, and MACD Cross-over then our Buy signal was generated and the stop loss was slightly below than the low of this green candle. We buy Nifty-50 from this green candle at 22128 with a stop loss slightly below than this green candle (22047) and our target price is the momentum of the price-action and we book profit when momentum breaks at 22768 dated 09/04/24. The total profit was 640 points if we sell 1000 nifty then the total profit is Rs 6,40,000.00 in 9 days.

Table 1.0, Nifty-50 Best Buy position from 14-05-21 to 27-03- 24

| **Sn** | **Entry Date** | **Open** | **Close** | **High** | **Low** | **Entry point** | **Stop loss** | **Target with date** | **Total profit point** | **RSI** | **MACD**  |
| ------ | -------------- | -------- | --------- | -------- | ------- | --------------- | ------------- | -------------------- | ---------------------- | ------- | --------- |
| 1      | 27-03-24       | 22053    | 22123     | 22193    | 22052   | 22128           | 22047         | 22768 (09-04-24)     | 640                    | 51.39 ↑ | Crossover |
| 2      | 29-02-24       | 21935    | 21982     | 22060    | 21860   | 22065           | 21855         | 22526 (11-03-24)     | 461                    | 53.91 ↑ | Crossover |
| 3      | 03-11-23       | 19241    | 19230     | 19276    | 19210   | 19235           | 19205         | 21593(20-12-23)      | 2358                   | 44.00 ↑ | Crossover |
| 4      | 01-09-23       | 19258    | 19435     | 19458    | 19255   | 19440           | 19250         | 20222 (15-09-23)     | 782                    | 51.43 ↑ | Crossover |
| 5      | 29-03-23       | 16977    | 17080     | 17126    | 16940   | 17085           | 16935         | 19605(02-08-23)      | 2520                   | 43.24↑  | Crossover |
| 6      | 17-10-22       | 17144    | 17311     | 17328    | 17098   | 17316           | 17093         | 18454 (16-11-22)     | 1138                   | 53.00 ↑ | Crossover |
| 7      | 11-03-22       | 16528    | 16630     | 16694    | 16470   | 16635           | 16689         | 18100 (04-04-22)     | 1465                   | 50.70 ↑ | Crossover |
| 8      | 27-12-21       | 16937    | 17086     | 17112    | 16833   | 17091           | 16828         | 18321(17-01-22)      | 1493                   | 46.00↑  | Crossover |
| 9      | 30-07-21       | 15800    | 15763     | 15862    | 15744   | 15768           | 15739         | 17943 (27-09-21)     | 2175                   | 50.69 ↑ | Crossover |
| 10     | 14-05-21       | 14749    | 14677     | 14749    | 14591   | 14682           | 14586         | 15823 (14-06-21)     | 1232                   | 53.00↑  | Crossover |

Source: Data collected from Nifty-50 chart.

## In Table 1.0 we show major up move in the nifty with our strategy with date, entry, stop loss, and target. In this table, we considered Nifty-50 data from 14-05-21 to 27-03-24.

**Flow chart of Nifty-50 Buy Signal**

![](66d1bb6a03919_media/media/image5.png)

Figure 1.1: Flow chart of Nifty-50 Buy Signal

## Figure 1.1 shows the flow chart of Nifty-50 for the buy signal. We apply these three indicators Moving average, RSI, and MACD with their condition and compare, and then a buy signal is generated.

##  Bearish Condition

## Sell Signal of Nifty-50 at 06-05- 24

![](66d1bb6a03919_media/media/image6.png)

## Figure 1.2: Sell Signal of Nifty-50 at 06-05- 24

## Figure 1.2 shows the one best Sell signal generated in Nifty-50. On the date 06/05/24, a Red candle crossed down the 13-day Moving Average line, RSI below 51.30, and MACD Cross-Down then and our Sell signal was generated and the stop loss was slightly above than the high of this Red candle. We Sell Nifty from below of this Red candle at 22437 with a stop loss slightly above than this Red candle (22593) and our target price is the momentum of the price-action and we book profit when momentum breaks at 21932 dated 09/05/24. The total profit was 505 points if we sell 1000 nifty then the total profit is Rs 5,05,000.00 in 4 days.

Table 1.1, Nifty-50 Best Sell position from 10-09-18 to 06-05-24

| **Sn** | **Entry Date** | **Open** | **Close** | **High** | **Low** | **Entry point** | **Stop loss** | **Target with date** | **Total profit point** | **RSI**  | **MACD**   |
| ------ | -------------- | -------- | --------- | -------- | ------- | --------------- | ------------- | -------------------- | ---------------------- | -------- | ---------- |
| 1      | 06-05-24       | 22561    | 22442     | 22588    | 22409   | 22437           | 22593         | 21932 (09-05-24)     | 505                    | 51.30  ↓ | Cross down |
| 2      | 18-10-23       | 19820    | 19671     | 19840    | 19659   | 19666           | 19845         | 18857 (26-10-24)     | 809                    | 47.22  ↓ | Cross down |
| 3      | 20-09-23       | 19980    | 19901     | 20050    | 19878   | 19896           | 20055         | 19337 (04-10-23)     | 559                    | 57.39  ↓ | Cross down |
| 4      | 20-02-23       | 17965    | 17844     | 18004    | 17818   | 17839           | 18009         | 17392 (01-03-23)     | 447                    | 46.07  ↓ | Cross down |
| 5      | 19-01-22       | 18129    | 17938     | 18129    | 17884   | 17933           | 18134         | 16851 (25-01-22)     | 1082                   | 55,06  ↓ | Cross down |
| 6      | 22-01-21       | 14583    | 14371     | 14619    | 14357   | 14366           | 14624         | 13622 (29-01-21)     | 744                    | 59.91  ↓ | Cross down |
| 7      | 20-02-20       | 12119    | 12080     | 12152    | 12071   | 12075           | 12157         | 7523 (24-03-20)      | 4552                   | 46.08  ↓ | Cross down |
| 8      | 20-01-20       | 12430    | 12224     | 12430    | 12216   | 12219           | 12435         | 11646 (01-02-20)     | 573                    | 53.00  ↓ | Cross down |
| 9      | 05-07-19       | 11964    | 11811     | 11981    | 11797   | 11806           | 11986         | 10771 (05-08-19)     | 1035                   | 50.00  ↓ | Cross down |
| 10     | 10-09-18       | 11570    | 11438     | 11573    | 11437   | 11433           | 11578         | 10540 (05-10-18)     | 893                    | 46.00  ↓ | Cross down |

Source: Data collected from Nifty-50 chart.

## In Table 1.1 we show major corrections in the Nifty-50 with our strategy with date, entry, stop loss, and target. In this table, we considered Nifty-50 data from 10-09-18 to 06-05-24.

**Flow chart of Nifty-50 Sell Signal**

![](66d1bb6a03919_media/media/image7.png)

Figure 1.3: Flow chart of Nifty-50 Sell Signal

## Figure 1.3 shows the flow chart of Nifty-50 for the Sell signal. We apply these three indicators Moving average, RSI, and MACD with their condition and compare, and then a Sell signal is generated.

**Analyzing Bank-Nifty**

**Bullish Condition**

**Buy Signal of Bank Nifty at 23-11- 23**

![](66d1bb6a03919_media/media/image8.png)

Figure 2.0: Buy Signal of Bank Nifty at 23-11- 23

## Figure 2.0 shows the one best buy signal in Bank-Nifty generated. On the date 23/11/24, a green candle crossed the 13-day Moving Average line, RSI above 47, and MACD Cross-over then our Buy signal was generated and the stop loss was slightly below than the low of this green candle. We buy Bank-Nifty from this green candle at 43597 with a stop loss slightly below than this green candle (43431) and our target price is the momentum of the price-action and we book profit when momentum breaks at 47952 dated 02/01/24. The total profit was 4355 points if we sell 1000 Bank-Nifty then the total profit is Rs 43,55,000.00 in 41 days.

Table 2.0 Bank Nifty Best Buy position from 28-02-19 to 23-11- 23

| **Sn** | **Date** | **Open** | **Close** | **High** | **Low** | **Entry point** | **Stop loss** | **Target with date** | **Total profit point** | **RSI** | **MACD**   |
| ------ | -------- | -------- | --------- | -------- | ------- | --------------- | ------------- | -------------------- | ---------------------- | ------- | ---------- |
| 1      | 23-11-23 | 43452    | 43577     | 43649    | 43451   | 43597           | 43431         | 47952(02-01-24)      | 4355                   | 47.00↑  | Cross over |
| 2      | 28-03-23 | 39545    | 39567     | 39645    | 39326   | 39587           | 39306         | 44018(01-06-23)      | 4431                   | 43.01↑  | Cross over |
| 3      | 13-10-22 | 38957    | 38624     | 39061    | 38437   | 38644           | 38417         | 44120(15-12-22)      | 5476                   | 48.00↑  | Cross over |
| 4      | 30-06-22 | 33180    | 33425     | 33659    | 33179   | 33445           | 33159         | 39759(19-08-22)      | 6314                   | 45.25 ↑ | Cross over |
| 5      | 31-12-21 | 35114    | 35481     | 35596    | 35113   | 35501           | 35093         | 38448(14-01-22)      | 2347                   | 43.67 ↑ | Cross over |
| 6      | 01-10-21 | 37140    | 37225     | 37299    | 36876   | 37245           | 36856         | 40885(27-10-21)      | 3640                   | 54.34 ↑ | Cross over |
| 7      | 01-02-21 | 30976    | 33089     | 33305    | 30906   | 33109           | 30886         | 36656(19-02-21)      | 3547                   | 51.50 ↑ | Cross over |
| 8      | 30-10-20 | 24090    | 23900     | 24277    | 23612   | 23920           | 23592         | 30426(21-12-22)      | 6506                   | 54.75 ↑ | Cross over |
| 9      | 27-05-20 | 17603    | 18710     | 18874    | 17560   | 18730           | 17540         | 20747(12-06-20)      | 2017                   | 47.53 ↑ | Cross over |
| 10     | 28-02-19 | 26878    | 26789     | 26920    | 26762   | 26809           | 26742         | 29969(04-04-19)      | 3207                   | 46.05 ↑ | Cross over |

Source: Data collected from Bank-Nifty chart.

## In Table 2.1 we show major up move in the Bank-Nifty with our strategy with date, entry, stop loss, and target. In this table, we considered Bank-Nifty data from 28-02-19 to 23-11-23.

**Flow chart of Bank Nifty Buy Signal**

![](66d1bb6a03919_media/media/image9.png)

Figure 2.1: Flow chart of Bank Nifty Buy Signal

## Figure 2.1 shows the flow chart of Bank-Nifty for the buy signal. We apply these three indicators Moving average, RSI, and MACD with their condition and compare, and then a buy signal is generated.

**Bearish Condition**

**Sell Signal of Bank Nifty at 17-10- 23**

![](66d1bb6a03919_media/media/image10.png)

Figure 2.2: Sell Signal of Bank Nifty at 17-10- 23

## Figure 2.2 show the one best Sell signal generated in Bank-Nifty. On the date 17/10/23, a Red candle crossed down the 13-day Moving Average line, RSI below 46.08, and MACD Cross-Down then and our Sell signal was generated and the stop loss was slightly above than the high of this Red candle. We Sell Nifty from below of this Red candle at 44389 with a stop loss slightly above than this Red candle (44609) and our target price is the momentum of the price-action and we book profit when momentum breaks at 42217 dated 26/10/23. The total profit was 2172 points if we sell 1000 nifty then the total profit is Rs 21,72,000.00 in 11 days.

Table 2.1, Bank Nifty Best Sell position from 08-07-19 to 17-10-23.

| **Sn** | **Date** | **Open** | **Close** | **High** | **Low** | **Entry point** | **Stop loss** | **Target with date** | **Total profit point** | **RSI**  | **MACD**            |
| ------ | -------- | -------- | --------- | -------- | ------- | --------------- | ------------- | -------------------- | ---------------------- | -------- | ------------------- |
| 1      | 17-10-23 | 44589    | 44409     | 44589    | 44336   | 44389           | 44609         | 42217 (26-10-23)     | 2172                   | 46.08  ↓ | Crossover           |
| 2      | 01-08-23 | 45740    | 45592     | 45782    | 45471   | 45572           | 45802         | 43750 (18-08-23)     | 1822                   | 55.60  ↓ | Crossover           |
| 3      | 10-03-23 | 40805    | 40485     | 40839    | 40341   | 40465           | 40859         | 39031 (17-03-23)     | 1434                   | 41.72  ↓ | Crossover           |
| 4      | 22-09-22 | 40889    | 40630     | 41159    | 40360   | 40610           | 41179         | 37615 (29-09-22)     | 2995                   | 59.10  ↓ | Sell stop Buy Start |
| 5      | 16-02-22 | 38296    | 37953     | 38461    | 37762   | 37933           | 38481         | 33181 (09-03-22)     | 4752                   | 49.00  ↓ | Sell stop Buy start |
| 6      | 12-03-21 | 36497    | 35496     | 36497    | 35188   | 36476           | 36517         | 32458 (09-04-21)     | 4018                   | 52.02  ↓ | Below Base line     |
| 7      | 21-01-21 | 32732    | 32186     | 32842    | 31985   | 32166           | 32862         | 30426 (29-01-21)     | 1740                   | 60.00  ↓ | Crossover           |
| 8      | 04-09-20 | 23119    | 23011     | 23394    | 22876   | 22991           | 23414         | 20941 (25-09-20)     | 2050                   | 52.00  ↓ | Sell stop buy start |
| 9      | 20-02-20 | 30862    | 30942     | 31085    | 30702   | 30922           | 31105         | 17060 (24-03-20)     | 13862                  | 46.00  ↓ | Sell stop buy start |
| 10     | 08-07-19 | 31346    | 30603     | 31370    | 30536   | 30583           | 30623         | 27793 (08-08-19)     | 2790                   | 46.08  ↓ | Crossover           |

Source: Data collected from Bank-Nifty chart.

## In Table 2.1 we show major corrections in the Bank-Nifty with our strategy with date, entry, stop loss, and target. In this table, we considered Bank-Nifty data from 08-07-19 to 17-10-23.

**Flow chart of Bank Nifty Sell Signal**

![](66d1bb6a03919_media/media/image11.png)Figure 2.3: Flow chart of Bank Nifty Sell Signal

## Figure 2.3 shows the flow chart of Bank-Nifty for the Sell signal. We apply these three indicators Moving average, RSI, and MACD with their condition and compare, and then a Sell signal is generated.

## **5.0 Future Research and Drawback**

## 1\. Individual Indicator Performance: As per our observation each indicator shows a varying degree of success. MA and MACD were effective in identifying long-term trends but often lagged. RSI provided timely entries and exits but was prone to false signals in volatile markets.

## 2\. Combined Strategy Performance: The combined strategy significantly improved performance, reducing the number of trades and increasing overall returns. The alignment of multiple indicators helped filter out false signals and confirmed stronger trading signals.

## 3\. Drawback: A significant drawback of this study is that in case of a spontaneous movement in the Index of Nifty and Bank Nifty, due to any unexpected conditions such as) Natural Calamities b) Terrorist attacks c) Election results d) Pandemic conditions e) Bankruptcy, Could give inconsistent, inaccurate and erratic results.

##  

**6.0 Discussion**

## The integration of MA, RSI, and MACD into a single strategy offers a robust approach to Nifty-50 and Bank Nifty Indices. While individual indicators provide valuable insights, their combined use enhances signal accuracy and reduces the likelihood of false positives. The empirical results suggest that this multi-indicator strategy can be a dynamic tool for investors seeking to enhance their market timing and investment returns.

**7.0 Conclusion**

**A Comprehensive Analysis of Nifty-50 and Bank Nifty**

## This research paper delves into the application of technical indicators—Moving Averages (MA), Relative Strength Index (RSI), and Moving Average Convergence Divergence (MACD)—for analyzing the Nifty-50 and Bank Nifty indices. By combining these indicators, the study aims to provide a comprehensive framework for effective market analysis and decision-making. The paper explores the significance of moving averages in identifying trends and support/resistance levels, the effectiveness of RSI in identifying overbought and oversold conditions, and the reliability of MACD in pinpointing potential buy and sell signals. While these indicators offer valuable insights, the paper emphasizes the importance of combining them with fundamental analysis, risk management strategies, and a thorough understanding of market dynamics for successful trading.

**8.0 Conflict of interest**

All authors hereby proclaim that they have no disagreement in relation to the content of this research work.

# Authors’ contributions

**Braj Kishor Verma:** Conceptualization, methodology, formal analysis, investigation, a writing-original draft, supervision, and validation, **Shambhavi Srivastavv**: Conceptualization, and writing- review and editing.

**10.0 References**

1\. Murphy, J. J. (1999). "Technical Analysis of the Financial Markets”. *New York Institute of Finance.*

2\. Appel, G. (2005). “Technical Analysis: Power Tools for Active Investors”. *FT Press*.

3\. Achelis, S. B. (2001). “Technical Analysis from A to Z”. *McGraw-Hill.*

4\. Pring, M. J. (2002). “Technical Analysis Explained”. *McGraw-Hill.*

5\. Elder, A. (1993). “Trading for a Living: Psychology, Trading Tactics, Money Management”. *Wiley.*

6\. Hull, J. (2017). “Options, Futures, and Other Derivatives”. *Pearson*.

7\. Wilder, J. W. (1978). “New Concepts in Technical Trading Systems”. *Trend Research*.

8\. Brown, C. (1999). “Technical Analysis for the Trading Professional”. *McGraw-Hill.*

9\. Tharp, V. K. (1998). “Trade Your Way to Financial Freedom”. *McGraw-Hill.*

10\. Kaufman, P. J. (2005). “New Trading Systems and Methods”. *Wiley*.

11\. Bouchentouf, A. (2006). “Commodities For Dummies”. *Wiley.*

12\. Colby, R. W. (2003). “The Encyclopedia of Technical Market Indicators”. *McGraw-Hill.*

13\. Achelis, S. B. (2000). “Technical Analysis from A to Z”. *McGraw Hill*.

14\. Murphy, J. J. (1999). “Technical Analysis of the Financial Markets”. *New York Institute of Finance*.

15\. Wilder, J. W. (1978). “New Concepts in Technical Trading Systems”. *Trend Research.*

16\. Anghel, G. D. I. (2015). Stock Market Efficiency and the MACD. Evidence from Countries around the World. *Procedia Economics and Finance*, **32**, 1414 - 1431.

17\. Agudelo A, A.A., Duque M, N.D. and Rojas M, R.A. (2021), "Artificial intelligence applied to investment in variable income through the MACD (moving average convergence/ divergence) indicator", *J. of Economics, Finance & Administrative Science*, **26**(52), pp. 268 - 281.

<https://doi.org/10.1108/JEFAS-06-2020-0203>

18\. Chong, T., Ng, W.-K., \&Liew, V. (2014). Revisiting the Performance of MACD and RSI Oscillators. *J. of Risk and Financial Management,***7**(1), 1 - 12.

<https://doi.org/10.3390/jrfm7010001>

19\. Chong, T. T.-L., & Ng, W.-K. (2008). Technical analysis and the London stock exchange: testing the MACD and RSI rules using the FT30. *Applied Economics Letters,***15**(14), 1111-1114.

<https://doi.org/10.1080/13504850600993598>

20\. Vezeris, D., Kyrgos, T., \&Schinas, C. (2018). Take Profit and Stop Loss Trading Strategies Comparison Combination with a MACD Trading System. *J. of Risk and Financial Managemen*t,

**11**(3), 56. <https://doi.org/10.3390/jrfm11030056>

21\. Rosillo, R., de la Fuente, D., \&Brugos, J. A. L. (2013). Technical analysis and the Spanish stock exchange: testing the RSI, MACD, momentum, and stochastic rules using Spanish market companies. *Appl Eco*., **45**(12), 1541-1550. <https://doi.org/10.1080/00036846.2011.631894>

22\. Gupta, R. (2019). "Market Efficiency of Nifty 50: An Empirical Study." *Journal of Financial Markets*.

23\. Kumar, P., & Gupta, S. (2018). "Predictive Power of Technical Indicators on Nifty-50 and Bank Nifty." *International Journal of Financial Studies*.

24\. Singh, V., \&Tripathi, R. (2020). "Volatility Modeling and Risk Management in Indian Stock Market: A Study on Nifty-50 and Bank Nifty." *Finance Research Letters*.

25\. Sharma, A. (2018). "Impact of Macroeconomic Variables on Stock Market Performance: Evidence from India." *Economic Modelling*.

26\. Rao, K., \&Saha, S. (2017). "Sectoral Analysis and Diversification Benefits in Nifty 50." *Journal of Investment Strategies*.

27\. Patel, M., & Srivastava, A. (2019). "Global Market Influence on Indian Stock Indices: A Comparative Study of Nifty-50 and Bank Nifty." *Global Finance Journal*.

28\. <https://in.tradingview.com>

29\. <https://in.investing.com>

<table>
<tbody>
<tr class="odd">
<td><blockquote>
<p><img src="66d1bb6a03919_media/media/image12.png" style="width:1.01042in;height:0.36111in" alt="A picture containing text, clipart Description automatically generated" /></p>
</blockquote></td>
<td>© 2024 by the authors. Submitted for possible open access publication under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).</td>
</tr>
</tbody>
</table>
