Abstract
Financial forecasting using computational intelligence nowadays remains a hot topic. Recent improvements in deep neural networks allow us to predict financial market behavior better than traditional machine learning approaches. In this paper, we propose three novel deep learning-based financial forecasting frameworks, all of which considerably outperform existing approaches, yielding a much better annual financial return on DOW-30 stocks and Exchange-Traded Funds (ETFs) tested between January 1, 2007, and December 31, 2016. The first framework Convolutional Neural Networks with Technical Indicator Clustering (CNN-TIC) creates images with multiple channels corresponding to the technical indicator clusters and employs the take profit and stop loss techniques to obtain a superior annual financial return. The second model Evolutionary Optimized CNN-TIC (EO-CNN-TIC) computes the optimal values in the take profit and stop loss techniques using one of the recently created evolutionary optimization algorithms, Cuckoo Search. Finally, the third model Residual Network with Technical Analysis (ResNet-TA) applies residual blocks to the convolutional part of the neural network architecture to extract more useful features from deeper layers. Both CNN-TIC and EO-CNN-TIC are based on clustering the technical indicators by their similarity in behavior and creating separate five distinct images based on the five clusters, while ResNet-TA takes advantage of going deeper in the network with residual blocks. All three models further improve their performances by hyperparameter tuning. On DOW-30 stocks, we were able to achieve annual returns of 20.45% , 29.54% , and 36.70% for CNN-TIC, EO-CNN-TIC, and ResNet-TA, whereas for ETFs, 16.56% , 19.20% , and 32.09% annual returns were observed, respectively. We conclude with future work that can be done in order to further improve the computational and financial performances of the models.
Similar content being viewed by others
References
Abdel-Hamid O, Mohamed A, Jiang H, Deng L, Penn G, Yu D (2014) Convolutional neural networks for speech recognition. IEEE/ACM Trans Audio Speech Lang Process 22(10):1533–1545. https://doi.org/10.1109/TASLP.2014.2339736
Abe M, Nakayama H (2018) Deep learning for forecasting stock returns in the cross-section. Advances in knowledge discovery and data mining. Springer International Publishing, Berlin, pp 273–284. https://doi.org/10.1007/978-3-319-93034-3_22
Buczkowski P (2017) Predicting stock trends based on expert recommendations using GRU/LSTM neural networks, Lecture notes in computer science. Springer International Publishing, Berlin, pp 708–717. https://doi.org/10.1007/978-3-319-60438-1_69
Cavalcante RC, Brasileiro RC, Souza VL, Nobrega JP, Oliveira AL (2016) Computational intelligence and financial markets: a survey and future directions. Expert Syst Appl 55:194–211. https://doi.org/10.1016/j.eswa.2016.02.006
Chen L, Qiao Z, Wang M, Wang C, Du R, Stanley HE (2018) Which artificial intelligence algorithm better predicts the chinese stock market? IEEE Access 6:48625–48633. https://doi.org/10.1109/access.2018.2859809
Chen J, Chen W, Huang C, Huang S, Chen A (2016) Financial time-series data analysis using deep convolutional neural networks. In: 2016 7th International conference on cloud computing and big data (CCBD), pp 87–92. https://doi.org/10.1109/CCBD.2016.027
Chen K, Zhou Y, Dai F (2015) A LSTM-based method for stock returns prediction: a case study of china stock market. In: 2015 IEEE international conference on big data (Big Data). https://doi.org/10.1109/bigdata.2015.7364089
Dezsi E, Nistor IA (2016) Can deep machine learning outsmart the market? A comparison between econometric modelling and long-short term memory. Rom Econ Bus Rev 11(4.1):54–73
Doering J, Fairbank M, Markose S (2017) Convolutional neural networks applied to high-frequency market microstructure forecasting. In: 2017 9th Computer science and electronic engineering (CEEC), pp 31–36. https://doi.org/10.1109/CEEC.2017.8101595
Feng G, He J, Polson NG, (2018)Deep learning for predicting asset returns. arXiv:arXiv:1804.09314
Gudelek MU, Boluk SA, Ozbayoglu AM (2017) A deep learning based stock trading model with 2-d CNN trend detection. In: 2017 IEEE symposium series on computational intelligence (SSCI). https://doi.org/10.1109/ssci.2017.8285188
Gunduz H, Yaslan Y, Cataltepe Z (2017) Intraday prediction of borsa istanbul using convolutional neural networks and feature correlations. Knowl Based Syst 137:138–148. https://doi.org/10.1016/j.knosys.2017.09.023
He K, Zhang X, Ren S, Sun J (2016) Deep residual learning for image recognition. In: The IEEE conference on computer vision and pattern recognition (CVPR)
Hiransha M, Gopalakrishnan EA, Menon VK, Soman KP (2018) Nse stock market prediction using deep-learning models. Procedia Comput Sci 132:1351–1362. https://doi.org/10.1016/j.procs.2018.05.050
Jia H (2016) Investigation into the effectiveness of long short term memory networks for stock price prediction. arXiv:arXiv:1603.07893
Khare K, Darekar O, Gupta P, Attar VZ (2017) Short term stock price prediction using deep learning. In: 2017 2nd IEEE international conference on recent trends in electronics, information communication technology (RTEICT), pp 482–486. https://doi.org/10.1109/RTEICT.2017.8256643
Kim Y (2014)Convolutional neural networks for sentence classification. In: Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), association for computational linguistics, pp 1746–1751. https://doi.org/10.3115/v1/D14-1181. http://aclweb.org/anthology/D14-1181
Kingma DP, Ba J (2017) Adam: a method for stochastic optimization, CoRR abs/1412.6980. arxiv.org/abs/1412.6980
Krizhevsky A, Sutskever I, Hinton GE (2012) Imagenet classification with deep convolutional neural networks. In: Pereira F, Burges CJC, Bottou L, Weinberger KQ (eds) Advances in neural information processing systems, vol 25. Curran Associates Inc, Red Hook, pp 1097–1105
LeCun Y, Jackel L, Bottou L, Cortes C, Denker JS, Drucker H, Guyon I, Muller UA, Sackinger E, Simard P et al (1995) Learning algorithms for classification: a comparison on handwritten digit recognition. Neural Netw Stat Mech Perspect 261:276
Liang Q, Rong W, Zhang J, Liu J, Xiong Z (2017) Restricted Boltzmann machine based stock market trend prediction. In: 2017 International joint conference on neural networks (IJCNN). https://doi.org/10.1109/ijcnn.2017.7966014
Liu S, Zhang C, Ma J (2017) CNN-LSTM neural network model for quantitative strategy analysis in stock markets. In: Neural information processing, Springer International Publishing, pp 198–206. https://doi.org/10.1007/978-3-319-70096-0_21
Maratkhan A, Ilyassov I, Aitzhanov M, Demirci MF, Ozbayoglu M (2019) Financial forecasting using deep learning with an optimized trading strategy. IEEE Congr Evolut Comput (CEC) 2019:838–844. https://doi.org/10.1109/CEC.2019.8789932
Mareli M, Twala B (2018) An adaptive Cuckoo search algorithm for optimisation. Appl Comput Inform 14(2):107–115. https://doi.org/10.1016/j.aci.2017.09.001
Ng JY, Hausknecht MJ, Vijayanarasimhan S, Vinyals O, Monga R, Toderici G (2015) Beyond short snippets: deep networks for video classification, CoRR abs/1503.08909. arxiv.org/abs/1503.08909
Samarawickrama A, Fernando T (2017) A recurrent neural network approach in predicting daily stock prices an application to the Sri Lankan stock market. In: 2017 IEEE international conference on industrial and information systems (ICIIS). https://doi.org/10.1109/iciinfs.2017.8300345
Schöneburg E (1990) Stock price prediction using neural networks: a project report. Neurocomputing 2(1):17–27. https://doi.org/10.1016/0925-2312(90)90013-H
Selvin S, Vinayakumar R, Gopalakrishnan EA, Menon VK, Soman KP (2017) Stock price prediction using LSTM, RNN and CNN-sliding window model. In: 2017 International conference on advances in computing, communications and informatics (ICACCI), pp 1643–1647. https://doi.org/10.1109/ICACCI.2017.8126078
Sezer OB, Ozbayoglu AM (2019) Financial trading model with stock bar chart image time series with deep convolutional neural networks. arXiv preprint arXiv:1903.04610
Sezer O, Ozbayoglu M (2018) Algorithmic financial trading with deep convolutional neural networks: time series to image conversion approach. Appl Soft Comput. https://doi.org/10.1016/j.asoc.2018.04.024
Sezer OB, Ozbayoglu M, Dogdu E (2017) A deep neural-network based stock trading system based on evolutionary optimized technical analysis parameters. Procedia Comput Sci 114:473–480. https://doi.org/10.1016/j.procs.2017.09.031
Simonyan K, Zisserman A (2014) Very deep convolutional networks for large-scale image recognition, CoRR abs/1409.1556. arxiv.org/abs/1409.1556
Singh R, Srivastava S (2016) Stock prediction using deep learning. Multimed Tools Appl 76(18):18569–18584. https://doi.org/10.1007/s11042-016-4159-7
Sirignano J, Cont R (2019) Universal features of price formation in financial markets: perspectives from deep learning. SSRN Electr J. https://doi.org/10.2139/ssrn.3141294
Szegedy C, Liu W, Jia Y, Sermanet P, Reed S, Anguelov D, Erhan D, Vanhoucke V, Rabinovich A (2015) Going deeper with convolutions. In: The IEEE conference on computer vision and pattern recognition (CVPR)
Torres DG, Qiu H (2018) Applying Recurrent Neural Networks for Multivariate Time Series Forecasting of Volatile Financial Data. ResearchGate. Available: https://www.researchgate.net/project/Applying-Recurrent-Neural-Networks-for- Multivariate-Time-Series-Forecasting-of-Volatile-Financial-Data. Accessed 14 Dec 2020
Tsantekidis A, Passalis A, Tefas A, Kanniainen J, Gabbouj M, Iosifidis A (2017) Forecasting stock prices from the limit order book using convolutional neural networks. In: 2017 IEEE 19th conference on business informatics (CBI). https://doi.org/10.1109/cbi.2017.23
Tsantekidis A, Passalis N, Tefas A, Kanniainen J, Gabbouj M, Iosifidis A (2017) Using deep learning to detect price change indications in financial markets. In: IEEE 2017 25th European signal processing conference (EUSIPCO). https://doi.org/10.23919/eusipco.2017.8081663
Yuan Z, Zhang R, Shao X (2018) Deep and wide neural networks on multiple sets of temporal data with correlation. In: Proceedings of the 2018 international conference on computing and data engineering-ICCDE 2018, ACM Press. https://doi.org/10.1145/3219788.3219793
Zhang X, Tan Y (2018) Deep stock ranker: a LSTM neural network model for stock selection. Data mining and big data. Springer International Publishing, Berlin, pp 614–623. https://doi.org/10.1007/978-3-319-93803-5_58
Zhang X, LeCun Y (2015) Text understanding from scratch, CoRR abs/1502.01710. arxiv.org/abs/1502.01710
Zhou F, Min Zhou H, Yang Z, Yang L (2019) Emd2fnn: a strategy combining empirical mode decomposition and factorization machine based neural network for stock market trend prediction. Expert Syst Appl 115(2019):136–151. https://doi.org/10.1016/j.eswa.2018.07.065
Acknowledgements
M. Fatih Demirci and Murat Ozbayoglu have previously received research Grants from TUBITAK (Scientific and Technological Research Council of Turkey). M. Fatih Demirci has received Grants from Nazarbayev University (Kazakhstan). M. Fatih Demirci has previously worked in TOBB University (Turkey), Utrecht University (Holland), and Drexel University (USA). Murat Ozbayoglu has previously worked in SunEdison (USA), Beyond Inc. (USA), and Missouri University of Science and Technology (USA).
Funding
The authors do not declare any funding for this research.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that there is no conflict of interest.
Human and animal rights
This article does not contain any studies with human participants or animals performed by any of the authors.
Additional information
Communicated by V. Loia.
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Maratkhan, A., Ilyassov, I., Aitzhanov, M. et al. Deep learning-based investment strategy: technical indicator clustering and residual blocks. Soft Comput 25, 5151–5161 (2021). https://doi.org/10.1007/s00500-020-05516-0
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00500-020-05516-0