Adaptive Quantitative Trading: An Imitative Deep Reinforcement Learning Approach

Yang Liu, Qi Liu, Hongke Zhao, Zhen Pan, Chuanren Liu

Abstract

Quantitative trading (QT) faces significant challenges due to the non-stationary and noisy nature of financial markets. While Deep Reinforcement Learning (DRL) offers a path toward adaptive strategies, it often suffers from sample inefficiency and poor exploration. This paper presents iRDPG (imitative Recurrent Deterministic Policy Gradient), a model that integrates Gated Recurrent Units (GRUs) to handle partial observability and imitation learning to guide exploration. By leveraging a demonstration buffer from classic strategies and behavior cloning from a "prophetic expert," iRDPG achieves superior profitability and generalization compared to traditional rules-based and standard DRL approaches.

Introduction

Quantitative trading relies on algorithms to execute trades at high speeds, traditionally using hand-crafted technical analysis rules like moving averages or the Dual Thrust strategy. However, these static rules struggle to adapt to shifting market conditions. Deep Reinforcement Learning (DRL) allows agents to learn optimal policies through trial and error, but its application in finance is hindered by two major roadblocks: noisy, partially observable data and the high cost of random exploration in markets with transaction fees and slippage.

Methodology: The iRDPG Framework

To address these challenges, the authors propose iRDPG, which combines recurrent networks with imitation learning. The framework is modeled as a Partially Observable Markov Decision Process (POMDP).

The iRDPG architecture featuring the GRU layer for state synthesis and the imitation learning components including the Demonstration Buffer and BC Loss.

Core Pillars

  • Recurrent Networks (GRU): Since the "true" market state is hidden, the agent uses a Gated Recurrent Unit (GRU) to synthesize a hidden state from historical prices, technical indicators, and past actions. This helps filter high-frequency noise and identify actual trends.
  • Imitation Learning: To prevent the agent from losing money during initial exploration, two techniques are used:
  • Demonstration Buffer: The replay buffer is pre-filled with successful trades from a classic Dual Thrust strategy, providing a baseline profitable policy to learn from immediately.
  • Behavior Cloning with a Prophetic Expert: The agent's loss function is penalized if its actions deviate from a hindsight-optimal "prophetic" expert that knows the day's absolute highs and lows.
  • Risk-Adjusted Rewards: Instead of maximizing raw profit, the model optimizes the Differential Sharpe Ratio, rewarding returns relative to risk and volatility.

Experimental Setup

The model was evaluated using minute-frequency OHLC (Open, High, Low, Close) futures data from the Chinese market:

  • IF Futures: Based on an index of the top 300 stocks.
  • IC Futures: Based on an index of mid- and small-cap stocks. The simulation accounts for realistic market friction, including a transaction fee ($\delta = 2.3 \times 10^{-5}$) and constant slippage ($\zeta = 0.2$).

Results and Discussion

iRDPG demonstrated significant improvements over both traditional and modern reinforcement learning baselines.

Cumulative return rate comparison on the IF dataset, showing iRDPG significantly outperforming standard DDPG and traditional hold strategies.

Performance and Generalization

  • Superior Profitability: On the IF dataset, iRDPG achieved a Total Return of 38.26% and a Sharpe Ratio of 0.842, vastly outperforming standard DDPG, which lost 16.36%.
  • Ablation Analysis: Removing the GRU caused returns to plummet to 6.96%, confirming that memory is essential for filtering market noise. Removing the Demonstration Buffer or Behavior Cloning also significantly reduced performance (to 19.99% and 28.34%, respectively).
  • Robust Generalization: When tested on the unseen IC market, the iRDPG agent (trained only on IF) maintained a positive return of 24.73%. In contrast, the classic Dual Thrust strategy, which was profitable on IF, completely collapsed on the IC market, yielding a loss of 35.59%.

Conclusion

iRDPG successfully bridges the gap between classic technical strategies and modern DRL. By using hindsight as a teacher and recurrent units to manage noise, the model creates robust trading policies that generalize across different market dynamics. Future work includes expanding the action space for dynamic position sizing and incorporating alternative data sources like news sentiment into the observation space.

Summary updated

BibTeX
@inproceedings{liu2020adaptive,
  author = {Yang Liu and Qi Liu and Hongke Zhao and Zhen Pan and Chuanren Liu},
  title = {{Adaptive Quantitative Trading: An Imitative Deep Reinforcement Learning Approach}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i02.5587},
}
Figure