arXiv:2502.12537cs.LGcs.AI2025-02被引 1

优化股票交易的时序窗口,提升强化学习模型表现

Finding Optimal Trading History in Reinforcement Learning for Stock Market Trading

  • 将时间窗口设为超参数,动态调整观察长度
  • 特征按公司分组后,更长窗口提升模型性能
  • 在道琼斯30只股票数据上验证,优于主流金融机构

本文研究金融深度强化学习(DRL)模型中时序窗口的优化,采用二维卷积神经网络(2D CNN)处理时间序列数据。提出将时间场作为超参数,并通过迭代扩展观察窗口(从两周至十二周)分析其对模型性能的影响。实验在两种特征排列方式下进行:一种按公司分组,另一种按类别排列。结果表明,在未分组情况下,较短窗口表现更优;而分组后,模型可有效利用更长窗口并显著提升收益。该结论在两个包含相同30家道琼斯指数公司的数据集上均得到一致验证,最终模型在表现上超越全球知名金融机构如全球X大师(Global X Guru),达到镜涯资产(Mirae Asset)标准。

原文摘要 · Abstract (English)

This paper investigates the optimization of temporal windows in Financial Deep Reinforcement Learning (DRL) models using 2D Convolutional Neural Networks (CNNs). We introduce a novel approach to treating the temporal field as a hyperparameter and examine its impact on model performance across various datasets and feature arrangements. We introduce a new hyperparameter for the CNN policy, proposing that this temporal field can and should be treated as a hyperparameter for these models. We examine the significance of this temporal field by iteratively expanding the window of observations presented to the CNN policy during the deep reinforcement learning process. Our iterative process involves progressively increasing the observation period from two weeks to twelve weeks, allowing us to examine the effects of different temporal windows on the model's performance. This window expansion is implemented in two settings. In one setting, we rearrange the features in the dataset to group them by company, allowing the model to have a full view of company data in its observation window and CNN kernel. In the second setting, we do not group the features by company, and features are arranged by category. Our study reveals that shorter temporal windows are most effective when no feature rearrangement to group per company is in effect. However, the model will utilize longer temporal windows and yield better performance once we introduce the feature rearrangement. To examine the consistency of our findings, we repeated our experiment on two datasets containing the same thirty companies from the Dow Jones Index but with different features in each dataset and consistently observed the above-mentioned patterns. The result is a trading model significantly outperforming global financial services firms such as the Global X Guru by the established Mirae Asset.

强化学习股票交易时序优化深度学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。