2023 Core
2023 Core
Abstract— This study introduces a comprehensive approach that utilizes technical analysis-based data mining strategies to
observe and predict stock market trends, by leveraging historical trading data, technical indicators such as moving averages, RSI,
and MACD, to systematically analyze and interpret market behavior, thereby providing investors and traders with actionable
insights for making informed decisions in the volatile environment of stock trading. By integrating quantitative analysis with
predictive modeling, the methodology aims to enhance the accuracy of trend forecasts and identify profitable trading
opportunities. Through the application of cross-validation and backtesting techniques, the effectiveness of these strategies is
rigorously evaluated against actual market movements, offering a robust framework for risk management and portfolio
optimization. This interdisciplinary approach not only demystifies the complexities of the stock market but also opens new
avenues for research and development in financial technology, promising a significant contribution to the field of economic
forecasting and investment strategy.
Keywords- Technical Analysis , Technical Indicators , Stock Market Trend , Data Mining , Neural Network.
I. INTRODUCTION tough times which he may not stand. Any pattern is well
backtested and thus to be followed as it is.
1.1 Overview 1.2 Introduction of Data Mining
This is my first research as a student so I decided to pick a
topic which is center of attraction for many people and is of
In this thesis we are using Neural Network as the application
wide use also. In this process, I came across many topics but
of Data Mining concept for predicting the trend in stock
as I have to use data mining techniques on my related domain,
market. Data mining is a process of discovering various
I chose stock market as a co-domain because of increasing
models, summaries, and derived values from a given
amount of financial data available on internet. Also it is widely
collection of data. It is one of the fastest growing fields in the
discussed among people and everybody is somehow affected
computer industry and provides a wide range of
and concerned about stock market’s direction as they are
methodologies and techniques that can be applied to a host of
linked with it directly or indirectly.
problem sets [5][6]. Many data mining techniques have been
As I liked the topic, I tried to find out more advantages of this
applied to stock data to achieve better financial solutions
selection. I came across with the following benefits.
[1,2,3,4 ]
1. It can be good source of secondary income.
Data mining refers to the finding of relevant and useful
2. It is very randomly traded by common man.
information from databases. Data mining and knowledge
3. 85 % of people lose money in stock market in long run by
discovery is a new interdisciplinary field, merging ideas from
trading in different instruments.
statistics, machine learning, data bases and parallel computing.
4. It is a big center of attraction for the people especially who
Researchers have defined the term ‘data mining’ in many
are the earning members of their family.
ways: [39][39]
5. Stock market is seen as quick money generator.
Data mining or knowledge discovery in data bases, as it is also
This thesis focuses on generation of trading signals with the known, is the non trivial extraction of implicit, previously
help of technical analysis. The main feature of any algorithm unknown and potentially useful information from the data.
[7] [30]
based trading system is that it eliminates the weaknesses and The amount of data continues to grow at an enormous rate
improper interference of a trader, and guides it through the even though the data stores are already vast. [31] The primary
challenge is how to make the database a competitive business
1050
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
advantage by converting seemingly meaningless data into Richard et al. [33] says that, Data mining is the process of
useful information. [32] How this challenge is met is critical employing one or more computer learning techniques to
because companies are increasingly relying on effective automatically analyze and extract data.
analysis of the information simply to remain competitive. A Edelstein et al. [34], states that data mining involves the use of
mixture of new techniques and technology is emerging to help sophisticated data analysis tools to discover previously
sort through the data and find useful competitive data.[8][9] unknown, valid patterns and relationships in large data sets.
[29] By knowledge discovery in databases, interesting Nitchi et al. [35] gives a simple definition considers the data
knowledge, regularities, or high-level information can be mining as the process of extracting predictive information
extracted from the relevant sets of data in databases and be hidden in large datasets.
investigated from different angles, [40] and large databases Mining information and knowledge from large database has
thereby serve as rich and reliable sources for knowledge been recognized by many researchers as a key research topic in
generation and verification. database systems and machine learning. Companies in Many
industries also take knowledge discovering as an important area
1.3 Basics
with an opportunity of major revenue (Fayyad et al., 1996.
Piatetsky-Shapiro et al. 1991, Silberschatz ET al.1995). The
Two main parts of financial analysis are: discovered knowledge can be applied to information
1. Fundamental analysis management, query processing, decision making, process
2. Technical analysis control, and many other applications.
2.2 Neural Network
1.3.1 Fundamental Analysis:
It’s a relatively new process of data mining in computing
This is done specially by professional analysts who have taken which is based on development of a system through the ability
degree in commerce field such as CA, CS, MBA in finance to learn and recognize patterns in a given set of data, which is
etc. This analysis based on financial data provided by very complex for any computer techniques to find and
company every quarter, which includes financial attributes establish. Several elements are interconnected like neurons of
such as growth forecast, PE ratio, dividend yield, upper and brain which then provide a pattern which is useful in some
lower base line estimations, balance sheets etc. It also depends sense.
on the quality of management running the company. It needs Berry et al. [36], according to neural networks are the most
updating very frequently and detailed analysis is required. widely used known and the least understood of the major data
[10][11] [28] mining techniques. He says training a neural network is a
1.3.2 Technical analysis: process that involves setting weights on inputs to best
It is focused on past history of share performance, analyzed approximate a target variable. This is important for optimizing
statistically through various formulas and indicators such as the neural network. Three steps are involved in training.
moving averages (MA). It emphasize on predicting the trend Training instance variables, calculating outputs using existing
of stock and make use of competitive trading among institutes. weights and calculating errors and accordingly adjusting
weights.
II. LITERATURE REVIEW Pyle et al. [37], describes neural networks as network
construction network system of interconnected interacting
In previous chapter we discussed the basic concept of data weights at each node acting as input and output stations. Each
mining. It is a general definition of data mining. Now a day’s input to the network gets its own node which consists of a
data mining has been extensively used in many fields, Such as transformation of input variables fed in. The input unit is
banking and financial markets. In banking industry it is connected to the output unit with a weighting and the input is
heavily used to model and predict credit fraud, to evaluate combined in the output unit with a combination function. The
risk, to perform trend analysis, and to analyze profitability, as activation function is the passed transfer function.
well as to help with direct marketing campaigns. [12]
In the financial markets, neural networks have been used in Singh et al., 2022, This study aims to advance and introduce a
stock markets to analyze the trend, stock price forecasting, in more rigorous neural network approach for predicting stock
option trading, in bond rating, in portfolio management, in market trends. The present study presents a comprehensive
commodity price prediction, in mergers and acquisitions, as examination of stock market forecasting using neural
well as in forecasting financial disasters. [12] networks. The analysis of stock market forecast may be
In this chapter we present small introduction on data mining conducted using a wide range of machine learning techniques.
and few research papers discussion on our subject. Most This study investigates the buying and selling prices of stocks
papers are based on application of neural network in stock on the Bombay Stock Exchange (BSE) and analyses the
market. provided data. To predict stock market trends, I used a
comprehensive Long-Short-Term Memory Neural Network
2.1 Definitions of Data mining by different Authors
(LSTM) with an embedded layer and LSTM Neural Network.
Applying deep LSTM with layers improves the experimental
1051
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
layout. The prediction technology demonstrates precise Absolute Percentage Error (MAPE) of at least 10%. Among
outcomes that provide exceptional financial gains. [41] all the investigated models, Model 6-20-20-1 stands out as the
Liu et al., 2022, Forecasting stock market indices is an most superior, with an MSE of 0.00055, RMSE of 0.007418,
alluring subject. Conducting a thorough examination of this and MAPE of 1.17%. [43]
subject matter will provide significant insights for investors, Sharma et al., 2022, Stock market forecasting often use both
traders, and policymakers involved in the attractive stock traditional statistical methods and artificial intelligence tools.
markets. This paper presents a novel sparrow search technique The presence of nonlinearity in stock data might lead to
that aims to enhance the initial weight and threshold inaccurate forecasting results when employing a conventional
estimation of BPNN. The algorithm is specifically designed or single intelligent approach. Hence, it is essential to cultivate
for the purpose of predicting stock market indices. This article a fusion of intelligent methodologies in order to construct a
primarily focuses on the following aspects: (1) The sine chaos proficient prediction model. This article presents a novel
model is used for population initialization. (2) The position approach to forecasting by combining an Artificial Neural
update formula of the discoverer incorporates the global Network (ANN) with a Genetic Algorithm (GA). The
optimum solution from the preceding generation, together with proposed technique utilises two prominent US stock market
adaptive weights to optimise the coordination between local indices, namely DOW30 and NASDAQ100, for the purpose of
mining and global exploration capabilities. In order to develop forecasting. The datasets were divided into three subsets:
novel solutions, the Gaussian mutation operator and the training, testing, and validation. The validation of the model
reverse learning technique are used to perform perturbation was conducted using the stock data during the COVID-19
mutation at the ideal point. In order to optimise the initial period. The experimental results obtained using the DOW30
weight and threshold of the BP neural network, the improved and NASDAQ100 datasets demonstrate that the GA and ANN
sparrow algorithm (ISSA) is used. The suggested model's hybrid model outperforms the single ANN (BPANN) method
performance is assessed on four datasets, namely SSE, SZSE, in terms of accuracy for both the DOW30 and NASDAQ100,
SP500, and DJI. The suggested mode is contrasted with two both in the short and long term. [44]
kinds of models. One approach involves using swarm
intelligence optimisation algorithms, such as GA-BP, PSO-BP, Srivinay et al., 2022, The volatility of stock prices may be
ACO-BP, GWO-BP, CS-BP, and SSA-BP, to optimise BPNN. attributed to several elements inherent in the stock market,
The remaining models are classified as deep learning models. including geopolitical tensions, corporate profits, and
The empirical findings demonstrate that the three solutions put commodity prices, all of which have an influence on stock
forward in this study significantly enhance the optimisation prices. Certain factors, such as reserve bank policy,
efficacy of the sparrow search algorithm. The ISSA-BP model government policy, inflation, and global market uncertainty,
has shown significant efficacy in the realm of short-term stock might influence stock prices. Estimating the volatility of
price prediction, therefore enabling investors to forecast stocks is a significant challenge for traders. A precise forecast
market trends and identify optimal trading opportunities. of stock prices aids investors in mitigating the risk associated
Furthermore, policymakers may evaluate the rationale of with their portfolios or investments. Equity prices exhibit
policies by analysing market patterns, so enhancing the nonlinearity. We suggest using a hybrid stock prediction
advancement of the stock market. [42] model that combines the prediction rule ensembles (PRE)
approach with deep neural network (DNN) to address the issue
Napitupulu et al., 2022, The worldwide COVID-19 outbreak of nonlinearity in the data. The identification of an upward
has elicited widespread anxiety. Furthermore, it caused trend in stock prices is facilitated by the use of stock technical
significant disruptions to global life and economic operations. indicators. The moving average technical indicators that were
Forecasting the stock market throughout the COVID-19 taken into consideration are the moving average of 20 days,
epidemic was a significant obstacle because to the non- the moving average of 50 days, and the moving average of 200
stationary, unpredictable, and intricate nonlinear nature of the days. Furthermore, the PRE approach was used to calculate
data. Therefore, it is essential to conduct a comprehensive many rules for stock prediction. Subsequently, the rules
examination of the aforementioned patterns in order to exhibiting the lowest root mean square error (RMSE) score
construct a suitable prognostic framework for forecasting the were chosen. Furthermore, the three-layer deep neural network
stock market within the pandemic. The objective of this (DNN) is being used for stock prediction. The
project is to develop a stock market prediction model for the hyperparameters of the deep neural network (DNN) have been
Indonesia Stock Exchange during the COVID-19 epidemic. optimised, including the number of layers, learning rate,
The model uses a deep learning method that relies on artificial number of neurons, and number of epochs in the model.
neural networks. This study focuses on the pharmaceutical Furthermore, the PRE and DNN prediction models are
business within the health sector that is publicly traded on the aggregated to get the average results. The outcomes of the
IDX. The factors being considered in this study include the hybrid stock prediction model are calculated using the mean
suggested model for forecasting stock prices, which absolute error (MAE) and root mean square error (RMSE)
incorporates daily stock price fluctuations, as well as COVID- metrics. The hybrid stock prediction model has superior
19 trend indicators and the government's reaction tightness performance compared to the individual prediction models,
index to COVID-19 in Indonesia. The research findings namely the DNN and ANN, exhibiting a 5% to 7%
indicate that all suggested model systems have exceptional enhancement in the root mean square error (RMSE) score. The
accuracy in predicting stock market prices, with a Mean study takes into account the Indian stock price data. [45]
1052
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
1053
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
1054
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
genetic algorithm, Naïve Bayesian technique, SVM (support measure of volatility, Bollinger Bands adjust themselves to the
vector machine). market conditions. When the markets become more volatile,
S. Abdulsalam Suleiman et al, [26] presented regression the bands widen (move further away from the average), and
analysis as a data mining technique and developed tool for during less volatile periods, the bands contract (move closer to
exploiting especially time series data in financial institution. A the average). The tightening of the bands is often used by
prediction system has been built that uses data mining technical traders as an early indication that the volatility is
technique to produce periodically forecasts about stock market about to increase sharply. The closer the prices move to the
prices his technique complement proven numeric forecasting upper band, the more overbought the market, and the closer
method using regression analysis with technology taking as the prices move to the lower band, the more oversold the
input the financial information. market.
Ayo Charles K. et al [27], identifies that stock market
prediction is one of the most important issue now a days. so In 3.2 Stochastic
this paper, author present a hybridized approach which
combines the use of the variables of technical and fundamental A technical momentum indicator that compares a security's
analysis of stock market indicators for prediction of future closing price to its price range over a given time period. The
price of stock in order to improve on the existing approaches oscillator's sensitivity to market movements can be reduced by
with the help of Ann technique. The hybridized approach was adjusting the time period or by taking a moving average of the
tested with published stock data and the results obtained result. This indicator is calculated with the following formula:
showed remarkable improvement over the use of only %K = 100[(C - L14)/(H14 - L14)]
technical analysis variables. [18] Also, the prediction from
hybridized approach was found satisfactorily adequate as a C = the most recent closing price
guide for traders and investors in making qualitative decisions. L14 = the low of the 14 previous trading sessions
H14 = the highest price traded during the same 14-day period.
III. TECHNICAL PARAMETER STUDIED
%D = 3-period moving average of %K
1055
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
3.4 ADX (Average Directional Index) In technical analysis, this is a momentum indicator measuring
overbought and oversold levels, similar to a stochastic
An indicator used in technical analysis as an objective value oscillator. It was developed by Larry Williams and compares a
for the strength of trend. ADX is non-directional so it will stock's close to the high-low range over a certain period of
quantify a trend's strength regardless of whether it is up or time, usually 14 days.
down. ADX is usually plotted in a chart window along with
two lines known as the DMI (Directional Movement
Indicators). ADX is derived from the relationship of the DMI
lines. Analysis of ADX is a method of evaluating trend and
can help traders to choose the strongest trends and also how to
let profits run when the trend is strong.
Figure 7. William’s %R
1056
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
1057
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
trading. The difference is that in algorithmic trading decisions • In January 1989, BSE National Index was introduced,
about volume or size, timing and price are determined by the which was renamed as BSE-100 Index from October 14,
algorithm. Furthermore, algorithmic trading efficiently 1996 and launched its dollar-linked version on May 22,
increases the universe being traded by an individual trader 2006.
which is limited in electronic trading environment. • On July 25, 1990, the SENSEX touched the four-digit
figure for the first time and closed at 1,001.
Automated or algorithmic trading is a system for trading • SEBI was formed officially by the Government of India in
through programmed software that can make around 800 1992 with SEBI Act 1992 being passed by the Parliament
transactions per second. The software-helped trading was of India.
allowed by Bombay Stock Exchange (BSE) and National • On 27 May 1994, BSE launched two new index series: The
Stock Exchange (NSE) in 2005. 'BSE-200' and the 'DOLLEX-200'.
A third of all European Union and United States stock trades • In 1995, the BSE switched to an automated, screen-based
in 2006 were driven by automatic programs, or algorithms, trading platform called BSE On-line trading (BOLT),
according to Boston-based financial services industry research which at present has a capacity of 8 million orders per day.
and consulting firm Aite Group. As of 2009, HFT firms In 1997, the BOLT system expanded nation-wide.
account for 73% of all US equity trading volume. • BSE-500 Index and 5 sectorial indices were launched in
1999.
High-Frequency Trading (HFT): • In 2001, BSE launched BSE-PSU Index, DOLLEX-30 and
It is a special category of algorithmic trading characterized by the country's first free-float based index - the BSE TECk
unusually brief position-holding periods, low-latency response Index.
times, and high trading volumes in a day. Algorithms are • The index calculation for the SENSEX was shifted from
written so as to exploit trading opportunities which appear in the ‘full market capitalization’ method to the ‘free float
very brief time periods as short as milli- or micro- seconds. method’ on Sep 1, 2003. Over the years, BSE shifted all its
The margin of each trade is small, which is compensated by indices to the free-float methodology (except BSE-PSU
fast speed and large volumes. index).
4.2 Stock Market History • On June 20, 2005, the news of the settlement between the
Ambani Brothers helped the SENSEX crossed 7,000 points
A Brief History of Indian Stock Market (BSE and NSE) : for the first time.
• On 17th May 2004, second biggest fall of all time, Circuit
In 1957, it became the first stock exchange to be recognized filters used twice in a day (564.71 points, 11.14%).
by the Indian Government under the Securities Contracts • In 2005, the BSE (Corporatization and Demutualization)
Regulation Act. Scheme, 2005 was introduced by SEBI and the exchange
It is the oldest stock exchange in Asia (established in 1875) turned into a corporate entity renamed as Bombay Stock
and is currently located on Dalal Street, Mumbai. Exchange Limited from Bombay Stock Exchange.
• On February 7, 2006, the SENSEX closed above the
• It is the 6th largest stock exchange in Asia and the 14th 10,000-mark.
largest in the world with equity market capitalization of • On March 7, 2007, Singapore Exchange Limited entered
US$1 trillion as of December 2011. into an agreement to invest in a 5% stake in BSE Limited.
• It has also introduced the world's first centralized • Due to effects of the Subprime crisis in the U.S and heavy
exchange-based internet trading system, BSEWEBx.co.in selling in the international markets, the BSE SENSEX fell
to enable investors anywhere in the world to trade on the by 615 points in a single day on Wednesday August 1,
BSE platform. 2007.
• There are over 5,112 listed Indian companies and over • On Jan 08, 2008, The SENSEX touched all time peak of
8,196 scripts on this exchange as of December 2011. 21078 before closing at 20873.
• The World Council of Corporate Governance has awarded
Bombay Stock Exchange (BSE) - Introduction, Facts & the Golden Peacock Global CSR Award for BSE's
Major Evolutions : initiatives in Corporate Social Responsibility (CSR).
• BSE launched SENSEX (BSE 30), a free-float market • On May 18, 2009, the SENSEX surged 2110.79 points
Capitalization-weighted stock market index on January 2, from the previous closing. This event created history in
1986, with a base value 100 and base year 1978-1979. Dalal Street, by being the first ever time that trade had
• The SENSEX consists of 30 well-established and been suspended for an increase in value. This rally is
financially sound companies listed on BSE Limited. These primarily due to the victory of the UPA in the 15th General
Companies represents various industrial sectors of the elections.
Indian economy.
• The market capitalization of the SENSEX was about Rs.
29,275 billion while its free-float market capitalization was
Rs.14,660 billion as of April,2012.
1058
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
National Stock Exchange Limited (NSE) - Introduction, 2 Swing traders hold stocks for days or weeks playing the
Facts & Major Evolutions : general upward or downward trends.
3 Swing Trading is not high-speed day trading. Some
• It was incorporated in November 1992 as a tax-paying people call it momentum investing, because you only
company and in April 1993, it was recognized as a stock hold positions that are making major moves.
exchange under the Securities Contracts Regulation Act, 4 By rolling your money over rapidly through short term
1956. gains you can quickly build up your equity.
• It is the 16th largest stock exchange in the world and
largest in India by daily turnover and number of trades, for 4.5 Proposed Methodology
both equities and derivative trading.
• As of December 2011, it has a market capitalization of As said above, this system tries to be simple as well as
around US$985 billion. effective, so common and simple technical indicators are used
• It is the second fastest growing stock exchange in the here from a wide variety. We studied EMA, their crossovers,
world with a recorded growth of 16.6% and over 1,640 RSI, MACD, ADX, SAR, Candlestick Patterns, Trend Lines
listings as of December 2011. etc. After working on various combinations we tried to find
• It is the third largest Stock Exchange in the world in terms out the main link which provides maximum coverage of
of the number of trades in equities. conditions occurring in stock market. The few main aspects,
• In 1994, Wholesale Debt Market segment Capital Market we found necessary for a trading strategy are as follows:
(Equities) segment goes live. 1. Selection of Time Frame.
• In 1995, the NSE established Investor Grievance Cell, 2. Indicator Spotting Right Market Direction.
NSCCL (the first Clearing Corporation), and Investor 3. Strength in Signal.
Protection Fund. 4. Using the Signals to their Full Capacity.
• In 1996, the NSE launched S&P CNX Nifty (Nifty 50), a 5. Removing Low Probability Trades.
stock market index owned and managed by India Index
4.5.1 Selection of Time Frame
Services and Products Nifty 50 is the largest single
financial product in India, with an ecosystem comprising:
We tried different time frames in our analysis which were,
exchange traded funds (onshore and offshore), exchange-
hourly, 3 hourly, daily and weekly. Hourly were too volatile
traded futures and options, other index funds and OTC
and weekly was untradeable in our selected indicators. So after
derivatives (mostly offshore).
selecting daily close as time interval for our trades, we
• From June 26, 2009, the computation for calculating Nifty optimized other indicators in accordance to it.
Index was changed to free float methodology from full
market capitalization methodology.
4.5.2 Indicator Spotting Right Market Direction
• The base period for the S&P CNX Nifty index is
November 3, 1995. The base value of the index has been
On daily basis the use of ADX indicator helped in a lot to
set at 1000, and a base capital of Rs 2.06 trillion.
decide market direction in near term. It also showed the
• In December 1996, CNX Nifty Junior was launched. It maturity of trade position and also kept the whipsaws to
consists of 50 companies representing approximately 10% minimum ADX have 3 lines viz positive green line, negative
of the traded value of all stocks on the NSE. The CNX red line and calculate ADX third line.
Nifty Junior is owned and operated by India Index Services When green line is above red and ADX is above 20, it’s an
and Products Ltd. indication of start of a positive trade. If red is above green line
• In June 2005, Futures & options in BANK Nifty Index and ADX is above 20 it’s a short trade and markets/stocks are
were launched on National Stock Exchange. weak. Below ADX less than 20, there is no direction present in
• In 2007, the NSE launched derivatives on Nifty Junior & market and hence they should be avoided. ADX considers 14
CNX 100 and derivatives on Nifty Midcap 50. days as it defaults value.
• In August 2009, Interest Rate Futures was launched on this In our trading system, we optimized it and changed it from 14
Exchange. to 8 days and it enhanced the results. As we reduced the
• The NSE controls more than 90 percent of India’s $28 default time frame, and the traded instrument is index futures
billion equity derivatives market and handles 75 percent of and not stock, we also made changed in the base line of ADX
the stock trades. (8) and changed it to 16. Below 16 we considered not to trade
and above 40, the trade is considered fully matured and
4.3 Introduction to Swing Trading caution is exercised.
Swing Trading takes advantage of brief price swings in 4.5.3 Strength in Signal
strongly trending stocks to ride the momentum in the direction
of the trend. [37] Generation of signal only after the trend is properly set by
1 Swing trading combines the best of two worlds -- the buying or shorting by bigger player in market. For e.g. FII,
slower pace of investing and the increased potential gains DII, FDI, LIC, Insurance companies, Mutual funds etc.
of day trading.
1059
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
1060
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
and hence useful in avoiding the volatile times and also it -DI = current +DM = current positive
waits for a trend to ripe. negative directional
directional movement value
4.6.3 ADX (Average directional index) index
Ht = current high Ht-1 = previous high
An indicator used in technical analysis as an objective value
for the strength of trend. ADX is non-directional so it will Lt = current low Lt-1 = previous low
quantify a trend's strength regardless of whether it is up or - = current -DM = current negative
down. ADX is usually plotted in a chart window along with DMn modified directional
two lines known as the DMI (Directional Movement moving movement value
Indicators). ADX is derived from the relationship of the DMI average of -
lines. Analysis of ADX is a method of evaluating trend and DM
can help traders to choose the strongest trends and also how to TRn = current TRANSAC = true range
let profits run when the trend is strong. modified TION
moving
average of the
true range
N = number of DX = current DX
periods
1061
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
4.7 Combining Trading Signals Using Neural Network 3. Positions are taken in last 5 min of market closing, if any
An Artificial Neural Network, often just called a signal/stoploss is generated.
neural network, is a mathematical model inspired by biological 4. All the stoplosses are considered as triggered only on the
neural networks. A closing basis.
5. No positions are taken in between, if a trade is missed.
Algorithm:
Begin
Buy Signal :
If index close is above the bigger EMA, and
ADX is not showing consolidation phase, and
Macd is Positive.
Stoploss :
This buy trade will be kept open till the index close is above
the shorter EMA, which acts as a trailing stop loss.
4.8 Procedure and Algorithm of Proposed Methodology Explanation of our System’s snapshot: The given chart is
subdivided into 3 parts. The 1st part shows the Nifty movement
1. Data of Index Future are collected from NSE Server 15 with add-ons of 8 and 34 Emas. It also shows where the
min before stock market closing and are taken as close of signals are generated and where their stoploss triggered.
that day. Signals are shown by arrows, green and red, and stoplosses are
2. Data is updated into the trading signal generating shown by green and red stars. The 2nd segment contains the
software.( E.g. Amibroker, Ninja Trader etc.) Adx signal and 3rd shows the Macd indicator.
1062
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
1063
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
near 2000 and at end it reached 5000, so for calculations, 2000 [4] L. Lin, D. Luo, and L. Liu. Mining domain-driven
was taken as base for a single trade. As far as our Proposed correlations in stock markets. In S. Zhang and R. Jarvis,
Methodology is concerned, there are 145 trades of different editors, AI 2005: Advances in Artificial Intelligence:
18th Australian Joint Conference on Artificial
bases. So “Profit in Points” column gives a better idea of the
Intelligence, pages 979–982,2005
performance, where our methodology generated 5410 points [5] E. Fink and K. B. Pratt. Indexing of compressed time
as compared to 3228 generated by Nifty. So we conclude that series. InM. Last, A. Kandel, and H. Bunke, editors,
our Proposed Methodology outperforms Base Index - Nifty. Data Mining in Time Series Databases, volume 57 of
Machine Perception and Artificial Intelligence, pages
VI. CONCLUSION & FUTURE SCOPE 43–65. World Scientific, 2004[6] M. Kantardzic. Data
Mining – Concepts, Models, Methods, and Algorithms.
The simulation result and observations in chapter 4 can be IEEE Press, Piscataway, NJ, USA, 2003.
summarized as follows: Note that these observations are [6] M. Kantardzic. Data Mining – Concepts, Models,
restricted to the scope of the project which is using Index Methods, and Algorithms. IEEE Press, Piscataway, NJ,
Futures as trading instrument during the period of April 2005 USA, 2003.
to March 2012. [7] http://www.investopedia.com/active-trading/technical-
indicators/#axzz25hOUjQ00
1. From all technical signals, Bollinger bands signal exhibited [8] John L. Person “ A complete guide to technical trading
the highest annual return on investments. tactics “
2. Adx and Bollinger bands both outperformed the Nifty [9] Richard Dennis and William Eckhardt , “ The original
index but Macd could not. Proposed Methodology gave Turtle Trading Rules ”
highest returns on the absolute index point return basis. [10] http://en.wikipedia.org
3. Number of negative trades mostly exceeds the positives [11] http://www.ino.com, “17 Money making candlestick
trades in all strategies. patterns”
4. Automated trading shows better performance in long term [12] http://thebestbusinessintheworld.blogspot.in/search?q=
as compared to hit and trail methods. 34+ema
5. Volume of trading has increased significantly when SEBI [13] Nikhil Bakshi ETH Zurich Aug 2008, “ Stock market
permitted automated trading in India in 2005. prediction using online data : fundamental and
6. Combination of indicators results in better performance technical approaches”
than individual indicators which are unidirectional in their [14] Suhasini Subramanian Batch 2011, MSc Student of
approach. Economics and Finance Durham Business School,
Ustinov College Durham University United Kingdom
Future Scope: This Proposed Methodology does not include (UK), “The Impact of the Introduction of Index
the hedging strategies, and also it is not tested in “Nifty Futures on Volatility and Noise Trading ”
Options” which can reduce the loss generated in more than [15] Http://www.informedtrades.com/f400/
half of total trades. Future work could involve both these left [16] Darie Moldovan , Babes-Bolyal university of Cluj-
aspects. The third main addition can be the inclusion of Napoca Dec 2011 ,“Business intelligence – data mining
candlestick patterns. All these ideas are left for later versions in finance”
of this Proposed Methodology. [17] Http://www.swing-trade-stocks.com/swing-trading-
strategy.html
REFERENCE [18] Richi Nayak and Paul te Braak, Faculty of Information
technology, Queensland university of technology,
[1] M. C. Chan, H. C. Leung, and W. D. Luo, “ Brisbane, “ Temporal Pattern matching for the
Association mining system for financial ratios and prediction of stock prices ”
stock prices in China and Hong Kong stock exchange” [19] Http://stockcharts.com
In A. Abraham, Y. Dote, T. Furuhashi, M. K¨oppen, A. [20] “Accuracy Driven Artificial Neural Networks in Stock
Ohuchi, and Y. Ohsawa, editors, Soft Computing as market Prediction” Selvan Simon and Arun Raoot
Tran disciplinary Science and Technology, pages1151– Asst. Professor, P. G. Dept. of Computer Sci., SNDT
1160. Springer Verlag Berlin Heidelberg, 2005. Women’s University, Mumbai
[2] E. Fink and K. B. Pratt. Indexing of compressed time [email protected] Professor, National Institute
series. In M. Last, A. Kandel, and H. Bunke, editors, of Industrial Engineering, Vihar Lake, Mumbai.
Data Mining in Time Series Databases, volume 57 of [21] Monica Tirea Computer Science Department West
Machine Perception and Artificial Intelligence, pages University of Timisoara Timisoara, Romania
43–65. World Scientific, 2004. [email protected], “Multi-Agent Stock Trading
[3] L. Lin, L. Cao, J.Wang, and C. Zhang. The applications Algorithm Model”. Loan Tandau Green Mountain
of genetic algorithms in stock market data mining Analytics Cary, North Carolina USA
optimization. In Proceedings of Fifth International [email protected] and Viorel Negru Computer
Conference on Data Mining, Text Mining and their Science Department West University of Timisoara
Business Applications, pages 273–280, 2004 Timisoara, Romania [email protected]
1064
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
Article Received: 25 April 2023 Revised: 12 June 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
[22] K. Senthamarai Kannan, P. Sailapathi Sekar, M. [40] Fayyad et al., 1996. Piatetsky-Shapiro et al. 1991,
Mohamed Sathikand P. Arumugam, “Financial Stock Silberschatz et al.1995
Market Forecast using Data Mining Techniques” [41] Singh, A., Bhardwaj, G., Srivastava, A.P., Bindra, A.
[23] Savinderjit Kaur - Department of Information and Chaudhary, P., 2022, April. Application of neural
Technology, UIET,PU, Chandigarh, India and Veenu network to technical analysis of stock market
Mangat -Assistant Professor, department of prediction. In 2022 3rd International Conference on
Information Technology, UIET, PU, Chandigarh, India. Intelligent Engineering and Management (ICIEM) (pp.
“Applications of data mining in stock market “ 302-306). IEEE.
[24] The empirical study of applying technical analysis on [42] Liu, X., Guo, J., Wang, H. and Zhang, F., 2022.
DJI , HSI and Taiwan stock market Prediction of stock market index based on ISSA-BP
[25] Robert P. Schumaker and Hsinchun Chen Artificial neural network. Expert Systems with Applications, 204,
Intelligence Lab, Department of Management p.117604.
Information Systems The University of Arizona, [43] Napitupulu, H., Sambas, A., Murniati, A. and
Tucson, Arizona 85721, USA{rschumak, Kusumaningtyas, V.A., 2022. Artificial Neural
hchen}@eller.arizona.edu Network-Based Machine Learning Approach to Stock
[26] “ Stock Trend Prediction Using Regression Analysis – Market Prediction Model on the Indonesia Stock
A Data Mining Approach “ S Abdulsalam Sulaiman Exchange During the COVID-19. Engineering
Olaniyi, 2Adewole, Kayode S. , 3Jimoh, R. G 1Al- Letters, 30(3).
Hikmah University,Ilorin, Nigeria,2Kwara State [44] Sharma, D.K., Hota, H.S., Brown, K. and Handa, R.,
University, Malete, Nigeria,3University of Ilorin,Ilorin, 2022. Integration of genetic algorithm with artificial
[email protected], neural network for stock market
[email protected], forecasting. International Journal of System Assurance
[email protected] Engineering and Management, 13(Suppl 2), pp.828-
[27] Ayo Charles K., 1Adebiyi Marion O., and 2Otokiti 841.
Sunday O. Stock Price Prediction using Neural [45] Srivinay, Manujakshi, B.C., Kabadi, M.G. and Naik,
Network with Hybridized Market Indicators 1 Adebiyi N., 2022. A hybrid stock price prediction model based
Ayodele A.,1Department of Computer and Information on PRE and deep neural network. Data, 7(5), p.51.
sciences, Covenant University, Ota, 2 Department of [46] Manujakshi, B.C., Kabadi, M.G. and Naik, N., 2022. A
Business Studies, Covenant University, Ota, Nigeria hybrid stock price prediction model based on pre and
Author: VOL. 3, NO. 1, January 2012 ISSN 2079- deep neural network. Data, 7(5), p.51.
8407 Journal of Emerging Trends in Computing and [47] Sako, K., Mpinda, B.N. and Rodrigues, P.C., 2022.
Information Sciences. Neural networks for financial time series
[28] http://www.icharts.in/charts.html forecasting. Entropy, 24(5), p.657.
[29] Arun K. Pujari, “ Data Mining Techniques ” [48] Li, X., Wang, J., Tan, J., Ji, S. and Jia, H., 2022. A
[30] Nhamo Mdzingwa Supervisor :John Ebden “ Data graph neural network-based stock forecasting method
Mining with Oracle 10g using Clustering and utilizing multi-source heterogeneous data
Classification Algorithms : 30 May2005 : Rhodes fusion. Multimedia tools and applications, 81(30),
University COMPUTER SCIENCE HONOURS pp.43753-43775.
PROJECT [49] Li, C. and Qian, G., 2022. Stock Price Prediction Using
[31] Boris kovalerchuck central Washington University a Frequency Decomposition Based GRU Transformer
USA Evgenni Vityaev institute of mathematics, Neural Network. Applied Sciences, 13(1), p.222.
Russian academy of sciences, Russia : ”Data mining for
financial application”
[32] http://www.onlinetradingconcepts.com/TechnicalAnaly
sis/MAExponential.html
[33] Tutorial PPT by Richard J.Roiger, Michael Geatz. Data
Mining: A Tutorial Based Primer
[34] Discovery of Patterns and evaluation of Clustering
Algorithms in Social Network Data (Face book
100Universities) through Data Mining Techniques and
Methods Edelstein, 1999) Nan cy.P1, Dr.R. Geetha
Ramani2 1Ph.D Research
[35] Nitchi & Avram-Nitchi, 1997
[36] [Berry et al, 2000]
[37] [Pyle, 2000]
[38] http://www.tradersedgeindia.com/swing_trading.htm
[39] http://kalyan-city.blogspot.in/2010/11/what-is-stock-
exchange-its-definitions.html
1065
IJRITCC | August 2023, Available @ http://www.ijritcc.org