This repository is for the code of paper "Automated Cryptocurrency Trading Approach Using Ensemble Deep Reinforcement Learning: Learn to Understand Candlesticks"
Candlesticks image data download: https://drive.google.com/file/d/1qX8K8CRnS3lmhA0Trd1Yk-i7_Cdchwbx/view?usp=sharing
Copy the unzipped folder "candlesticks" to folder "images"
-- drl-candlesticks-trader
|
-- code
|
-- libs
|
-- data
|
-- images
|
-- candlesticks
|
-- results
|
-- test
|
-- 2022-06-19
|
-- 2022-08-15
|
-- train
|
-- valid
|
-- runs
|
-- weights
Train all PPO agents in GPU with multi-resolution raw numerical data
Type following command in the terminal:
$ python3 code/main.py -t train -g ppo -r multi
Validate the first DQN agent in GPU with candlestick image
Type following code in the terminal:
$ python3 code/main.py -t valid -g dqn -f 0
The code for generating candelsticks images are uploaded to the folder of "code -> preprocessing" You can write your methods in the class of Plotchart to generate different images according your design