Stock Prediction Based on Technical Indicators Using Deep Learning Model
Stock Prediction Based on Technical Indicators Using Deep Learning Model
Model
Abstract
:- Stock market trends forecast is one of the most current topics and a
significant research challenge due to its dynamic and unstable nature. The stock
data is usually non-stationary and attributes are non-correlative to each other.
Several traditional Stock Technical Indicators (STIs) may incorrectly predict the stock
market trends To study the stock-market characteristics using STIs and make efficient
trading decisions, a robust model is built. This paper aims to build up an Evolutionary
Deep Learning Model (EDLM) to identify stock trends’ prices by using STIs. The
proposed model has implemented the Deep Learning (DL) model to establish the
concept of Correlation-Tensor. The analysis of the dataset of three most popular
banking organizations obtained from the live stock market based on the National
Stock exchange (NSE)– India, a Long Short Term Memory (LSTM) is used. The datasets
encompassed the trading days from the 17th of Nov 2008 to the 15th of Nov 2018.
This work also conducted exhaustive experiments to study the correlation of various
STIs with stock price trends. The model built with an EDLM has shown significant
improvements over two benchmark ML models and a deep learning one. The
proposed model aids investors in making profitable investment decisions as it
presents trend-based forecasting and has achieved a prediction accuracy of
63.59%,56.25%,and57.95%onthedatasetsof HDFC, Yes Bank, and SBI, respectively.
Results indicate that the proposed EDLA with a combination of STIs can often provide
improved results than the other state-of-the-art algorithms. Keywords: Long short
term memory; evolutionary deep learning model; national stock exchange; stock
technical indicators; predictive modelling; prediction accuracy This work is licensed
under a Creative Commons Attribution 4.0 International License, which permits
unrestricted use, distribution, and reproduction in any medium, provided the original
work is properly cited
Keywords
: Long short term memory; evolutionary deep learning model; national
stock exchange; stock technical indicators; predictive modelling; prediction accuracy
Introduction The country’s stock market offers excellent investors opportunities by
buying a stock and becoming a stockholder to earn from long-term benefits or
trading on the stock. The stock market is dynamic and volatile [1]. The launch of the
business and other unexpected national, global, and social changes instantly
negatively or positively affects stock prices. Therefore, it is not possible to reliably
foresee stock prices and their directions; instead, stock traders only predict
significant developments in the future. Investors generally decide to buy or sell the
Introduction
:-stock based on the company’s past and present performance. The
parameters for studying the company’s performance include typically numerical data
and essential news. The stock trends prediction methods are categorized into two
groups, i.e., as per the number of information sources: single and dual source
methods [2]. In available information sources methods, the semantic or numerical
information is hauled out from current news and public reviews, whereas in
particular source information methods, both are utilized. Nevertheless, over the last
few years, 5Vs: Volume, Variety, Velocity, Veracity, and Value of happenings and
reviews have overwhelmed the investor’s ability to analyse these meticulously [3,4].
Therefore, automated systems are of utmost importance for studying stock prices
based on past price data and STIs. Different classifications approach for predicting
stock prices is discussed in [5–8]. The role of stock price prediction is categorized in
other classifications as Fundamental Analysis, Technical Analysis, and Time Series
Forecasting [9]. Time series analytical research involves linear models like Auto-
Regressive Integrated Moving Average (ARIMA) [10] and Nonlinear models like
Artificial Neural Network (ANN) [11] and Deep Learning [12]. The existing forecasting
methods make use of both linear and nonlinear algorithms [13]. Many recent
researches on predicting stocks employs Machine Learning (ML) algorithms [14,15].
The researchers commonly use Artificial Neural Network (ANN) [16] and Support
Vector Machine (SVM) [17] for analysis and prediction of time series data. These
methods mostly utilize historical prices and STIs from price data. The research
community has taken a great deal of interest in discovering successful STIs, news,
and algorithms. DNN prediction techniques are widely valued, and authors used
experimental data to deter mine the properties of deep learning techniques [13,18].
This work proposes an approach that is capable of finding unseen relationships in the
data. Specifically, this work involves (1) the Study of popular Deep Learning
architectures and STIs. (2) Identification of STIs that are positively correlated to close
price. (3) Propose and build a Deep Learning based model for stock market
forecasting using technical indicators. (4) Demonstrate and gauge the performance of
the suggested model concerning popular ML classifiers. (5) Present an efficient
approach that helps the investor’s view on sustainable investment. The rest of this
paper is structured accordingly. Section II presents the technical background and
related work. In section III, we introduce the proposed deep learning architecture
foreclosing price and stock trends prediction. For evaluation, section IV presents an
experimental setup, methodology, and analysis. Section V will cover the conclusion of
the paper with future remarks stock exchange; stock technical indicators; predictive
modelling; prediction accuracy
Related Terminologies
:- Stock Technical Indicators (STIs) These are statistical
estimates based on the price, volume, or value of a share. They are not dependent
on a business’s details, like profit, margin, revenue, or earnings. Technical analysts
consider that price patterns can be recognized from historical figures and are
generally based on trends. Analysts derive indicators by analy historical data to
predict future price movements [19]. The active stock traders commonly use STIs to
study short-term price movements, and long-term investors use STIs to recognize buy
or sell periods. STIs can be combined with trading systems and beneficial while
forecasting stocks’ future prices [20]. The technical indicators have two basic types:
overlays and oscillators; the Overlays use the same scale as prices. Examples include
Simple Moving Average (SMA) and Bollinger Bands [21]. The Oscillators oscillate
between a local minimum and maximum and are plotted above or below a price
chart. MACD or RSI is a typical example. For removing the noise from stock data that
occurs due to price variations, this work utilizes SMA to smooth out prices. It is also
called a lagging or trend-following indicator as it is calculated from past prices. In the
above Tab. 1,Ct is the current price of the day under consideration, Hp and Lp are the
highest and lowest prices in the last p days, respectively, AL and AG are average loss
and average gain.
The most common technique used to build DL architectures is deep RNN. To learn
the network weights, the node in the hidden layers uses the data from preceding
processing steps in addition to current input data. The following equation can best
explain the RNN neural network Mt= tanh(W [STMt−1, Et]+ b) (2) where Et is Event
vector, STM t−1 is the short term memory (STM) vector coming from previous time
(t-1), tanh is sigmoid activation function, W is the linear function in matrix form, b is
bias and Mt is new memory as output at time t. The output is the prediction and the
memory that we carry to the next node
Literature Review
Souza et al. [30] investigated the performance of technical analyses
applied for capital markets in the BRICS Member States. They also looked for
evidence that technical studies and simple analyses could complement each other in
specific markets. They created a full spectrum of assets exchanged in each BRICS
member’s needs to carry out these investigations. The findings of previous inquiries
have been updated with new data and the inclusion of South Africa to the BRICS.
Action classes exceeded the average portfolio in each country and exceeded the
returns produced by a purchase and maintenance strategy. The sample portfolio was
high in Russia and India. A revolutionary approach to neural networks to improve
stock market predictions is Pang et al. [31]. Data from live stock markets on real-time
and off-line monitoring, visualization, and analysis of results were collected for digital
internet for stock analysis. They clarified the “stock vector theory,” based on the
production in a word vector research. It is not a single index or an available inventory
index, but historical information for several inventories. An embedded and long-term
network memory (LSTM) is given by an automated encoder to forecast the stock
market [32]. The test results show that the LSTM is more robust with a built-in layer.
In particular, for the Shanghai A-share composite index, two models have achieved
an accuracy of 57.2 and 56.9 percent, respectively. In comparison, for individual
stocks, it amounts to 52.4 and 52.5 percent. Chen et al. [33] developed a new
technical analysis method that helps investors improve their quality and profitability
decision-making. This methodology includes: (1) The design of a stock market
forecasting methodology based on technical analysis
(2) The development of techniques relating to stock market forecasting based on
technical analysis. (3) The presentation and evaluation of the technically developed
stock market forecasting analysis process. Chatzis et al. [34] included a predictive
process of probability in multiple timeframes of a stock crash. The approach
developed brings together many machine-learned algorithms covering various
economies with daily stock data, bond data, and currency details from 39 countries.
They employed different machine learning classification and regression methods. In
this literature, deep learning and boosting techniques are seen to forecast events in
bond crises. The data contain information on the principal financial transmission
networks, returns, and uncertainty, as independent variables. Lee et al. [35] build
prediction models on stock returns, which can jointly take into account international
markets through deep multimodal education. (1) Visualization of knowledge trans
mission between South Korea and the U.S. stock exchange through dispersion plots;
(2) Integra tion of knowledge into market prediction models using multimodal deep
learning; (3) They have shown that early and medium-sized fusion systems offer
substantial performance improvements as compared to late fusion; The work also
stated that along with an international stock market, the prediction accuracy could
be enhanced and deep neural networks are extremely successful for these tasks.
Maqsood et al. [36] used Twitter for each case to calculate sentiment analysis. The
dataset comprises 11.42 million tweets used to analyze the situation. Usage of linear
regression, vector regression, and deep learning helps to predict inventories. The
efficiency of the computer will be calculated by the Root Mean Square Error (RMSE).
The results show that the feeling of these activities improves performance. Hiransha
et al. [26] demonstrated the performance of four DL architectures: RNN, CNN, MLP,
and LSTM for predicting a day-wise stock price of Banking, IT, and Automobile sectors
from NSE. It has been shown that when training on NSE results, CNN worked
considerably better, as well as being able to estimate NYSE. The authors compared
the linear and nonlinear models. For comparison, the ARIMA model is chosen, which
is also a linear model. Pyo et al. [37] forecasted the patterns of the Korea Composite
Stock Price Index 200 (KOSPI 200) with non-parametric models of machine learning.
Furthermore, this analysis explores divisive topics and checks theories. Thus, our
findings are incompatible with those of the previous study, which are commonly seen
as performing highly predictable. Google Trends also proved that the KOSPI 200 index
prices for our frameworks are not forecasted. The ensemble methods have not
improved the precision of the predicted. Babu et al. [38] suggested a linear hybrid
model with predictive accuracy while retaining trend data. The coherence of the
proposed model is often clarified in a logical reasoning analysis. Agrawal et al. [39]
implemented the LSTM and adaptive stock technology indicators (STI’s) for the
prediction of patterns and prices of the stocks. Correlation tensor is used with STIs
for optimizing the deep learning task. The mean prediction accuracy of 59.25 percent
over the number of stocks that are much superior to benchmark approaches is
achieved via the proposed model. Yoshihara [40] states that most attempts were
made to use numerical information, partly because of the complexity of processing
natural language text and making sense of its temporal properties. This study
explicitly proposes a market trend prediction approach based on a recurring
deep neural network that models previous events’ time effects. On the real-world
data for ten Nikkei firms, the validity of the proposed method is seen. Zhang et al.
[41] made statistics on daily returns in history to show the relationship between
hidden States and the trend in a price change. CSI 300 and S&P 500 index studies
show that high-order HMM is better suited to detect a stock price pattern than the
first-order one. The high-order HMM is more reliable and less likely than the first-
order model to predict the index’s price trend. Agrawal et al. [42] have used the
Stock Technical Indicators (STIs) to predict stock prices and the market trends that
help to buy or sell the decision over a short and long period. In this work, two models
are implemented; one is for predicting the stock price and the other for storing the
decision made on the day during the buying and the selling of the stocks. They
integrated the long short-term memory (LSTM) with the correlated STIs to optimize
the model.