Skip to main content
Top

2023 | OriginalPaper | Chapter

Evaluation of Deep Reinforcement Learning Based Stock Trading

Authors : Yining Zhang, Zherui Zhang, Hongfei Yan

Published in: Information Retrieval

Publisher: Springer Nature Switzerland

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

Stock is one of the most important targets in investment. However, it is challenging to manually design a profitable strategy in the highly dynamic and complex stock market. Modern portfolio management usually employs quantitative trading, which utilizes computers to support decision-making or perform automated trading. Deep reinforcement learning (Deep RL) is an emerging machine learning technology that can solve multi-step optimal control problems. In this article, we propose a method to model multi-stock trading process according to reinforcement learning theory and implement our trading agents based on two popular actor-critic algorithms: A2C and PPO. We train and evaluate the agents on two datasets from 2010–2021 Chinese stock market multiple times. The experimental results show that both agents can achieve an annual return rate that outstrips the baseline by 8.8% and 16.8% on average on two datasets, respectively. Asset curve and asset distribution chart are plotted to prove that the policy the agent learned is reasonable. We also employ a track training strategy, which can further enhance the agent’s performance by about 7.7% with little extra training time.

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Footnotes
1
Our code and dataset is available at Github: https://​github.​com/​Altair-Alpha/​DRL4StockTrading​.
 
Literature
2.
go back to reference Chong, E., Han, C., Park, F.C.: Deep learning networks for stock market analysis and prediction: methodology, data representations, and case studies. Expert Syst. Appl. 83, 187–205 (2017)CrossRef Chong, E., Han, C., Park, F.C.: Deep learning networks for stock market analysis and prediction: methodology, data representations, and case studies. Expert Syst. Appl. 83, 187–205 (2017)CrossRef
5.
go back to reference Fischer, T.G.: Reinforcement learning in financial markets-a survey. Technical report, FAU Discussion Papers in Economics (2018) Fischer, T.G.: Reinforcement learning in financial markets-a survey. Technical report, FAU Discussion Papers in Economics (2018)
6.
go back to reference François-Lavet, V., Henderson, P., Islam, R., Bellemare, M.G., Pineau, J.: An introduction to deep reinforcement learning. arXiv preprint arXiv:1811.12560 (2018) François-Lavet, V., Henderson, P., Islam, R., Bellemare, M.G., Pineau, J.: An introduction to deep reinforcement learning. arXiv preprint arXiv:​1811.​12560 (2018)
7.
go back to reference Gudelek, M.U., Boluk, S.A., Ozbayoglu, A.M.: A deep learning based stock trading model with 2-D CNN trend detection. In: 2017 IEEE Symposium Series on Computational Intelligence (SSCI), pp. 1–8. IEEE (2017) Gudelek, M.U., Boluk, S.A., Ozbayoglu, A.M.: A deep learning based stock trading model with 2-D CNN trend detection. In: 2017 IEEE Symposium Series on Computational Intelligence (SSCI), pp. 1–8. IEEE (2017)
9.
go back to reference Li, Y., Ni, P., Chang, V.: Application of deep reinforcement learning in stock trading strategies and stock forecasting. Computing 102(6), 1305–1322 (2020)CrossRef Li, Y., Ni, P., Chang, V.: Application of deep reinforcement learning in stock trading strategies and stock forecasting. Computing 102(6), 1305–1322 (2020)CrossRef
10.
go back to reference Liu, X.Y., Yang, H., Chen, Q., Zhang, R., Yang, L., Xiao, B., Wang, C.D.: FinRL: a deep reinforcement learning library for automated stock trading in quantitative finance. arXiv preprint arXiv:2011.09607 (2020) Liu, X.Y., Yang, H., Chen, Q., Zhang, R., Yang, L., Xiao, B., Wang, C.D.: FinRL: a deep reinforcement learning library for automated stock trading in quantitative finance. arXiv preprint arXiv:​2011.​09607 (2020)
11.
go back to reference Meng, T.L., Khushi, M.: Reinforcement learning in financial markets. Data 4(3), 110 (2019)CrossRef Meng, T.L., Khushi, M.: Reinforcement learning in financial markets. Data 4(3), 110 (2019)CrossRef
12.
13.
go back to reference Vezeris, D., Karkanis, I., Kyrgos, T.: AdTurtle: an advanced turtle trading system. J. Risk Finan. Manag. 12(2), 96 (2019)CrossRef Vezeris, D., Karkanis, I., Kyrgos, T.: AdTurtle: an advanced turtle trading system. J. Risk Finan. Manag. 12(2), 96 (2019)CrossRef
15.
go back to reference Wu, X., Chen, H., Wang, J., Troiano, L., Loia, V., Fujita, H.: Adaptive stock trading strategies with deep reinforcement learning methods. Inf. Sci. 538, 142–158 (2020)CrossRef Wu, X., Chen, H., Wang, J., Troiano, L., Loia, V., Fujita, H.: Adaptive stock trading strategies with deep reinforcement learning methods. Inf. Sci. 538, 142–158 (2020)CrossRef
16.
go back to reference Yang, H., Liu, X.Y., Zhong, S., Walid, A.: Deep reinforcement learning for automated stock trading: an ensemble strategy. In: Proceedings of the First ACM International Conference on AI in Finance, pp. 1–8 (2020) Yang, H., Liu, X.Y., Zhong, S., Walid, A.: Deep reinforcement learning for automated stock trading: an ensemble strategy. In: Proceedings of the First ACM International Conference on AI in Finance, pp. 1–8 (2020)
Metadata
Title
Evaluation of Deep Reinforcement Learning Based Stock Trading
Authors
Yining Zhang
Zherui Zhang
Hongfei Yan
Copyright Year
2023
DOI
https://doi.org/10.1007/978-3-031-24755-2_5