This is our final project in VNU-UIT CS106 Course. This project is about applying deep reinforcement learning to give advice about what to do (Selling, Holding, Buying) to best manage the account portfolio P&L in the Vietnam Stock Market (VNINDEX).
Number | Full name | Student ID | Gmail |
---|---|---|---|
1 | Dương Đình Thắng | 19522195 | [email protected] |
2 | Trịnh Nhật Tân | 19522179 | [email protected] |
3 | Hoàng Ngọc Bá Thi | 19522255 | [email protected] |
We highly recommend you to use our provided notebooks in the notebooks folder. Those notebooks have hands-on instructions and explanations for each modules to completely run the entire system, from download data, training model to trading with the model. If you don't want to use the notebooks, please follow the below instructions:
We recommend you to use Anaconda before installing these required packages. If you don't want to use Anaconda, please ignore the following commands:
conda create -n finrl -y
conda activate finrl
After that, install the fundamental packages in requirements.txt:
pip install -r requirements.txt
Finally, install the modified vnquant library:
cd libs/vnquant
python setup.py install
To start training, run the command below:
python main.py --mode=train
By default, the training algorithm set in the script is SAC and it is in multistock training mode (train with 30 stocks from the 6-2021 VN30).
- There are other supported algorithms (A2C, PPO, DDPG, TD3) which you can try training with them by changing the name of the model in the Model Training part in training.py.
- If you want to train on other stocks, please refer to config.py to change the code of the stock (ticker).
The training results will appear in the results folder after the training process is completed (you can see example results in the experiment_logs folder).