AI4Finance-Foundation / FinRL_Crypto

FinRL_Crypto: Cryptocurrency trading of FinRL
https://ai4finance.org
MIT License
84 stars 46 forks source link

FinRL_Crypto: Address Overfitting DRL Agents for Cryptocurrency Trading

banner

For financial reinforcement learning (FinRL), we provide a way to address the dreaded overfitting trap and increase your chances of success in the wild world of cryptocurrency trading. Our approach has been tested on 10 different currencies and during a market crash period, and has proven to be more profitable than the competition. So, don't just sit there, join us on our journey to the top of the crypto mountain!

Paper

Our paper

How to use

To reproduce the results in the paper, the codes are simplified as much as possible. You start with the settings inconfig_main.py file, where you set all the settings for:

A short description of each folder:

Then, running and producing similar results to that in the paper are simple, following the numbered Python files as indicated by the number of the filename:

Simply run the scripts in the above order. Please note the trained agents are auto-saved to the folder train_results. That is where you can find your trained DRL agents!

Citing FinRL_Crypto

@article{gort2022deep,
  title={Deep reinforcement learning for cryptocurrency trading: Practical approach to address backtest overfitting},
  author={Gort, Berend Jelmer Dirk and Liu, Xiao-Yang and Gao, Jiechao and Chen, Shuaiyu and Wang, Christina Dan},
  journal={AAAI Bridge on AI for Financial Services},
  year={2023}
}