[Paper Review] Deep Reinforcement Learning for Active High Frequency Trading
This paper presents the first end-to-end deep reinforcement learning (DRL) framework for active high-frequency trading using Proximal Policy Optimization (PPO) on limit order book (LOB) data. Trained on three months of Intel stock data with signal-optimized sampling, the agents achieve stable positive returns out-of-sample, demonstrating that DRL can exploit transient market inefficiencies in highly stochastic, non-stationary environments despite sparse rewards and limited trade impact.
We introduce the first end-to-end Deep Reinforcement Learning (DRL) based framework for active high frequency trading in the stock market. We train DRL agents to trade one unit of Intel Corporation stock by employing the Proximal Policy Optimization algorithm. The training is performed on three contiguous months of high frequency Limit Order Book data, of which the last month constitutes the validation data. In order to maximise the signal to noise ratio in the training data, we compose the latter by only selecting training samples with largest price changes. The test is then carried out on the following month of data. Hyperparameters are tuned using the Sequential Model Based Optimization technique. We consider three different state characterizations, which differ in their LOB-based meta-features. Analysing the agents' performances on test data, we argue that the agents are able to create a dynamic representation of the underlying environment. They identify occasional regularities present in the data and exploit them to create long-term profitable trading strategies. Indeed, agents learn trading strategies able to produce stable positive returns in spite of the highly stochastic and non-stationary environment.
Motivation & Objective
- To develop and validate an end-to-end deep reinforcement learning framework for active high-frequency trading in real financial markets.
- To investigate how different state representations—especially those incorporating mark-to-market P&L—impact agent performance in non-stationary, high-noise environments.
- To evaluate whether DRL agents can learn profitable, dynamic trading strategies despite sparse rewards and limited market impact.
- To provide empirical evidence that temporary market inefficiencies exist and can be systematically exploited using advanced RL techniques.
Proposed method
- Trained DRL agents using the Proximal Policy Optimization (PPO) algorithm on three contiguous months of high-frequency limit order book data for Intel Corporation stock.
- Constructed a signal-optimized training set by selecting only periods with the largest price changes to improve signal-to-noise ratio.
- Employed Sequential Model-Based Optimization (SMBO) for hyperparameter tuning to enhance learning stability and performance.
- Defined three distinct state representations based on LOB meta-features, including one that incorporates the agent’s current mark-to-market profit and loss (P&L).
- Used a continual learning paradigm where the final month of data served as validation and the following month as test data.
- Applied a reward shaping strategy that only provides feedback upon position closure, reflecting real trading costs and dynamics.
Experimental results
Research questions
- RQ1Can deep reinforcement learning agents learn profitable, dynamic trading strategies in a highly stochastic and non-stationary high-frequency trading environment?
- RQ2How does the inclusion of mark-to-market P&L in the state representation affect the performance and profitability of DRL-based trading agents?
- RQ3To what extent can DRL agents exploit transient market inefficiencies in limit order book data to generate stable positive returns?
- RQ4How do different LOB-based state characterizations influence the out-of-sample performance and robustness of DRL agents?
- RQ5Can DRL-based agents consistently outperform a passive market benchmark even when accounting for bid-ask spreads and sparse reward signals?
Key findings
- The DRL agents achieved stable positive net profits across the entire test period, consistently outperforming a passive market benchmark despite the absence of price predictability.
- Agents that had access to their current mark-to-market P&L in the state representation achieved significantly higher cumulative returns and better trade execution quality.
- The number of trades, rather than individual trade performance, was the primary driver of differences in overall profitability across state representations.
- The agents demonstrated the ability to identify and exploit occasional regularities and transient inefficiencies in the limit order book data, even in the presence of strong feedback loops and non-linear dynamics.
- The framework showed robustness to the sparsity of rewards, with agents learning to hold positions for tens to thousands of time steps before closing, indicating effective long-term planning.
- The results provide empirical evidence against the strong form of market efficiency, suggesting that short-term exploitable inefficiencies persist in microstructure data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.