Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

DRL Portfolio Optimizer

Replication of Sood et al. (2023), comparing a PPO-based reinforcement learning agent against Mean-Variance Optimization (MVO) for sector ETF portfolio allocation.

Trained and backtested across 14 sliding one-year windows (2012-2025) on the 11 S&P 500 sector ETFs.

Results

Cumulative Returns Backtest Comparison

Pre-trained models and full backtest outputs are in models/ and results/.

Setup

pip install -r requirements.txt

Usage

python main.py all           # full pipeline
python main.py fetch         # download market data
python main.py features      # compute features
python main.py train-ppo     # train PPO agents
python main.py run-mvo       # run MVO strategy
python main.py backtest      # backtest both strategies
python main.py evaluate      # generate metrics and figures

Add --debug for a fast reduced run.

Structure

agents/      PPO and MVO strategy implementations
backtest/    backtesting engine and metrics
data/        data fetching and feature engineering
env/         Gymnasium portfolio environment
evaluation/  figures and comparison tables
models/      trained PPO checkpoints (14 windows)
results/     backtest outputs and plots
config.py    hyperparameters

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages