结合趋势的深度强化学习股票交易策略
Deep Reinforcement Learning Stock Trading Strategies Combining Trends
摘要: 机器学习广泛应用于股票交易决策中。如何在交易过程中获得有效的市场信息,实现利益最大化和风险最小化,是一个值得长期研究的话题。基于深度强化学习的传统交易模型无法提前识别剧烈的股价波动,导致投资收益不稳定。本文提出了一种结合趋势的深度强化学习股票交易模型,选取根据趋势指标RSI指数调整后特定条件下的利润作为奖励函数,模型能有效识别股价波动风险,获得稳定收益增长。实验选取中国股市的3只股票进行模拟交易,与对照组相比,本文结合趋势的深度强化学习模型训练良好,在实验期间的平均年回报更高,年波动率更低,且夏普比率更好。通过实验数据验证了模型的稳定性和有效性。
Abstract: Machine learning is widely used in stock trading. How to obtain effective market information and maximize benefits and minimize risks in the process of stock trading is a topic worthy of long-term research. The traditional trading model based on deep reinforcement learning can’t identify the violent stock price fluctuations effectively, resulting in the instability of investment return. In this paper, we propose a deep reinforcement learning model incorporating trends in stock trading strategies. The reward function selects the profit under specific conditions adjusted according to the trend indicator RSI index. It can identify the risk of stock price fluctuation effectively and obtain stable growth of return. We evaluate our method with 3 stocks in the Chinese stock market. Compared with the control group, the proposed model is well trained and achieves higher average annual returns, lower annual volatility, and better Sharpe ratio during the experimental period. The experiments results demonstrate the stability and validity of the model.
文章引用:何祁栋. 结合趋势的深度强化学习股票交易策略[J]. 计算机科学与应用, 2022, 12(3): 673-681. https://doi.org/10.12677/CSA.2022.123068

参考文献

[1] 许杰, 祝玉坤, 邢春晓. 基于深度强化学习的金融交易算法研究[J/OL]. 计算机工程与应用: 1-11.
https://kns.cnki.net/kcms/detail/11.2127.TP.20211108.1112.004.html, 2021-11-08.
[2] Bao, W., Yue, J. and Rao, Y. (2017) A Deep Learning Framework for Financial Time Series Using Stacked Autoencoders and Long-Short Term Memory. PloS ONE, 12, e0180944. [Google Scholar] [CrossRef] [PubMed]
[3] Cai, S., Feng, X., Deng, Z., et al. (2018) Financial News Quantization and Stock Market Forecast Research Based on CNN and LSTM. International Conference on Smart Computing and Communication, Tokyo, 10-12 December 2018, 366-375. [Google Scholar] [CrossRef
[4] Jiang, Z., Xu, D. and Liang, J. (2017) A Deep Reinforcement Learning Framework for the Financial Portfolio Management Problem. arXiv:1706.10059 [q-fin.CP]
[5] Deng, Y., Bao, F., Kong, Y., et al. (2016) Deep Direct Reinforcement Learning for Financial Signal Representation and Trading. IEEE Transactions on neural Networks and Learning Systems, 28, 653-664. [Google Scholar] [CrossRef
[6] Li, Y., Ni, P. and Chang, V. (2020) Application of Deep Re-inforcement Learning in Stock Trading Strategies and Stock Forecasting. Computing, 102, 1305-1322. [Google Scholar] [CrossRef
[7] Pendharkar, T. and Cusatis, P. (2018) Trading Financial Indices with Reinforcement Learning Agents. Expert Systems with Applications, 103, 1-13. [Google Scholar] [CrossRef
[8] Jeong, G. and Kim, H.Y. (2019) Improving Financial Trading De-cisions Using Deep Q-Learning: Predicting the Number of Shares, Action Strategies, and Transfer Learning. Expert Sys-tems with Applications, 117, 125-138. [Google Scholar] [CrossRef
[9] Chakole, J. and Kurhekar, M. (2020) Trend Following Deep Q-Learning Strategy for Stock Trading. Expert Systems, 37. [Google Scholar] [CrossRef
[10] Leem, J. and Kim, H.Y. (2020) Action-Specialized Expert Ensemble Trading System with Extended Discrete Action Space Using Deep Reinforcement Learning. PLoS ONE, 15, e0236178. [Google Scholar] [CrossRef] [PubMed]