THE POTENTIAL FOR REAL-TIME TESTING OF HIGH FREQUENCY TRADING STRATEGIES THROUGH A DEVELOPED TOOL DURING VOLATILE MARKET CONDITIONS


Abstract

In this study, the authors propose a method for testing high frequency trading (HFT) algorithms on the GPU using kernel parallelization, code vectorization, and multidimensional matrices. The method is applied to various algorithmic trading methods on cryptocurrencies during volatile market conditions, specifically during the COVID-19 pandemic. The results show that the method is effective in evaluating the efficiency and profitability of HFT strategies, as demonstrated Sharp ratio of 2.29 and Sortino ratio of 2.88. The authors suggest that further study on HFT testing methods could be conducted using a tool that directly connects to electronic marketplaces, enabling real-time receipt of high-frequency trading data and simulation of trade decisions.


Keywords:

high frequency trading, cryptocurrencies, algorithmic trading, multidimensional matrices, parallelization, simulation

Abedin, M. Z., Moon, M. H., Hassan, M. K., & Hajek, P. (2021). Deep learning-based exchange rate prediction during the COVID-19 pandemic. Annals of Operations Research (pp.1-52). Springer. http://doi.org/10.1007/s10479-021-04420-6
  Google Scholar

Adekoya, O. B., & Oliyide, J. A. (2021). How COVID-19 drives connectedness among commodity and financial markets: Evidence from TVP-VAR and causality-in-quantiles techniques. Resources Policy, 70, 101898. http://doi.org/10.1016/j.resourpol.2020.101898
  Google Scholar

Ammar, I. B., & Hellara, S. (2022). High-frequency trading, stock volatility, and intraday crashes. The Quarterly Review of Economics and Finance, (vol. 84, pp. 337-344). http://doi.org/10.1016/j.qref.2022.03.004
  Google Scholar

Anane M. and Abergel F., (2014). Optimal high frequency strategy in an omniscient order book.
  Google Scholar

Baron M., Brogaard J., Hagströmer B., & Kirilenko A. (2019), Risk and Return in High-Frequency Trading. Journal of Financial and Quantitative Analysis, 54(3), 993-1024. http://doi.org/10.1017/S0022109018001096
  Google Scholar

Baron M., Brogaard J., Hagströmer B.. Kirilenko A., (2017). Risk and Return in High-Frequency Trading.
  Google Scholar

Journal of Financial and Quantitative Analysis (JFQA), Forthcoming. https://ssrn.com/abstract=2433118 Available at SSRN.
  Google Scholar

Beckhardt B., Frankl D.E., Lu C. and Wang, M.I. (2016). A Survey of High-Frequency Trading Strategies.
  Google Scholar

Bellia, M., Christensen, K., Kolokolov, A., Pelizzon, L., & Renò, R. (2020). Do Designated Market Makers Provide Liquidity During a Flash Crash? SAFE Working, 270. http://dx.doi.org/10.2139/ssrn.3560238
  Google Scholar

Borgards, O., Czudaj, R. L., & Van Hoang, T. H. (2021). Price overreactions in the commodity futures market: An intraday analysis of the Covid-19 pandemic impact. Resources Policy, 71, 101966. https://doi.org/10.1016/j.resourpol.2020.101966
  Google Scholar

Bouri, E., Gupta, R., Hosseini, S., & Lau, C. K. M. (2018). Does global fear predict fear in BRICS stock markets? Evidence from a Bayesian Graphical Structural VAR model. Emerging Markets Review, 34, 124-142. http://doi.org/10.1016/j.ememar.2017.11.004
  Google Scholar

Chen C-H, Lai W-H, Hung S-T, Hong T-P. (2022). An Advanced Optimization Approach for Long-Short Pairs Trading Strategy Based on Correlation Coefficients and Bollinger Bands. Applied Sciences. 12(3) 1052. https://doi.org/10.3390/app12031052
  Google Scholar

Chen, Sh., Zhang, B., Zhou, G. and Qin, Q. (2018). Bollinger Bands Trading Strategy Based on
  Google Scholar

on Wavelet Analysis. Applied Economics and Finance. 5(3) 1-15. https://doi.org/10.11114/aef.v5i3.3079
  Google Scholar

Disli, M., Nagayev, R., Salim, K., Rizkiah, S. K., & Aysan, A. F. (2021). In search of safe haven assets during COVID-19 pandemic: An empirical analysis of different investor types. Research in International Business and Finance, 58, 101461. https://doi.org/10.1016/j.ribaf.2021.101461
  Google Scholar

Fil, M. (2020). Gold Standard Pairs Trading Rules: Are They Valid? arXiv. https://doi.org/10.48550/arXiv.2010.01157
  Google Scholar


  Google Scholar

Fischer T. G., Krauss C. & Deinert A., (2019). Statistical Arbitrage in Cryptocurrency Markets, J. Risk Financial Manag 12(1), 31. https://doi.org/10.3390/jrfm12010031
  Google Scholar

Furlan, A. (2019). An analysis of arbitrage and cointegration based pairs trading in the cryptocurrency market. Department of Economics and Finance, 121.
  Google Scholar

Garcia-Calavaro C., Paternina-Caicedo A., Smith A.D., Harrison L.H., De la Hoz-Restrepo F., Acosta E. & Riffe, T. (2021). COVID-19 mortality needs age adjusting for international comparisons. Journal of Medical Virology, 93(7), 4127-4129. https://doi.org/10.1002/jmv.27007
  Google Scholar

Ghosh, I., & Sanyal, M. K. (2021). Introspecting predictability of market fear in Indian context during COVID- 19 pandemic: An integrated approach of applied predictive modelling and explainable AI. International Journal of Information Management Data Insights, 1(2), 100039. https://doi.org/10.1016/j.jjimei.2021.100039
  Google Scholar

Han H., Teng J., Xia J., Wang Y., Guo Z., Li D. (2020). Locally Linear Embedding for HighFrequency Trading Marker Discovery. In Han, H., Wei, T., Liu, W., & Han, F. (Eds.), Recent Advances in Data Science, (pp. 3-17). Springer. https://doi.org/10.1007/978-981-15-8760-3_1
  Google Scholar

Herlemont D. (2013), Pairs Trading, Convergence Trading, Cointegration, Quantitative Finance, Vol. 12, No. 9.
  Google Scholar

Hossain S. (2022), High-Frequency Trading (HFT) and Market Quality Research: An Evaluation of the Alternative HFT Proxies, Journal of Risk and Financial Management, 15(2), 54. https://doi.org/10.3390/jrfm15020054
  Google Scholar

Huang, Z., & Martin, F. (2019). Pairs trading strategies in a cointegration framework : backtested on CFD and optimized by profit factor. Applied Economics, 51(22), 2436–2452. https://doi.org/10.1080/00036846.2018.1545080
  Google Scholar

Islam, N. et al., (2021), COVID-19 travel restrictions and the international border closure index: an analysis of air traffic data, Journal of Travel Medicine, Vol. 28.
  Google Scholar

Jaramillo C. (2016). The Revolt against High-Frequency Trading: From Flash Boys, to Class Actions, to IEX, Review of banking & financial law, 35, 483 - 499.
  Google Scholar

Ji, Q., Zhang, D., & Zhao, Y. (2020). Searching for safe-haven assets during the COVID-19 pandemic. International Review of Financial Analysis, 71, 101526. https://doi.org/10.1016/j.irfa.2020.101526
  Google Scholar

Just, M., & Echaust, K. (2020). Stock market returns, volatility, correlation and liquidity during the COVID-19 crisis: Evidence from the Markov switching approach. Finance Research Letters, 37, 101775. https://doi.org/10.1016/j.frl.2020.101775
  Google Scholar

Kearns M., Kulesza A. and Nevmyvaka Y., (2010). Empirical Limitations on High Frequency Trading Profitability. SSRN. https://doi.org/10.3905/jot.2010.5.4.050
  Google Scholar

Krause A. and Fairbank M., (2020). Baseline win rates for neural-network based trading algorithms, 2020 International Joint Conference on Neural Networks (IJCNN), (pp. 1-6) IEEE. https://doi.org/10.1109/IJCNN48605.2020.9207649
  Google Scholar

Kumiega A., Neururer T. and Van Vliet B., (2012) Trading System Capability, Quantitative Finance, 14(3), 2014. http://dx.doi.org/10.2139/ssrn.2327227
  Google Scholar

Lin, B., & Su, T. (2020). The impact of COVID-19 on the connectedness in energy commodities: A pandora's box or sudden event?. Research in International Business and Finance, 101360-101360.
  Google Scholar

Liu, G., (2019) Technical Trading Behaviour: Evidence from Chinese Rebar Futures Market. Comput Economics, 54, 669–704. https://doi.org/10.1007/s10614-018-9851-4
  Google Scholar

Loh, L. K. Y., Kueh, H. K., Parikh, N. J., Chan, H., Ho, N. J. H., & Chua, M. C. H. (2022). An Ensembling Architecture Incorporating Machine Learning Models and Genetic Algorithm Optimization for Forex Trading. FinTech, 1(2), 100-124. https://doi.org/10.3390/fintech1020008
  Google Scholar

Park, B. J. (2022). The COVID-19 pandemic, volatility, and trading behavior in the bitcoin futures market. Research in international business and finance, 59, 101519. https://doi.org/10.1016/j.ribaf.2021.101519
  Google Scholar

Păuna, C. (2018). Arbitrage Trading Systems for Cryptocurrencies. Design Principles and Server Architecture. Informatica Economica, 22(2), 35-42. https://doi.org/10.12948/issn14531305/22.2.2018.04
  Google Scholar

Perlin M. S. (2009). Evaluation of Pairs-trading strategy at the Brazilian financial market. Journal of Derivatives & Hedge Funds, 15, 122–136. https://doi.org/10.1057/jdhf.2009.4
  Google Scholar

Salisu, A. A., Akanni, L., & Raheem, I. (2020). The COVID-19 global fear index and the predictability of commodity price returns. Journal of Behavioral and Experimental Finance, 27, 100383. https://doi.org/10.1016/j.jbef.2020.100383
  Google Scholar


  Google Scholar

Sarmento, S.M. and Horta, N. (2020). Enhancing a Pairs Trading strategy with the application of Machine Learning. Expert Systems with Applications, 158, 113490. https://doi.org/10.1016/j.eswa.2020.113490
  Google Scholar

Server Architecture, 22(2), 35–42.
  Google Scholar

Shi Z., Zhifeng W., Shuaiwei S., Chengzhi M., Yingqiao W. and Laiqi Z. (2022), High-Frequency Forecasting of Stock Volatility Based on Model Fusion and a Feature Reconstruction Neural Network, 11(23), 4057. https://doi.org/10.3390/electronics11234057
  Google Scholar

Stübinger, J., & Bredthauer, J. (2017). Statistical Arbitrage Pairs Trading with High-frequency Data. International Journal of Economics and Financial Issues, 7(4), 650–662.
  Google Scholar

Treleaven, Ph., Galas, M., Lalchand, V. (2013). Algorithmic trading review. Communications of the ACM, 56(11), 76–85. https://doi.org/10.1145/2500117
  Google Scholar

Tudor, C., & Sova, R. (2022). Flexible decision support system for algorithmic trading: Empirical application on crude oil markets. IEEE Access, 10, 9628-9644. https://doi.org/10.1109/ACCESS.2022.3143767
  Google Scholar

Ungever C. (2015), Pairs Trading to the Commodities Futures Market Using Cointegration Method. International Journal of Commerce and Finance, 1(1), 25-38.
  Google Scholar

Vaitonis M., Masteika S. (2021). A method for testing high-frequency statistical arbitrage trading strategies in electronic exchanges. Transformations in business and economics, 20(2B), 1024 – 1053.
  Google Scholar

Vaitonis M., Masteika S., (2018), Experimental Comparison of HFT Statistical arbitrage Strategies Using the Data of Microsecond and Nanosecond Future Commodity Contracts. Baltic J. Modern Computing, 6(2), 195-216. https://doi.org/10.22364/bjmc.2018.6.2.10
  Google Scholar

Virgilio, G. P. M. (2019). High-frequency trading: a literature review. Financial markets and portfolio management, 33(2), 183-208. . https://doi.org/10.1007/s11408-019-00331-6
  Google Scholar

Vo, A., & Yost-Bremm, C. (2018). A High-Frequency Algorithmic Trading Strategy for Wavelet Analysis. Applied Economics and Finance, Vol. 5, No. 3.
  Google Scholar

Wibmer, C.K., Ayres, F., Hermanus, T., Madzivhandila, M., Kgagudi, P., Oosthuysen, B., Lambson, B. E., Oliveira, T., Vermeulen, M., Van der Berg, K., Rossouw, T., Boswell, M., Ueckermann, V., Meiring, S., Gottberg, A., Cohen, Ch., Morris, L., Bhiman, J, N., & Moore, P. L. (2021), SARS-CoV-2 501Y.V2 escapes neutralization by South African COVID-19 donor plasma. Nature Medicine, 27, 622–625. https://doi.org/10.1038/s41591-021-01285-x
  Google Scholar

Wu, B. B. (2021). The dynamics of oil on China’s commodity sectors: What can we learn from a quantile perspective?. Journal of Commodity Markets, 23, 100158. https://doi.org/10.1016/j.jcomm.2020.100158
  Google Scholar

Wu, M., Wang, W. C., & Chung, W. (2017). Using trading mechanisms to investigate large futures data and their implications to market trends. Soft Comput, 21, 2821–2834. https://doi.org/10.1007/s00500-016-2162-6
  Google Scholar

Tian, X., Han, R., Wang, L., Lu, G., & Zhan, J. (2015), Latency critical big data computing in finance. The Journal of Finance and Data Science, 1(1). 33-41. https://doi.org/10.1016/j.jfds.2015.07.002
  Google Scholar

Zhang X., Huang Y., Xu, K., & Xing, L. (2023), Novel modelling strategies for high-frequency stock trading data, Financial Innovation, 39. https://doi.org/10.1186/s40854-022-00431-9
  Google Scholar

Zhang Z., Zohren S. and Roberts S., (2020) Deep Learning for Portfolio Optimisation. Available at SSRN, 12, https://dx.doi.org/10.2139/ssrn.3613600
  Google Scholar

Zubulake, P., & Lee, S. (2011), The High Frequency Game Changer – How Automated Trading Strategies Have Revolutionized the Markets. John Wiley and Sons, Inc, Hoboken, New Jersey.
  Google Scholar

Download


Published
2023-06-30

Cited by

Vaitonis, M., & Korovkinas, K. (2023). THE POTENTIAL FOR REAL-TIME TESTING OF HIGH FREQUENCY TRADING STRATEGIES THROUGH A DEVELOPED TOOL DURING VOLATILE MARKET CONDITIONS. Applied Computer Science, 19(2), 63–81. Retrieved from https://ph.pollub.pl/index.php/acs/article/view/3629

Authors

Konstantinas Korovkinas 

Lithuania
https://orcid.org/0000-0001-6111-3277

Statistics

Abstract views: 89
PDF downloads: 57


License

Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.

All articles published in Applied Computer Science are open-access and distributed under the terms of the Creative Commons Attribution 4.0 International License.


Similar Articles

<< < 2 3 4 5 6 7 8 > >> 

You may also start an advanced similarity search for this article.