Comparative Comparison of the Efficiency of Hybrid Model of an Agent-based & Recursive Neural Network in Automating Algorithmic Trading Strategies in Global Financial Markets

Document Type : Original Article

Authors

1 Ph.D. Student in Information Technology Management, Department of Management, Isfahan (Khorasgan) Branch, Islamic Azad University, Isfahan, Iran.

2 Senior Lecturer, School of Computing, National University of Singapore, 117417, Singapore.

3 Associate Professor of Economics, Department of Economics, Isfahan (Khorasgan) Branch, Islamic Azad University, Isfahan, Iran.

4 Associate Professor of Economics, Department of Economics, Faculty of Administrative Science and Economics, University of Isfahan, Iran.

10.30495/ijfma.2023.72807.2004

Abstract

The purpose of this study is to investigate and compare the efficiency of using a hybrid model of an agent-based and recursive neural network to automate algorithmic trading strategies in global financial markets and the Tehran Stock Exchange. The model consists of two groups of agents, including traditional agents and intelligent agents. The group of traditional agents is divided into three categories: liquidity providers, liquidity consumers, and noise traders. Historical data was used to predict stock prices in the intelligent agent group, and model simulations were used to generate trading signals and update the limited order book.
To extract the historical data, information from the financial markets of New York, Frankfurt, and Tokyo from 2013 to 2020 AD and the Tehran Stock Exchange from 1392 to 1399 Persian calendar was extracted from the official websites of these markets.
To compare the efficiency of the model, autocorrelation and Hurst exponent tests were performed on the time series of the model price and the time series of the closing price of the historical data of the actual financial markets. The results of the autocorrelation and Hurst exponent analysis of the model and the historical financial market data were compared using the Mann-Whitney test. The results of the Mann-Whitney test show that the model can effectively predict the behavior of the actual financial markets.

Keywords


Aloud, M. E. (2020). The role of attribute selection in Deep ANNs learning framework for high‐frequency financial trading. Intelligent Systems in Accounting, Finance and Management, 27(2), 43-54.
Andersson, H., & Britton, T. (2012). Stochastic epidemic models and their statistical analysis (Vol. 151): Springer Science & Business Media.
Bao, W., Yue, J., & Rao, Y. (2017). A deep learning framework for financial time series using stacked autoencoders and long-short term memory. PloS one, 12(7), e0180944.
Booth, A. (2016). Automated algorithmic trading: Machine learning and agent-based modelling in complex adaptive financial markets. University of Southampton,
Broersen, P. M. (2006). Automatic autocorrelation and spectral analysis: Springer Science & Business Media.
Carta, S., Ferreira, A., Podda, A. S., Recupero, D. R., & Sanna, A. (2020). Multi-DQN: an Ensemble of Deep Q-Learning Agents for Stock Market Forecasting. Expert Systems with Applications, 113820.
Casgrain, P., & Jaimungal, S. (2020). Mean‐field games with differing beliefs for algorithmic trading. Mathematical Finance, 30(3), 995-1034.
Chakole, J. B., Kolhe, M. S., Mahapurush, G. D., Yadav, A., & Kurhekar, M. P. (2021). A Q-learning agent for automated trading in equity stock markets. Expert Systems with Applications, 163, 113761.
Chan, N. T., LeBaron, B., Lo, A. W., & Poggio, T. (1999). Agent-based models of financial markets: A comparison with experimental markets.
Freund, W. C., & Pagano, M. S. (2000). Market efficiency in specialist markets before and after automation. Financial Review, 35(3), 79-104.
Gilbert, N. (2008). Agent-based models: Sage.
Graves, A. (2013). Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850.
Ha, Y., & Zhang, H. (2020). Algorithmic trading for online portfolio selection under limited market liquidity. European Journal of Operational Research.
Hochreiter, S., Bengio, Y., Frasconi, P., & Schmidhuber, J. (2001). Gradient flow in recurrent nets: the difficulty of learning long-term dependencies. In: A field guide to dynamical recurrent neural networks. IEEE Press.
Jahandari, S., Kalhor, A., & Araabi, B. N. (2018). Online forecasting of synchronous time series based on evolving linear models. IEEE Transactions on Systems, Man, and Cybernetics: Systems, 50(5), 1865-1876.
Jirasakuldech, B., Dudney, D. M., Zorn, T. S., & Geppert, J. M. (2011). Financial disclosure, investor protection and stock market behavior: an international comparison. Review of quantitative finance and accounting, 37, 181-205.
Kissell, R. (2013). The science of algorithmic trading and portfolio management: Academic Press.
Li, Y., Zheng, W., & Zheng, Z. (2019). Deep Robust Reinforcement Learning for Practical Algorithmic Trading. IEEE Access, 7, 108014-108022. doi:10.1109/ACCESS.2019.2932789
Liu, C. (2015). Optimal Execution Strategies: A Computational Finance Approach.
Lovric, M. (2011). Behavioral finance and agent-based artificial markets.
MacFarland, T. W., & Yates, J. M. (2016). Introduction to nonparametric statistics for the biological sciences using R: Springer.
Manahov, V., Hudson, R., & Urquhart, A. (2019). High-frequency trading from an evolutionary perspective: Financial markets as adaptive systems. International Journal of Finance & Economics, 24(2), 943-962. doi:10.1002/ijfe.1700
Martinez, L. B., Guercio, M. B., Bariviera, A. F., & Terceño, A. (2018). The impact of the financial crisis on the long-range memory of European corporate bond and stock markets. Empirica, 45, 1-15.
Marton, B., & Cakir, H. (2022). Usage of the Hurst Exponent for Short Term Trading Strategies. Available at SSRN 4290787.
McGroarty, F., Booth, A., Gerding, E., & Chinthalapati, V. R. (2019). High frequency trading strategies, market fragility and price spikes: an agent based model perspective. Annals of Operations Research, 282(1), 217-244.
Mishkin, F. S. (2007). The economics of money, banking, and financial markets: Pearson education.
Nejad, M. G. (2016). On the contributions and the validation of an agent-based simulation model of innovation diffusion. European Journal of Marketing, 50. doi:http://dx.doi.org/10.1108/EJM-02-2016-0108
Nogales, F. J., Contreras, J., Conejo, A. J., & Espínola, R. (2002). Forecasting next-day electricity prices by time series models. IEEE Transactions on power systems, 17(2), 342-348.
North, M. J., & Macal, C. M. (2007). Managing business complexity: discovering strategic solutions with agent-based modeling and simulation: Oxford University Press.
Oesch, C. (2014). An agent-based model for market impact.
Qian, B., & Rasheed, K. (2004). Hurst exponent and financial market predictability. Paper presented at the IASTED conference on Financial Engineering and Applications.
Saltelli, A., Ratto, M., Andres, T., Campolongo, F., Cariboni, J., Gatelli, D., . . . Tarantola, S. (2008). Global Sensitivity Analysis: The Primer: Wiley.
Sharma, S. C., & Wongbangpo, P. (2002). Long-term trends and cycles in ASEAN stock markets. Review of Financial Economics, 11(4), 299-315.
Shehzad, H., Anwar, M., & Razzaq, M. (2023). A Comparative Predicting Stock Prices using Heston and Geometric Brownian Motion Models. arXiv preprint arXiv:2302.07796.
Tesfatsion, L. (2006). Agent-based computational economics: A constructive approach to economic theory. Handbook of computational economics, 2, 831-880.
van der Hoog, S. (2017). Deep Learning in (and of) Agent-Based Models: A Prospectus. arXiv preprint arXiv:1706.06302.
Wellman, M. P., & Wah, E. (2016). Strategic Agent-Based Modeling of Financial Markets. journal of the social sciences.
Zheng, X., & Chen, B. M. (2009). Modeling and analysis of financial markets using system adaptation and frequency domain approach. Paper presented at the 2009 IEEE International Conference on Control and Automation.