Zipline Beginner Tutorial
Basics
Zipline is an open-source algorithmic trading simulator written in Python .Zipline是一个用Python编写的开源算法交易模拟器。
The source can be found at: https://github.com/quantopian/zipline 源码地址在
Some benefits include: 一些优势包括:
- Realistic: slippage, transaction costs, order delays. 实时:滑点,交易成本,订单延迟。
- Stream-based: Process each event individually, avoids look-ahead bias. 基于流:分别处理每个事件,避免预见偏差。
- Batteries included: Common transforms (moving average) as well as common risk calculations (Sharpe). 电池包括:常见转换(移动平均值)以及常见风险计算(夏普)。
- Developed and
Zipline是一个Python编写的开源算法交易模拟器,具备实时交易模拟、避免预见偏差等优势。本教程介绍了如何定义算法,如initialize()和handle_data()函数,以及如何运行和分析算法。示例算法包括简单的买入苹果股票策略。教程涵盖了命令行接口、IPython Notebook的使用,并展示了如何使用数据历史记录功能实现双移动平均交叉策略。
订阅专栏 解锁全文
1533

被折叠的 条评论
为什么被折叠?



