A deep learning based stock trading model with 2-D CNN trend detection

The success of convolutional neural networks in the field of computer vision has attracted the attention of many researchers from other fields. One of the research areas in which neural networks is actively used is financial forecasting. In this paper, we propose a novel method for predicting stock price movements using CNN. To avoid the high volatility of the market and to maximize the profit, ETFs are used as primary financial assets. We extract commonly used trend indicators and momentum indicators from financial time series data and use these as our features. Adopting a sliding window approach, we generate our images by taking snapshots that are bounded by the window over a daily period. We then perform daily predictions, namely, regression for predicting the ETF prices and classification for predicting the movement of the prices on the next day, which can be modified to estimate weekly or monthly trends. To increase the number of images, we use numerous ETFs. Finally, we evaluate our method by performing paper trading and calculating the final capital. We also compare our method's performance to commonly used classical trading strategies. Our results indicate that we can predict the next day's prices with 72% accuracy and end up with 5:1 of our initial capital, taking realistic values of transaction costs into account.

[1]  Adriano Lorena Inácio de Oliveira,et al.  Expert Systems With Applications , 2022 .

[2]  Geoffrey E. Hinton,et al.  ImageNet classification with deep convolutional neural networks , 2012, Commun. ACM.

[3]  Jeff Heaton,et al.  An empirical analysis of feature engineering for predictive modeling , 2016, SoutheastCon 2016.

[4]  Rohit Choudhry,et al.  A Hybrid Machine Learning System for Stock Market Forecasting , 2008 .

[5]  Erdogan Dogdu,et al.  An Artificial Neural Network-based Stock Trading System Using Technical Analysis and Big Data Framework , 2017, ACM Southeast Regional Conference.

[6]  A. Murat Ozbayoglu,et al.  TN-RSI: Trend-normalized RSI Indicator for Stock Trading Systems with Evolutionary Computation , 2014, Complex Adaptive Systems.

[7]  Bruce J. Vanstone,et al.  Financial time series forecasting with machine learning techniques: a survey , 2010, ESANN.

[8]  Tsai Stock Price Forecasting by Hybrid Machine Learning Techniques , 2022 .

[9]  Matthew D. Zeiler ADADELTA: An Adaptive Learning Rate Method , 2012, ArXiv.

[10]  Nitish Srivastava,et al.  Dropout: a simple way to prevent neural networks from overfitting , 2014, J. Mach. Learn. Res..

[11]  Pei-Chann Chang,et al.  A novel model by evolving partially connected neural network for stock price trend forecasting , 2012, Expert Syst. Appl..

[12]  Aderemi Oluyinka Adewumi,et al.  Comparison of ARIMA and Artificial Neural Networks Models for Stock Price Prediction , 2014, J. Appl. Math..

[13]  Luca Di Persio,et al.  Artificial Neural Networks architectures for stock price prediction: comparisons and applications , 2016 .

[14]  Kimon P. Valavanis,et al.  Surveying stock market forecasting techniques - Part II: Soft computing methods , 2009, Expert Syst. Appl..

[15]  Shie-Jue Lee,et al.  A multiple-kernel support vector regression approach for stock market price forecasting , 2011, Expert Syst. Appl..

[16]  Bryan T. Kelly,et al.  The Three-Pass Regression Filter: A New Approach to Forecasting Using Many Predictors , 2014 .