Machine learning-based probabilistic profitable model in algorithmic trading

Abstract. Machine learning models are nowadays becoming ubiquitous in algorithmic trading and investment management. These models are mostly used in the pre-trade analysis phase to determine the buy or sell decisions using various machine learning techniques. We aim to implement a machine learning-driven approach using various technical indicators to predict stock market prices and then accordingly make a decision about buying or selling. First, an effective trading strategy is discussed that selects the potentially profitable stocks, and then the technical indicators such as simple moving average (SMA), exponential moving average (EMA), relative strength index (RSI), and moving average convergence divergence (MACD) are calculated for those potentially profitable stocks. Then supervised machine learning algorithms such as multiple linear regression, support vector machine regression, and decision tree regression are applied, where the close price of the stock is predicted using technical indicators for the next day, and based on that buy or sell signals are generated. The model is then tested on 12 different SNP500 stocks, one for every month in 2018, with the mean squared error (MSE) varying between 30.33 and 48.16 and the root MSE varying between 5.51 and 6.93, where the error is calculated on the difference in the number of days when the stock price actually increases and the predicted number of days for various models.

[1]  M. B. Malik,et al.  Stock Market Prediction Using Machine Learning Techniques: A Decade Survey on Methodologies, Recent Developments, and Future Directions , 2021, Electronics.

[2]  Pavan Kumar Illa,et al.  Stock price prediction methodology using random forest algorithm and support vector machine , 2021, Materials Today: Proceedings.

[3]  Jerry Chun-Wei Lin,et al.  A graph-based CNN-LSTM stock price prediction algorithm with leading indicators , 2021, Multimedia Systems.

[4]  Mohsen Gharakhani,et al.  A Novel Hybrid Model for Stock Price Forecasting Based on Metaheuristics and Support Vector Machine , 2019, Data.

[5]  Yash Tiwari,et al.  Stock Market Prediction Using Machine Learning , 2019, IJARCCE.

[6]  Wei Chen,et al.  Support vector regression with modified firefly algorithm for stock price forecasting , 2018, Applied Intelligence.

[7]  Osisanwo F.Y,et al.  Supervised Machine Learning Algorithms: Classification and Comparison , 2017 .

[8]  Nikola Milosevic,et al.  Equity forecast: Predicting long term stock price movement using machine learning , 2016, ArXiv.

[9]  Mingyuan Wu,et al.  Technical analysis of three stock oscillators testing MACD, RSI and KDJ rules in SH & SZ stock markets , 2015, 2015 4th International Conference on Computer Science and Network Technology (ICCSNT).

[10]  Bayu Distiawan Trisedya,et al.  Stock price prediction using linear regression based on sentiment analysis , 2015, 2015 International Conference on Advanced Computer Science and Information Systems (ICACSIS).

[11]  Sahil Shah,et al.  Predicting stock market index using fusion of machine learning techniques , 2015, Expert Syst. Appl..

[12]  Jingren Yuan,et al.  Test on the Validity of Futures Market's High Frequency Volume and Price on Forecast , 2014, 2014 International Conference on Management of e-Commerce and e-Government.

[13]  Ken Tse,et al.  Stocks market prediction using Support Vector Machine , 2013, 2013 6th International Conference on Information Management, Innovation Management and Industrial Engineering.

[14]  Cheng Cheng,et al.  A Comparison of Ensemble Methods in Financial Market Prediction , 2012, 2012 Fifth International Joint Conference on Computational Sciences and Optimization.

[15]  Margaret Miró-Julià,et al.  Decision Trees in Stock Market Analysis: Construction and Validation , 2010, IEA/AIE.

[16]  Ping-Feng Pai,et al.  Time series forecasting by a seasonal support vector regression model , 2010, Expert Syst. Appl..

[17]  Guofu Zhou,et al.  Technical analysis: An asset allocation perspective on the use of moving averages , 2009 .

[18]  Cheng-Lung Huang,et al.  A hybrid SOFM-SVR with a filter-based feature selection for stock market forecasting , 2009, Expert Syst. Appl..

[19]  Tony Jan,et al.  Machine Learning Techniques and Use of Event Information for Stock Market Prediction: A Survey and Evaluation , 2005, International Conference on Computational Intelligence for Modelling, Control and Automation and International Conference on Intelligent Agents, Web Technologies and Internet Commerce (CIMCA-IAWTIC'06).

[20]  R. Kissell Algorithmic Trading , 2021, Algorithmic Trading Methods.

[21]  V. Gururaj,et al.  Stock Market Prediction using Linear Regression and Support Vector Machines , 2019 .

[22]  Alberto G. Rossi Predicting Stock Market Returns with Machine Learning , 2018 .

[23]  Xiao Zhong,et al.  Forecasting daily stock market return using dimensionality reduction , 2017, Expert Syst. Appl..

[24]  Ratchata Peachavanish,et al.  Stock Selection and Trading Based on Cluster Analysis of Trend and Momentum Indicators , 2022 .