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:
- https://www.mediafire.com/file/xivks3xf64b83ph/cleaned_preprocessed.csv/file
- 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.
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.