Skip to main content
QUICK REVIEW

[Paper Review] DeepScalper: A Risk-Aware Reinforcement Learning Framework to Capture Fleeting Intraday Trading Opportunities

Shuo Sun, Xue, Wanqi|arXiv (Cornell University)|Dec 15, 2021
Financial Markets and Investment StrategiesEconomics, Econometrics and Finance6 citations
TL;DR

DeepScalper is a risk-aware reinforcement learning framework that enables high-frequency intraday trading by combining a dueling Q-network with action branching, a hindsight bonus reward function, multi-modal market representation via an encoder-decoder architecture, and a volatility prediction auxiliary task. It significantly outperforms state-of-the-art baselines across six financial futures in terms of total return, Sharpe ratio, and risk-adjusted performance.

ABSTRACT

Reinforcement learning (RL) techniques have shown great success in many challenging quantitative trading tasks, such as portfolio management and algorithmic trading. Especially, intraday trading is one of the most profitable and risky tasks because of the intraday behaviors of the financial market that reflect billions of rapidly fluctuating capitals. However, a vast majority of existing RL methods focus on the relatively low frequency trading scenarios (e.g., day-level) and fail to capture the fleeting intraday investment opportunities due to two major challenges: 1) how to effectively train profitable RL agents for intraday investment decision-making, which involves high-dimensional fine-grained action space; 2) how to learn meaningful multi-modality market representation to understand the intraday behaviors of the financial market at tick-level. Motivated by the efficient workflow of professional human intraday traders, we propose DeepScalper, a deep reinforcement learning framework for intraday trading to tackle the above challenges. Specifically, DeepScalper includes four components: 1) a dueling Q-network with action branching to deal with the large action space of intraday trading for efficient RL optimization; 2) a novel reward function with a hindsight bonus to encourage RL agents making trading decisions with a long-term horizon of the entire trading day; 3) an encoder-decoder architecture to learn multi-modality temporal market embedding, which incorporates both macro-level and micro-level market information; 4) a risk-aware auxiliary task to maintain a striking balance between maximizing profit and minimizing risk. Through extensive experiments on real-world market data spanning over three years on six financial futures, we demonstrate that DeepScalper significantly outperforms many state-of-the-art baselines in terms of four financial criteria.

Motivation & Objective

  • To address the challenge of capturing fleeting intraday trading opportunities in high-dimensional, fine-grained action spaces.
  • To learn meaningful multi-modality market representations by integrating micro-level and macro-level market data.
  • To improve long-term decision-making in intraday trading by incorporating a hindsight bonus in the reward function.
  • To enhance training stability and risk awareness through a volatility prediction auxiliary task.
  • To achieve robust generalization across diverse financial instruments despite limited exposure to specific assets during training.

Proposed method

  • A dueling Q-network with action branching is used to efficiently optimize the training of RL agents in high-dimensional intraday trading action spaces.
  • A novel reward function with a hindsight bonus encourages agents to consider the entire day's price trend, promoting long-horizon decision-making.
  • An encoder-decoder architecture learns temporal market embeddings by fusing micro-level order book data and macro-level price trends.
  • A risk-aware auxiliary task predicts market volatility to balance profit maximization with risk minimization during training.
  • The framework is trained end-to-end on real tick-level data from six financial futures, including two stock indices and four treasury bonds.
  • Hyperparameters such as the hindsight horizon and auxiliary task weight are tuned via ablation studies to optimize performance.

Experimental results

Research questions

  • RQ1How can reinforcement learning agents be effectively trained for intraday trading with high-dimensional, fine-grained action spaces?
  • RQ2To what extent does a hindsight bonus in the reward function improve long-term intraday trading performance?
  • RQ3Can multi-modal market representations combining micro- and macro-level data enhance the agent's understanding of intraday market dynamics?
  • RQ4How does incorporating a volatility prediction auxiliary task affect training stability and risk-adjusted returns?
  • RQ5Does DeepScalper generalize well to unseen financial instruments despite no exposure to their data during training?

Key findings

  • DeepScalper achieves the highest total return among all baselines on all six financial futures, with a 20–30% improvement over the next best method in some cases.
  • The agent trained with the hindsight bonus demonstrates superior long-term horizon awareness, capturing major intraday trends such as a full-day downtrend by initiating large short positions early.
  • The risk-aware auxiliary task reduces performance variance across multiple random seeds, with lower standard deviation in total return and Sharpe ratio on all six assets.
  • The framework generalizes robustly to unseen financial instruments: DeepScalper performs consistently well on T02 futures despite being trained only on TF02 data, unlike MV, GRU, and LGBM.
  • Ablation studies confirm that each component—action branching, hindsight bonus, multi-modal encoding, and risk auxiliary task—contributes significantly to overall performance.
  • The optimal hindsight horizon is found to be 180 time steps (approximately 30 minutes), beyond which performance degrades due to overfitting to long-term signals.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.