Abstract
We compare the performance of various advanced forecasting techniques, namely artificial neural networks, k-nearest neighbors, logistic regression, Naïve Bayes, random forest classifier, support vector machine, and extreme gradient boosting classifier to predict stock price movements based on past prices. We apply these methods with the high frequency data of 27 blue-chip stocks traded in the Istanbul Stock Exchange. Our findings reveal that among the selected methodologies, random forest and support vector machine are able to capture both future price directions and percentage changes at a satisfactory level. Moreover, consistent ranking of the methodologies across different time frequencies and train/test set partitions prove the robustness of our empirical findings.
Similar content being viewed by others
Notes
Consequently, Fama (1970) classifies informative efficiency into three categories: (i) Weak efficiency, when the current price contains information from the past series of prices; (ii) Semi-strong efficiency, when the past price contains all the public information associated with that asset; and (iii) Strong efficiency, when the price reflects all public and private information relating to that asset.
Being world’s 17th largest economy, Turkey has been a destination of extensive capital flows in the last few years and its stock market has attracted a lot of attention. With 614 TL bn. market capitalization and more than 1 TL tn. traded value at the end of 2016, equity market of Istanbul Stock Exchange is ranked 6th in traded value among all emerging markets in the world. Moreover, it is ranked 3rd in the whole world with a share turnover velocity of more than 200% in the same year. These statistics show that there is a high level of trading activity at a global scale in Istanbul Stock Exchange and makes it a perfect ground to test our trading strategies.
It was not possible to obtain this tick-by-tick data from data providers so the data comes directly from the database of the stock exchange. Since this is a unique data set, it was not possible the extend it beyond 2016.
It is important to note that portfolios managed by financial institutions are very large and small abnormal returns (forecasting signs above 50% and profit ratio of 10%) could represent extra earnings worth millions of dollars. Similarly, trading thousands of times in a day with small abnormal returns would accumulate up to considerable amount of excess dollar gain in the market.
References
Avci, E., Bunn, D., Ketter, W., & van Heck, E. (2019). Agent-level determinants of price expectation formation in online double-sided auctions. Decision Support Systems, 124, 113068.
Brasileiro, R., Souza, V. L. F., & Oliviera, A. L. I. (2017). Automatic trading method based on piecewise aggregate approximation and multi-swarm of improved self-adaptive particle swarm optimization with validation. Decision Support Systems, 104, 79–91.
Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32.
Cheng, C.-H., & Yang, J.-H. (2018). Fuzzy time-series model based on rough set rule induction for forecasting stock price. Neurocomputing, 302, 33–45.
Christensen, H. L., Murphy, J., & Godsill, S. J. (2012). Forecasting high-frequency futures returns using online Langevin dynamics. IEEE Journal of Selected Topics in Signal Processing, 6, 366–380.
D’Ecclesia, R. L., & Clementi, D. (2021). Volatility in the stock market: ANN versus parametric models. Annals of Operations Research, 299(1), 1101–1127.
Fama, E. F. (1970). Efficient capital markets: A review of theory and empirical work. Journal of Finance, 25, 383–417.
Fama, E. F. (1991). Efficient capital markets: II. Journal of Finance, 46, 1575–1617.
Fernandes, F. D. S., Stasinakis, C., & Zekaite, Z. (2019). Forecasting government bond spreads with heuristic models: Evidence from the Eurozone periphery. Annals of Operations Research, 282, 87–118.
Fernández-Rodríguez, F., González-Martel, C., & Sosvilla-Rivero, S. (2000). On the profitability of technical trading rules based on artificial neural networks: Evidence from the Madrid stock market. Economics Letters, 69, 89–94.
Feuerriegel, S., & Gordon, J. (2018). Long-term stock index forecasting based on text mining of regulatory disclosures. Decision Support Systems, 112, 88–97.
Fornaciari, M., & Grillenzoni, C. (2017). Evaluation of on-line trading systems: Markov-switching vs time-varying parameter models. Decision Support Systems, 93, 51–61.
Freeman, J. A., & Skapura, D. M. (1991). Neural networks, algorithms, applications, and programming techniques. Boston: Addison-Wesley Publishing Company.
Gencay, R. (1999). Linear, non-linear and essential foreign exchange rate prediction with simple technical trading rules. Journal of International Economics, 47, 91–107.
Göçken, M., Özçalici, M., Boru, A., & Dosdogru, A. T. (2016). Integrating metaheuristics and artificial neural networks for improved stock price prediction. Expert Systems with Applications, 44, 320–331.
Ho, C.-S., Damien, P., Gu, B., & Konana, P. (2017). The time-varying nature of social media sentiments in modeling stock returns. Decision Support Systems, 101, 69–81.
Hudson, R., & Urquhart, A. (2021). Technical trading and cryptocurrencies. Annals of Operations Research, 297(1), 191–220.
Iglesias Caride, M., Bariviera, A. F., & Lanzarini, L. (2018). Stock returns forecast: An examination by means of artificial neural networks. In C. Berger-Vachon, A. M. Gil Lafuente, J. Kacprzyk, Y. Kondratenko, J. M. Merigó, & C. F. Morabito (Eds.), Complex systems: Solutions and challenges in economics, management and engineering: Dedicated to Professor Jaime Gil Aluja (pp. 399–410). Cham: Springer.
Isasi Viñuela, P., & Galván León, I. M. (2004). Redes de neuronas artificiales. Un enfoque práctico. Prentice Hall: Pearson.
Jeong, G., & Kim, H. Y. (2019). Improving financial trading decisions using deep Q-learning: Predicting the number of shares, action strategies, and transfer learning. Expert Systems with Applications, 117, 125–138.
Karhunen, M. (2019). Algorithmic sign prediction and covariate selection across eleven international stock markets. Expert Systems with Applications, 115, 256–263.
Kim, H. Y., & Won, C. H. (2018). Forecasting the volatility of stock price index: A hybrid model integrating LSTM with multiple GARCH-type models. Expert Systems with Applications, 103, 25–37.
Kyriakou, I., Mousavi, P., Nielsen, J. P., & Scholz, M. (2021). Forecasting benchmarks of long-term stock returns via machine learning. Annals of Operations Research, 297(1), 221–240.
Lahmiri, S. (2016). Intraday stock price forecasting based on variational mode decomposition. Journal of Computational Science, 12, 23–27.
Lanzarini, L., Iglesias Caride, J. M., & Bariviera, A. F. (2011). Are technical trading rules useful to beat the market? Evidence from the Brazilian stock market. In World congress of international fuzzy systems association 2011 and Asia fuzzy systems society international conference 2011 (pp. 21–25).
Malagrino, L. S., Roman, N. T., & Monteiro, A. M. (2018). Forecasting stock market index daily direction: A Bayesian network approach. Expert Systems with Applications, 105, 11–22.
McGroarty, F., Booth, A., Gerding, E., & Chinthalapati, V. L. R. (2019). High frequency trading strategies, market fragility and price spikes: An agent based model perspective. Annals of Operations Research, 282, 217–244.
Nadkarni, J., & Neves, R. F. (2018). Combining neuro-evolution and principal component analysis to trade in the financial markets. Expert Systems with Applications, 103, 184–195.
Nam, K., & Seong, N. Y. (2019). Financial news-based stock movement prediction using causality analysis of influence in the Korean stock market. Decision Support Systems, 117, 100–112.
Oztekin, A., Kizilaslan, R., Freund, S., & Iseri, A. (2016). A data analytic approach to forecasting daily stock returns in an emerging market. European Journal of Operational Research, 253, 697–710.
Qiu, M., Song, Y., & Akagi, F. (2016). Application of artificial neural network for the prediction of stock market returns: The case of the Japanese stock market. Chaos, Solitons & Fractals, 85, 1–7.
Rapach, D. E., & Zhou, G. (2013). Forecasting stock returns. In G. Elliott & A. Timmermann (Eds.), Handbook of economic forecasting (Vol. 6, pp. 328–383). Amsterdam: Elsevier.
Riedmiller, M., & Braun, H. (1993). A direct adaptive method for faster backpropagation learning: The RPROP algorithm. In A. Anu (Ed.), IEEE international conference on neural networks (pp. 586–591). IEEE.
Ross, S. A. (2005). Neoclassical finance. Princeton: Princeton University Press.
Shang, H. L., Yang, Y., & Kearney, F. (2019). Intraday forecasts of a volatility index: Functional time series methods with dynamic updating. Annals of Operations Research, 282, 331–354.
Zuo, Y., & Kita, E. (2012). Stock price forecast using Bayesian network. Expert Systems with Applications, 39, 6729–6737.
Acknowledgements
Ahmet Sensoy gratefully acknowledges support from the Turkish Academy of Sciences under its Outstanding Young Scientist Program (TUBA-GEBIP).
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendix A. Results for the ‘all trades’ scenario
Rights and permissions
About this article
Cite this article
Akyildirim, E., Bariviera, A.F., Nguyen, D.K. et al. Forecasting high-frequency stock returns: a comparison of alternative methods. Ann Oper Res 313, 639–690 (2022). https://doi.org/10.1007/s10479-021-04464-8
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10479-021-04464-8