Deep Reinforcement Learning for Long-Short Portfolio Optimization

Gang Huang, Xiaohua Zhou, Qingyang Song
12/26/2020
q-fin.CPcs.LGq-fin.PM
rl

Official code: watermeloncq/drl-long-short-optimization-portfolio-SB3py37 (1 star, Jupyter Notebook, MIT, last commit 2025-10-17).

Abstract

With the rapid development of artificial intelligence, data-driven methods effectively overcome limitations in traditional portfolio optimization. Conventional models primarily employ long-only mechanisms, excluding highly correlated assets to diversify risk.

Show full abstract

However, incorporating short-selling enables low-risk arbitrage through hedging correlated assets. This paper constructs a Deep Reinforcement Learning (DRL) portfolio management framework with short-selling mechanisms conforming to actual trading rules, exploring strategies for excess returns in China's A-share market. Key innovations include: (1) Development of a comprehensive short-selling mechanism in continuous trading that accounts for dynamic evolution of transactions across time periods; (2) Design of a long-short optimization framework integrating deep neural networks for processing multi-dimensional financial time series with mean Sharpe ratio reward functions. Empirical results show the DRL model with short-selling demonstrates significant optimization capabilities, achieving consistent positive returns during backtesting periods. Compared to traditional approaches, this model delivers superior risk-adjusted returns while reducing maximum drawdown. From an allocation perspective, the DRL model establishes a robust investment style, enhancing defensive capabilities through strategic avoidance of underperforming assets and balanced capital allocation. This research contributes to portfolio theory while providing novel methodologies for quantitative investment practice.

View on arXivView PDF

Code Implementations(1)

MIT
13Jupyter Notebook, PythonMar 20, 20251 years agoMIT

Similar Papers

Cite this paper

@article{huang2020deep,
  title  = {Deep Reinforcement Learning for Long-Short Portfolio Optimization},
  author = {Gang Huang and Xiaohua Zhou and Qingyang Song},
  year   = {2020},
  eprint = {2012.13773},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.13773}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.13773.svg)](https://codeofpaper.com/paper/2012.13773)

Discussion