【强化学习落地应用】之FinRL生态系统,一种使用强化学习进行自动化交易的实践

2022 年 2 月 21 日 深度强化学习实验室

深度强化学习实验室

官网 :http://www.neurondance.com/
论坛 http://deeprl.neurondance.com/
来源:AI4Finance Foundation
(https://github.com/AI4Finance-Foundation)
编辑:OpenDeepRL



“Finance serves a purpose. … Investors are lured to gamble their wealth on wide hunches originated by charlatans and encouraged by mass media. One day in the near future, ML will dominate finance, science will curtail guessing, and investing will not mean gambling.”

—-By Marcos Lopes De Prado

 Advanced in Financial Machine Learning




关于FinRL生态系统完整PDF文档见文章末尾

Our Mission: to efficiently automate trading. We continuously develop and share codes for finance.

 

Our Vision: AI community has accumulated an open-source code ocean over the past decade. We believe applying these intellectual and engineering properties to finance will initiate a paradigm shift from the conventional trading routine to an automated machine learning approach, even RLOps in finance.

 

Materials:

AI4Finance Foundation:

FinRL,    FinRL-Meta,   and Website

ElegantRL and Website.

FinRL Ecosystem: Deep Reinforcement Learning to Automate Trading in Quantitative Finance. Talk at Wolfe Research 5th Annual Virtual Global Quantitative and Macro Investment Conference, Nov. 08, 2021.

Awesome_DRL4Finance_List: Awesome Deep Reinforcement Learning in Finance

 

Textbooks:

De Prado, M.L., 2018. Advances in financial machine learning. John Wiley & Sons.

Assessing this file on Google Doc at:

https://docs.google.com/document/d/1FxfdiwJ8L8xJeObPMIVFxi9ozykC9HujMuxYVYEmR5g/edit 



关于FinRL


● Goals of FinRL

The design of a deep reinforcement learning trading strategy includes:

1. preprocessing market data,

2. building a training environment,

3. managing trading states,

4. and backtesting trading performance.

It is a very tedious debugging and error-prone programming process. The end-to-end pipeline is also pretty comprehensive.


FinRL’s Goal:

1. FinRL has a full pipeline to help quantitative traders overcome the steep learning curve.

2. FinRL implements fine-tuned state-of-the-art DRL algorithms and common reward functions, while alleviating the debugging workloads.

3. FinRL framework automatically streamlines the development of trading strategies, so as to help researchers and quantitative traders to iterate their strategies at a high turnover rate.

 

● Designing Principles

 

1. Full-stack framework. To provide a full-stack DRL framework with finance-oriented optimizations, including market data APIs, data preprocessing, DRL algorithms, and automated backtesting. Users can transparently make use of such a development pipeline.

2. Customization. To maintain modularity and extensibility in development by including state-of-the-art DRL algorithms and supporting design of new algorithms. The DRL algorithms can be used to construct trading strategies by simple configurations.

3. Reproducibility and hands-on tutoring. To provide tutorials such as step-by-step Jupyter notebooks and user guides to help users walk through the pipeline and reproduce the use cases.

 

● Framework of FinRL

The FinRL framework has three layers: application layer, agent layer, and  hu layer.

1. For the application layer, FinRL aims to provide hundreds of demonstrative trading tasks, serving as stepping stones for users to develop their strategies.

2. For the agent layer, FinRL supports fine-tuned DRL algorithms from DRL libraries in a plug-and-play manner, following the unified workflow.

3. For the environment layer, FinRL aims to wrap historical data and live trading APIs of hundreds of markets into training environments, following the de facto standard Gym.


关于ElegantRL

● Goals of ElegantRL

ElegantRL is designed for researchers and practitioners with finance-oriented optimizations.


1. ElegantRL implements state-of-the-art DRL algorithms from scratch, including both discrete and continuous ones, and provides user-friendly tutorials in Jupyter Notebooks.

2. The ElegantRL performs DRL algorithms under the Actor-Critic framework

3. The ElegantRL library enables researchers and practitioners to pipeline the disruptive “design, development and deployment” of DRL technology.

 

● Designing Principles

 

1. Lightweight: core codes have less than 1,000 lines, less dependable packages, only using PyTorch (train), OpenAI Gym (env), NumPy, Matplotlib (plot),

2. Efficient: in many testing cases, we find it more efficient than Ray RLlib. ElegantRL provides a cloud-native solution for RLOps in finance.

3. Stable: much more stable than Stable Baselines 3. Stable Baselines 3 can only use a single GPU, but ElegantRL can use 1~8 GPUs for stable training.

 

● Framework of ElegantRL

ElegantRL implements the following model-free deep reinforcement learning (DRL) algorithms:

● DDPG, TD3, SAC, PPO, PPO (GAE),REDQ for continuous actions

● DQN, DoubleDQN, D3QN, SAC for discrete actions

● QMIX, VDN; MADDPG, MAPPO, MATD3 for multi-agent environment

For the details of DRL algorithms, please check out the educational webpage OpenAI Spinning Up.



依赖包

Python:

● Confidence with Python programming, and familiar with Jupyter notebook, and Pycharm

● Familiar with Python scripts and executing them from the command line interface

● Familiar with numerical computing libraries: Numpy, and pandas.

Git and Github:

● Knowledge of basic Git commands

● Clone,fork, branch creation and checkout

● Git status, git add, git commit, git pull and git push

Software:

● Python and Anaconda Installation

● Git installation or Github desktop

Account:

● Github account

● Cloud: AWS account or Google Account

● Paper trading account: alpaca, binance


安装与初始化


Check this blog: FinRL Install and Setup Tutorial for Beginners for detailed instructions.

 

It includes instructions for:

● Mac OS

● AWS Ubuntu

● Windows 10

● Google Colab



书籍目录




细节内容



项目地址:

https://github.com/AI4Finance-Foundation

-----------------------------------------------------------------

pdf完整版获取方式: 点击左下方“阅读原文”,论坛中下载

-----------------------------------------------------------------


登录查看更多
1

相关内容

美国海军研究实验室(The U.S. Naval Research Laboratory,NRL)是美国海军和海军陆战队的研究实验室,其总部位于华盛顿特区波拖马可河岸。该实验室成立于1923年7月2日,直属于海军研究办公室。NRL是多种复杂科学设施的集散地,主要进行尖端研究和技术开发。美国海军研究实验室的科学家和工程师在广泛的科学学科中进行基础及应用研究,以满足近期和长期的国防需求。NRL的主要研究领域包括自主&无人系统、化学与生物科学、计算物理、信息与社会科学、纳米技术、光学科学、电力与能源、量子研究、空间科学等。
《华为云金融行业 保险全业务上云解决方案》18页PPT
专知会员服务
15+阅读 · 2022年3月23日
【2022新书】强化学习工业应用,408页pdf
专知会员服务
220+阅读 · 2022年2月3日
专知会员服务
25+阅读 · 2021年9月17日
专知会员服务
38+阅读 · 2021年6月29日
专知会员服务
123+阅读 · 2020年9月8日
深度强化学习策略梯度教程,53页ppt
专知会员服务
176+阅读 · 2020年2月1日
强化学习最新教程,17页pdf
专知会员服务
168+阅读 · 2019年10月11日
机器学习入门的经验与建议
专知会员服务
90+阅读 · 2019年10月10日
【2022新书】强化学习工业应用
专知
15+阅读 · 2022年2月3日
【资源】强化学习实践教程
专知
43+阅读 · 2019年9月11日
《AutoML:方法,系统,挑战》新书免费下载
新智元
23+阅读 · 2019年5月28日
LibRec 精选:推荐系统的论文与源码
LibRec智能推荐
14+阅读 · 2018年11月29日
强化学习族谱
CreateAMind
26+阅读 · 2017年8月2日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2013年12月31日
国家自然科学基金
5+阅读 · 2013年12月31日
国家自然科学基金
0+阅读 · 2012年12月31日
国家自然科学基金
0+阅读 · 2012年12月31日
国家自然科学基金
3+阅读 · 2012年12月31日
国家自然科学基金
2+阅读 · 2011年12月31日
国家自然科学基金
1+阅读 · 2009年12月31日
Arxiv
0+阅读 · 2022年4月15日
Arxiv
16+阅读 · 2021年7月18日
Arxiv
24+阅读 · 2021年1月25日
A Survey on Bayesian Deep Learning
Arxiv
60+阅读 · 2020年7月2日
Arxiv
11+阅读 · 2018年1月11日
VIP会员
相关VIP内容
《华为云金融行业 保险全业务上云解决方案》18页PPT
专知会员服务
15+阅读 · 2022年3月23日
【2022新书】强化学习工业应用,408页pdf
专知会员服务
220+阅读 · 2022年2月3日
专知会员服务
25+阅读 · 2021年9月17日
专知会员服务
38+阅读 · 2021年6月29日
专知会员服务
123+阅读 · 2020年9月8日
深度强化学习策略梯度教程,53页ppt
专知会员服务
176+阅读 · 2020年2月1日
强化学习最新教程,17页pdf
专知会员服务
168+阅读 · 2019年10月11日
机器学习入门的经验与建议
专知会员服务
90+阅读 · 2019年10月10日
相关资讯
【2022新书】强化学习工业应用
专知
15+阅读 · 2022年2月3日
【资源】强化学习实践教程
专知
43+阅读 · 2019年9月11日
《AutoML:方法,系统,挑战》新书免费下载
新智元
23+阅读 · 2019年5月28日
LibRec 精选:推荐系统的论文与源码
LibRec智能推荐
14+阅读 · 2018年11月29日
强化学习族谱
CreateAMind
26+阅读 · 2017年8月2日
相关基金
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2013年12月31日
国家自然科学基金
5+阅读 · 2013年12月31日
国家自然科学基金
0+阅读 · 2012年12月31日
国家自然科学基金
0+阅读 · 2012年12月31日
国家自然科学基金
3+阅读 · 2012年12月31日
国家自然科学基金
2+阅读 · 2011年12月31日
国家自然科学基金
1+阅读 · 2009年12月31日
Top
微信扫码咨询专知VIP会员