Professional Documents
Culture Documents
Employing Deep Learning in Intraday Stock Trading: December 2020
Employing Deep Learning in Intraday Stock Trading: December 2020
net/publication/347840605
CITATIONS READS
0 1,542
5 authors, including:
Some of the authors of this publication are also working on these related projects:
MFDFA and LPPL Coupled work to find volatility pattern View project
All content following this page was uploaded by Chinthakunta Manjunath on 24 December 2020.
Addapalli V N Krishna
Balamurugan M Bikramaditya Ghosh
Computer Science and Engineering
Computer Science and Engineering School of Business & Management
(School of Engineering and Technology)
(School of Engineering and Technology) Institute of Management
CHRIST(Deemed to be University)
CHRIST(Deemed to be University) CHRIST(Deemed to be University)
Bengaluru,India
Bengaluru,India Bengaluru,India
adapalli.krishna@christuniversity.in
balamurugan.m@christuniversity.in bikramaditya.ghosh@christuniversity.in
Abstract— Accurate stock price prediction is a Mankind is always existed to know about their future.
significant benefit to the Stock investors. The future Stock Especially when it comes to knowing about future financial
value of any company is determined by Stock market status because this will benefit them to a larger extent than
prediction. A successful prediction of the stock’s future they can plan their needs in comfort. To predict the future it
price could result in a significant profit; Hence investors is necessary to understand and recognize patterns. Unique
prefer a precise Stock price prediction. Although there are patterns can be determined by developing specific methods.
many different approaches to helps in forecasting stock These methods facilitate in eradicating speculations and also
prices, this paper will briefly look into the deep learning
helps in identifying patterns by determining new
models and compare LSTM model and its variants. The
algorithms[1].
key intention of this study is to propose a model that is best
suitable and can be implemented to forecasting trend of
stock prices. This paper focuses on binary classification The most important need of any stockholder is to know the
problem, predicting the next-minute price movement of fluctuations of stock prices in the financial market. This is an
SPDR S&P 500 index The testing experiments performed important prediction as it facilitates their decision in
on the SPDR S&P 500 index reveals that the variants of investing or de-invest in the stock market. SVM(System
LSTM models, Slim LSTM1, slim LSTM2, and Slim Vector Machine) is the methodology used in this research
LSTM3 with less parameters, provide better performance paper to predict stock trends. Here the Model is trained by
when compared to the Standard LSTM Model. the usage of actual historical data. This SVM learning theory
gives us a one-step prediction. All nonlinear functions can be
Keywords— Stock Market Forecasting, Machine mapped without any prior assumption about the data. This is
Learning, Deep Learning, Long Short-Term Memory possible by the usage of Neural networks, which are
(LSTM), Recurrent Neural Networks(RNN).
universal function approximates[2]. Neural Networks are
generally data-driven which allow data to speak for itself.
I. INTRODUCTION They are non-parametric weak models. Neural network
models are better than most of the parametric models
because they are less influenced by the model
In the financial market world, with great advancement of
misspecification problems. The risk prediction dynamics are
information technology, stocks represent one of the key
powerfully described than any of the traditional statistical
assets that people are counting upon. Most people invest
their hard earned money in financial market with good methods.
knowledge in equity market and statistics. There are different
kinds of investment in the stock market such as intraday, SVM trains neural polynomial networks or radial function
short term, medium term and long term investments. There neural networks. It works on the principle of structural risk
are people who believe in intraday and considered as risk minimization (SRM). Generally, in neural networks, the
takers. They are the key players in the financial market of empirical error is minimised. But in SVM, the upper bound
intra-day trading. Majority of people, with sound knowledge of generalization error is minimised. Optimum network
of the market, statistics and lot of ‘gut’ feelings, are investing structure is achieved when SVM maintains the right balance
their hard earned money into company shares. And then we between the VC-confidence interval and the empirical error.
have people, who are termed as ‘Risk Takers’, who believe By this the generalisation performance is better when than
in the understanding of commerce, current affairs, and other neural networks. SVM Model has also shown
mathematics. They are the major players in the world of incredible results in analysing various problems which
intra-day trading. includes text categorization[3], pattern recognition[4], object
detection[5], face detection[6], bioinformatics[7], etc.
= ).................(4)
Then, the LSTM memory cell and the hidden state are,
= ...............................(5)
= ......................................(6)
where tanh - nonlinear tanh activation function.
In this experiment, the evaluation of the predictive Slim LSTM 2 0.5249 0.5200 0.5173
performance of the US SPDR S&P 500 index are performed Slim LSTM 3 0.5159 0.5124 0.5050
by using the relevant statistical indicators i.e., F value (F-
Score) and Evaluation index accuracy (Accuracy). The
model’s prediction results is First described in Table 2. Training and testing Classification reports of Standard
TABLE 2: MODEL PREDICTION RESULTS LSTM and varints of LSTM are revealed in table 4 and table
5 respectively.
Actual Class
TABLE 4: CLASSIFICATION REPORT (TRAINING)
Actual Actual
Trend: Trend: Model Precision Recall F1-Score Support
“Up” “Down”
LSTM 0.55 0.27 0.36 9332
Predicted trend : TP FP
“Up” Slim LSTM 1 0.53 0.52 0.53 9332
Predicted
Class Predicted trend : FN TP Slim LSTM 2 0.52 0.57 0.54 9332
“Down”
Slim LSTM 3 0.51 0.81 0.63 9332
Even before computing the precision and F value, we need to TABLE 5: CLASSIFICATION REPORT (TESTING)
get the precision and recall. Accuracy shows if the true trend
Model Precision Recall F1-Score Support
in the proportion is ‘up’ then the predicted samples are to be
‘up’. Similarly, the recall represents that in the samples the LSTM 0.50 0.30 0.38 1086
predicted true trend is ‘rising’, the true trend is the proportion
of ‘rising’. The formula for calculating Slim LSTM 1 0.53 0.50 0.51 1086
Figure 5: ROC Curve of Standard LSTM, Slim LSTM1, Slim LSTM2, and
Slim LSTM3.
Figure 3: Model Accuracy using Standard LSTM and Slim LSTM1, Slim
LSTM2, Slim LSTM3
Figure 4: Model Loss using Standard LSTM and Slim LSTM1, Slim
LSTM2, Slim LSTM3.