Skip to content

InnaVays/portfolio-optimization

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portfolio Optimization using Reinforcement Learning

Experimenting with RL for building optimal portfolio of 3 stocks and comparing it with portfolio theory based Markowitz' approach

Pls checkout the medium article for a quick overview.

To train RL model:

python train.py

To download data:

  1. https://www.mediafire.com/file/xivks3xf64b83ph/cleaned_preprocessed.csv/file
  2. https://www.mediafire.com/file/g05yja1uiilhfuu/cleaned.csv/file

Take a look at pre_process.py if you want to get an idea on how this file was cleaned and compiled.

Problem Statement

I will be formulating this as a portfolio optimization problem :  Given histories of 3 different stocks, how would we allocate a fixed amount of money between these stocks every day so that maximize the likelihood of returns. 

The objective is to develop of policy (strategy) for building a portfolio. The portfolio is essentially an allocation of available resources across various stocks. The policy then needs to restructure the portfolio over time as new information becomes available.

Pic of Model

RL agent training

Pic of training

Results

Pic of results

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%