mlsanityData to 14 Oct 2026

Finding Optimal Trading History in Reinforcement Learning for Stock Market Trading

arXiv 2502.12537 ↗First posted 18 Feb 2025cs.LG cs.AIcited by 1

On the map: Deep reinforcement learning methods → Adversarial robustness and RL in finance

Abstract (arXiv)

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.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Adversarial robustness and RL in finance, one of 15 directions in Deep reinforcement learning methods. Builds on 8 of its 21 references that are in the map. First posted on arXiv 18 Feb 2025.

Builds on

8 of 21 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024Gradient Reduction Convolutional Neural Network Policy for Financial Deep Reinforcement Learning16 Aug
  2. 2024CNN-DRL with Shuffled Features in Finance16 Jan

Other references · 6

  1. 2016Xception: Deep Learning with Depthwise Separable Convolutionscited by 2,332
  2. 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 569
  3. 2016R-FCN: Object Detection via Region-based Fully Convolutional Networkscited by 414
  4. 2021ABIDES-Gym: Gym Environments for Multi-Agent Discrete Event Simulation and Application to Financial Marketscited by 36
  5. 2022A Novel Deep Reinforcement Learning Based Automated Stock Trading System Using Cascaded LSTM Networkscited by 12
  6. 2024CNN-DRL for Scalable Actions in Financecited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024Deep Reinforcement Learning Strategies in Finance: Insights into Asset Holding, Trading Behavior, and Purchase Diversity
  2. 2025Dueling Deep Reinforcement Learning for Financial Time Series
  3. 2025Deep reinforcement learning for optimal trading with partial information
  4. 2025A Deep Reinforcement Learning Approach to Automated Stock Trading, using xLSTM Networks
  5. 2024A Deep Reinforcement Learning Framework For Financial Portfolio Management
  6. 2025Reinforcement-Learning Portfolio Allocation with Dynamic Embedding of Market Information
  7. 2025Deep Reinforcement Learning for Automated Stock Trading: An Ensemble Strategy
  8. 2024Deep Hedging with Market Impact