FinRL: A Deep Reinforcement Learning Library for Automated Stock Trading in Quantitative Finance

—

FinRL: A Deep Reinforcement Learning Library for Automated Stock Trading in Quantitative Finance

Xiao-Yang Liu
Hongyang Yang
Qian Chen
Runjia Zhang
Liuqing Yang
Bowen Xiao
Christina Dan Wang
Published on 11/19/2020
Equities
Stocks
United States (US)
China
Hong Kong
AI
Deep learning
Reinforcement learning
Stock picking
Backtesting
Risk management
Machine learning

The paper presents FinRL, a deep reinforcement learning library specifically designed to democratize access to automated stock trading strategies in quantitative finance. Recognizing that developing practical DRL trading agents involves complex decisions about trading locations, prices, and quantities along with arduous debugging processes, FinRL addresses these challenges by providing a comprehensive framework that simplifies the development pipeline. The library features a modular architecture with pre-configured virtual environments using real stock market data, implementations of state-of-the-art DRL algorithms, and incorporates important trading constraints such as transaction costs, market liquidity, and investor risk preferences.

FinRL distinguishes itself through three key features: completeness across multiple time granularities and stock markets, hands-on tutorials that promote learning, and strong reproducibility that allows easy comparison with existing schemes. The library supports various trading scenarios including single stock trading, multiple stock trading, and portfolio allocation, making it versatile for different quantitative finance applications. By providing standardized evaluation baselines and user-friendly interfaces, FinRL significantly reduces the barrier to entry for beginners while maintaining the flexibility needed for advanced research and development in automated trading systems.

Highlights

  • 1Introduces FinRL, a comprehensive deep reinforcement learning library specifically designed for automated stock trading
  • 2Provides modular architecture with state-of-the-art DRL algorithms and pre-configured trading environments
  • 3Incorporates realistic trading constraints including transaction costs, market liquidity, and risk aversion
  • 4Offers extensive tutorials and reproducibility features to facilitate beginner adoption
  • 5Supports multiple stock markets and trading scenarios including single stock, multiple stock, and portfolio allocation

Methods

  • M
    Deep reinforcement learning algorithms (DQN, DDPG, PPO, SAC, A2C, TD3)
  • M
    Virtual environment simulation with real stock market datasets
  • M
    Modular library architecture with layered design
  • M
    Extensive backtesting and performance evaluation frameworks

Results

  • R
    Developed a complete, open-source DRL library for quantitative finance applications
  • R
    Enabled streamlined development of trading agents with reduced debugging workloads
  • R
    Demonstrated practical applications across single stock, multiple stock, and portfolio allocation scenarios
  • R
    Provided reproducible tutorials that facilitate learning and comparison with existing schemes
  • R
    Configured environments for major stock markets including NASDAQ-100, DJIA, S&P 500, HSI, SSE 50, and CSI 300
0/5

Analyze Paper

Generate insights from "FinRL: A Deep Reinforcement Learning Library for Automated S...".

Suggested Actions