Algorithmic Trading with Zipline
summary
Zipline is a BSD-licensed, event-driven backtester that walks historical data row by row and prevents look‑ahead bias while outputting results as Pandas DataFrames. The demo shows concrete algorithms: buy‑and‑hold on AAPL and a 50/200 dual moving‑average crossover that uses a 50‑day and 200‑day window via history and records portfolio value and metrics like Sharpe, alpha, beta and VaR. Zipline integrates matplotlib scipy statsmodels and sklearn, offers CLI and IPython magic, minute data and production use on Quantopian.com.
AI-written summary · about
chapters (14)
- 0:00Algorithmic trading intro
- 1:15Open source trading tools matter
- 3:24Trading pipeline explained
- 5:56Dangers of untested algorithms
- 8:03Zipline backtesting system
- 10:10Installing Zipline 0.7
- 11:32Basic algorithm demo
- 17:48Zipline in Jupyter
- 19:10Moving average crossover
- 25:33Quantopian platform
- 27:41Quantopian community
- 30:07Building algorithms without coding
- 31:09Zipline vs Quantopian
- 32:13Q&A: Benchmarks & backtesting
related talks
51mClosing Keynote
15mStreamlining Investment Decisions with Python, LangChain, and RamaLama
01h 22mSimple Simulators with pandas and Generator Coroutines
24mPython, Pandas and other animals to survive in the data jungle
47mCreating a Contemporary Risk Management System Using Python
31mPython Doesn’t Have to Be Slow: Speeding Up a Large-Scale Optimization Algorithm
33mWhy Python Has Taken Over Finance
30mPython for developing an automated trading platform
