基于深度强化学习的汇率交易
Deep Reinforcement Learning for Foreign Exchange Trading
Deep Reinforcement Learning for Foreign Exchange Trading
@misc{tsai2019deep,
title = {Deep Reinforcement Learning for Foreign Exchange Trading},
author = {Yun-Cheng Tsai and Chun-Chieh Wang},
year = {2019},
eprint = {1908.08036},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/1908.08036}
}
Tsai, Y.-C., & Wang, C.-C. (2019). Deep Reinforcement Learning for Foreign Exchange Trading [Preprint]. arXiv. https://doi.org/10.48550/arXiv.1908.08036
TSAI YC, WANG CC. Deep Reinforcement Learning for Foreign Exchange Trading[EB/OL]. (2019-08-21)[2026-11-29]. https://arxiv.org/abs/1908.08036.
摘要
强化学习能够与环境交互,适用于决策控制系统。因此,我们采用强化学习方法建立外汇交易策略,规避了深度学习预测中长期存在的趋势不稳定问题。在系统设计中,我们优化了 Sure-Fire 统计套利策略,设定三种不同动作,将一段时间内的连续价格编码为 Gramian Angular Field (GAF) 的热图视图,并比较了深度 Q 学习 (DQN) 与近端策略优化 (PPO) 算法。为验证可行性,我们分析了三个货币对:EUR/USD、GBP/USD 和 AUD/USD。数据训练区间为 2018 年 8 月 1 日至 2018 年 11 月 30 日,以 4 小时为时间步长;模型性能测试使用 2018 年 12 月 1 日至 2018 年 12 月 31 日的数据。各类模型的测试结果表明,只要模型能够处理复杂且随机的过程,且状态能够描述环境,即可实现有利的投资表现,从而验证了强化学习在交易策略开发中的可行性。
Reinforcement learning can interact with the environment and is suitable for applications in decision control systems. Therefore, we used the reinforcement learning method to establish a foreign exchange transaction, avoiding the long-standing problem of unstable trends in deep learning predictions. In the system design, we optimized the Sure-Fire statistical arbitrage policy, set three different actions, encoded the continuous price over a period of time into a heat-map view of the Gramian Angular Field (GAF) and compared the Deep Q Learning (DQN) and Proximal Policy Optimization (PPO) algorithms. To test feasibility, we analyzed three currency pairs, namely EUR/USD, GBP/USD, and AUD/USD. We trained the data in units of four hours from 1 August 2018 to 30 November 2018 and tested model performance using data between 1 December 2018 and 31 December 2018. The test results of the various models indicated that favorable investment performance was achieved as long as the model was able to handle complex and random processes and the state was able to describe the environment, validating the feasibility of reinforcement learning in the development of trading strategies.