An Empirical Study of Machine Learning Algorithms for Stock Daily Trading Strategy

According to the forecast of stock price trends, investors trade stocks. In recent years, many researchers focus on adopting machine learning (ML) algorithms to predict stock price trends. However, their studies were carried out on small stock datasets with limited features, short backtesting period, and no consideration of transaction cost. And their experimental results lack statistical significance test. In this paper, on large-scale stock datasets, we synthetically evaluate various ML algorithms and observe the daily trading performance of stocks under transaction cost and no transaction cost. Particularly, we use two large datasets of 424 S&P 500 index component stocks (SPICS) and 185 CSI 300 index component stocks (CSICS) from 2010 to 2017 and compare six traditional ML algorithms and six advanced deep neural network (DNN) models on these two datasets, respectively. The experimental results demonstrate that traditional ML algorithms have a better performance in most of the directional evaluation indicators. Unexpectedly, the performance of some traditional ML algorithms is not much worse than that of the best DNN models without considering the transaction cost. Moreover, the trading performance of all ML algorithms is sensitive to the changes of transaction cost. Compared with the traditional ML algorithms, DNN models have better performance considering transaction cost. Meanwhile, the impact of transparent transaction cost and implicit transaction cost on trading performance are different. Our conclusions are significant to choose the best algorithm for stock trading in different markets.

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

[2]  Yurong Liu,et al.  A survey of deep neural network architectures and their applications , 2017, Neurocomputing.

[3]  Xi Chen,et al.  Integrating piecewise linear representation and weighted support vector machine for stock trading signal prediction , 2013, Appl. Soft Comput..

[4]  Jason Laws,et al.  Trading futures spread portfolios: applications of higher order and recurrent networks , 2008 .

[5]  Marija Gorenc Novak,et al.  Prediction of stock price movement based on daily high prices , 2016 .

[6]  Luca Di Persio,et al.  Recurrent Neural Networks Approach to the Financial Forecast of Google Assets , 2017 .

[7]  Thomas Fischer,et al.  Deep learning with long short-term memory networks for financial market predictions , 2017, Eur. J. Oper. Res..

[8]  P. Dash,et al.  A hybrid stock trading framework integrating technical analysis with machine learning techniques , 2016 .

[9]  Algirdas Maknickas,et al.  Investigation of financial market prediction by recurrent neural network , 2011 .

[10]  Tao Li,et al.  A novel data-driven stock price trend prediction system , 2018, Expert Syst. Appl..

[11]  Jianjun Xu,et al.  Deep Learning with Gated Recurrent Unit Networks for Financial Sequence Predictions , 2018 .

[12]  Jianxue Chen SVM application of financial time series forecasting using empirical technical indicators , 2010, 2010 International Conference on Information, Networking and Automation (ICINA).

[13]  Erdogan Dogdu,et al.  A Deep Neural-Network Based Stock Trading System Based on Evolutionary Optimized Technical Analysis Parameters , 2017 .

[14]  Amy Loutfi,et al.  A review of unsupervised feature learning and deep learning for time-series modeling , 2014, Pattern Recognit. Lett..

[15]  Ha Young Kim,et al.  Forecasting the volatility of stock price index: A hybrid model integrating LSTM with multiple GARCH-type models , 2018, Expert Syst. Appl..

[16]  Wei-Chang Yeh,et al.  Forecasting stock markets using wavelet transforms and recurrent neural networks: An integrated system based on artificial bee colony algorithm , 2011, Appl. Soft Comput..

[17]  Norton Trevisan Roman,et al.  Forecasting stock market index daily direction: A Bayesian Network approach , 2018, Expert Syst. Appl..

[18]  Adriano Lorena Inácio de Oliveira,et al.  Automatic trading method based on piecewise aggregate approximation and multi-swarm of improved self-adaptive particle swarm optimization with validation , 2017, Decis. Support Syst..

[19]  Shouyang Wang,et al.  Forecasting stock market movement direction with support vector machine , 2005, Comput. Oper. Res..

[20]  Yan Chen,et al.  A hybrid stock trading system using genetic network programming and mean conditional value-at-risk , 2015, Eur. J. Oper. Res..

[21]  Bellal Joseph,et al.  Traumatic Brain Injury , 2018 .

[22]  Kamil Zbikowski,et al.  Using Volume Weighted Support Vector Machines with walk forward testing and feature selection for the purpose of creating stock trading strategy , 2015, Expert Syst. Appl..

[23]  D. Wolfe,et al.  Nonparametric Statistical Methods. , 1974 .

[24]  Yulei Rao,et al.  A deep learning framework for financial time series using stacked autoencoders and long-short term memory , 2017, PloS one.

[25]  Matthew Dixon,et al.  Sequence Classification of the Limit Order Book Using Recurrent Neural Networks , 2017, J. Comput. Sci..

[26]  Przemyslaw Grzegorzewski,et al.  Stock Trading with Random Forests, Trend Detection Tests and Force Index Volume Indicators , 2013, ICAISC.

[27]  Irene Aldridge,et al.  High-frequency Trading High-frequency Trading Industry Strategy Project Engineering Leadership Program , 2022 .

[28]  Sahil Shah,et al.  Predicting stock and stock price index movement using Trend Deterministic Data Preparation and machine learning techniques , 2015, Expert Syst. Appl..

[29]  Wing Lon Ng,et al.  Enhancing risk-adjusted performance of stock market intraday trading with Neuro-Fuzzy systems , 2014, Neurocomputing.

[30]  Guo-qiang Xie The Optimization of Share Price Prediction Model Based on Support Vector Machine , 2011, 2011 International Conference on Control, Automation and Systems Engineering (CASE).

[31]  Chulwoo Han,et al.  Deep learning networks for stock market analysis and prediction: Methodology, data representations, and case studies , 2017, Expert Syst. Appl..

[32]  Nicolas Huck,et al.  Deep neural networks, gradient-boosted trees, random forests: Statistical arbitrage on the S&P 500 , 2017, Eur. J. Oper. Res..

[33]  Li Tang,et al.  Predicting the direction of stock markets using optimized neural networks with Google Trends , 2018, Neurocomputing.

[34]  Francisco Guijarro,et al.  Stock market trading rule based on pattern recognition and technical analysis: Forecasting the DJIA index with intraday data , 2015, Expert Syst. Appl..

[35]  Dymitr Ruta Automated Trading with Machine Learning on Big Data , 2014, 2014 IEEE International Congress on Big Data.

[36]  J. Moody,et al.  Performance functions and reinforcement learning for trading systems and portfolios , 1998 .

[37]  Meizi Li,et al.  Selection of the optimal trading model for stock investment in different industries , 2019, PloS one.