PreprintCited by 29Stock Market Forecasting MethodsFinancial Markets and Investment StrategiesFinTech, Crowdfunding, Digital Finance

EarnHFT: Efficient Hierarchical Reinforcement Learning for High Frequency Trading

Open access
Qin, Molei, Sun, Shuo, Zhang, Wentao, Xia, Haochong, Wang, Xinrun, An, Bo·2023·arXiv

Abstract

High-frequency trading (HFT) uses computer algorithms to make trading decisions in short time scales (e.g., second-level), which is widely used in the Cryptocurrency (Crypto) market (e.g., Bitcoin). Reinforcement learning (RL) in financial research has shown stellar performance on many quantitative trading tasks. However, most methods focus on low-frequency trading, e.g., day-level, which cannot be directly applied to HFT because of two challenges. First, RL for HFT involves dealing with extremely long trajectories (e.g., 2.4 million steps per month), which is hard to optimize and evaluate. Second, the dramatic price fluctuations and market trend changes of Crypto make existing algorithms fail to maintain satisfactory performance. To tackle these challenges, we propose an Efficient hieArchical Reinforcement learNing method for High Frequency Trading (EarnHFT), a novel three-stage hierarchical RL framework for HFT. In stage I, we compute a Q-teacher, i.e., the optimal action value based on dynamic programming, for enhancing the performance and training efficiency of second-level RL agents. In stage II, we construct a pool of diverse RL agents for different market trends, distinguished by return rates, where hundreds of RL agents are trained with different preferences of return rates and only a tiny fraction of them will be selected into the pool based on their profitability. In stage III, we train a minute-level router which dynamically picks a second-level agent from the pool to achieve stable performance across different markets. Through extensive experiments in various market trends on Crypto markets in a high-fidelity simulation trading environment, we demonstrate that EarnHFT significantly outperforms 6 state-of-art baselines in 6 popular financial criteria, exceeding the runner-up by 30% in profitability.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

DataCite · 10.48550/arxiv.2309.12891

Cites

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

No references could be resolved yet.

Research works printed but not linked: 26

  1. Almeida, J.; and Gonc ¸alves, T. C. 2023. A systematic liter- ature review of investor behavior in the cryptocurrency mar- kets. Journal of Behavioral and Experimental Finance, 37: 100785.
  2. Briola, A.; Turiel, J.; Marcaccioli, R.; and Aste, T. 2021. Deep reinforcement learning for active high frequency trad- ing. arXiv preprint arXiv:2101.07107. · arXiv
  3. Chordia, T.; Roll, R.; and Subrahmanyam, A. 2002. Order imbalance, liquidity, and market returns. Journal of Finan- cial Economics, 65(1): 111-130.
  4. Delfabbro, P.; King, D. L.; and Williams, J. 2021. The psy- chology of cryptocurrency trading: Risk and protective fac- tors. Journal of Behavioral Addictions, 10(2): 201-207.
  5. Hochreiter, S.; and Schmidhuber, J. 1997. Long short-term memory. Neural computation, 9(8): 1735-1780.
  6. Huang, J.-Z.; Huang, W.; and Ni, J. 2019. Predicting bitcoin returns using high-dimensional technical indicators. The Journal of Finance and Data Science, 5(3): 140-155.
  7. Huang, S.; Dossa, R. F. J.; Ye, C.; Braga, J.; Chakraborty, D.; Mehta, K.; and Araújo, J. G. 2022. Cleanrl: High-quality single-file implementations of deep reinforcement learning algorithms. The Journal of Machine Learning Research, 23(1): 12585-12602.
  8. Krug, T.; Dobaj, J.; and Macher, G. 2022. Enforcing network safety-margins in industrial process control using MACD in- dicators. In European Conference on Software Process Im- provement, 401-413.
  9. Madhavan, A. 2000. Market microstructure: A survey. Jour- nal of Financial Markets, 3(3): 205-258.
  10. Mnih, V.; Kavukcuoglu, K.; Silver, D.; Graves, A.; Antonoglou, I.; Wierstra, D.; and Riedmiller, M. 2013. Play- ing Atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602. · arXiv
  11. Mnih, V.; Kavukcuoglu, K.; Silver, D.; Rusu, A. A.; Veness, J.; Bellemare, M. G.; Graves, A.; Riedmiller, M.; Fidje- land, A. K.; Ostrovski, G.; et al. 2015. Human-level control through deep reinforcement learning. Nature, 518(7540): 529-533.
  12. Muda, L.; Begam, M.; and Elamvazuthi, I. 2010. Voice recognition algorithms using mel frequency cepstral coef- ficient (MFCC) and dynamic time warping (DTW) tech- niques. arXiv preprint arXiv:1003.4083. · arXiv
  13. Niu, H.; Li, S.; and Li, J. 2022. MetaTrader: An reinforce- ment learning approach integrating diverse policies for port- folio optimization. In Proceedings of the 31st ACM Inter- national Conference on Information & Knowledge Manage- ment, 1573-1583.
  14. Purkayastha, S.; Manolova, T. S.; and Edelman, L. F. 2012. Diversification and performance in developed and emerging market contexts: A review of the literature. International Journal of Management Reviews, 14(1): 18-38.
  15. Schulman, J.; Wolski, F.; Dhariwal, P.; Radford, A.; and Klimov, O. 2017. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347. · arXiv
  16. Shiryaev, X. Y. 2008. Thou shalt buy and hold. Quantitative Finance, 8(8): 765-776.
  17. Silverman, B. W. 1984. Spline smoothing: the equivalent variable kernel method. The Annals of Statistics, 898-916.
  18. Sun, S.; Wang, X.; Xue, W.; Lou, X.; and An, B. 2023. Mastering stock markets with efficient mixture of diversi- fied trading experts. Proceedings of the 29th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining.
  19. Sun, S.; Xue, W.; Wang, R.; He, X.; Zhu, J.; Li, J.; and An, B. 2022. DeepScalper: A Risk-aware reinforcement learning framework to capture fleeting intraday trading opportunities. In Proceedings of the 31st ACM International Conference on Information & Knowledge Management, 1858-1867.
  20. Sutton, R. S.; and Barto, A. G. 2018. Reinforcement learn- ing: An introduction. MIT press.
  21. Van Hasselt, H.; Guez, A.; and Silver, D. 2016. Deep rein- forcement learning with double q-learning. In Proceedings of the AAAI Conference on Artificial Intelligence.
  22. Wang, R.; Wei, H.; An, B.; Feng, Z.; and Yao, J. 2021. Com- mission fee is not enough: A hierarchical reinforced frame- work for portfolio management. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, 626-633.
  23. Zhang, C.; Duan, Y.; Chen, X.; Chen, J.; Li, J.; and Zhao, L. 2023a. Towards Generalizable Reinforcement Learning for Trade Execution. arXiv preprint arXiv:2307.11685. · arXiv
  24. Zhang, C.; Duan, Y.; Chen, X.; Chen, J.; Li, J.; and Zhao, L. 2023b. Towards generalizable reinforcement learning for trade execution. arXiv:2307.11685. · arXiv
  25. Zhou, L.; Qin, K.; Torres, C. F.; Le, D. V.; and Gervais, A. 2021. High-frequency trading on decentralized on-chain ex- changes. In 2021 IEEE Symposium on Security and Privacy (SP), 428-445.
  26. Zhu, T.; and Zhu, W. 2022. Quantitative trading through random perturbation Q-network with nonlinear transaction costs. Stats, 5(2): 546-560.

Cited by

Sorted by citations

Authors
Qin, M., Sun, S., Zhang, W., Xia, H., Wang, X., & An, B.
Affiliations
Nanyang Technological University (SG)
Venue
arXiv
Publisher
arXiv
Published
2023
Volume
38
Issue
13
Pages
14669-14676
ISSN
2159-5399 (ISSN-L)
OpenAlex
W4393156957
Cited by
29
References
0
Citations by year
2026: 9 · 2025: 8 · 2024: 11 · 2023: 1
FWCI
19.14
Type
conference paper
Language
en
Open access
Locations
  • Proceedings of the AAAI Conference on Artificial Intelligence (publishedVersion)
  • RePEc: Research Papers in Economics (submittedVersion)
  • arXiv (Cornell University) (submittedVersion, cc-by)
  • Singapore Management University Institutional Knowledge (InK) (Singapore Management University) (submittedVersion, cc-by-nc-nd)
  • AAAI Publications (The Association for the Advancement of Artificial Intelligence (AAAI)) (submittedVersion)
  • arXiv (Cornell University) (cc-by)
Funders
  • National Research Foundation
  • National Research Foundation Singapore
Topics
  • Social Sciences › Decision Sciences › Management Science and Operations Research › Stock Market Forecasting Methods
  • Social Sciences › Economics, Econometrics and Finance › Finance › Financial Markets and Investment Strategies
  • Social Sciences › Business, Management and Accounting › Management Information Systems › FinTech, Crowdfunding, Digital Finance
Keywords
high-frequency trading, hierarchical reinforcement learning, cryptocurrency trading, agent routing, dynamic programming

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review