This release note describes changes to Zipline, a Python framework for running algorithmic trading systems. It adds command-line and IPython notebook ways to execute algorithms, plus a history function that supplies rolling market data to a strategy. The…
Knowledge library
Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.
Search the library
12 documents
This example describes a simple moving-average trend strategy for Apple shares. It calculates 20-period and 40-period exponential moving averages from a 40-day history of daily prices. When the shorter EMA is above the longer one and the algorithm is not…
This tutorial explains Zipline’s event-driven structure for writing and running trading algorithms. A strategy defines an initialization function for persistent state and a handler that runs on each market event, where it can read current or historical…
This guide explains how Zipline data bundles package pricing history, corporate-action adjustments, and asset metadata for backtesting. It covers listing available bundles, ingesting a data source, choosing a specific ingestion by timestamp, and cleaning up…
This reference catalogs Zipline’s strategy and backtesting interfaces. It covers algorithm setup, market data access, scheduling, asset lookup, order placement and cancellation, and trading controls such as limits on leverage, order count, order size, and…
This small Zipline example selects Apple shares during initialization and configures per-share commission and volume-share slippage. On every data callback, it submits an order for ten shares and records the current share price. The example therefore…
This release note describes Zipline changes relevant to building and running quantitative backtests. The main development is broader futures support alongside equities, including futures slippage and commission models, configurable continuous-futures…
This beginner tutorial explains Zipline’s event-driven structure for algorithmic trading simulations. An algorithm defines initialization and per-event data handling functions, using a persistent context to store state and a data object for current market…
This release note describes changes to Zipline, a Python framework for algorithmic trading. It introduces the history API for retrieving prior bar data, early support for Quantopian-style algorithm scripts, new data sources, and a BMF&Bovespa trading…
This document introduces Zipline Reloaded, a Python event-driven framework for testing trading algorithms. It describes using historical market data, running a strategy across a date range, and saving performance output for later analysis. The worked example…
This Zipline example runs a daily algorithm over Apple data from 2014 through 2018. At each data point, it places an order for ten shares and records the current Apple price. The setup specifies per-share commissions with a minimum trade cost and…
This Zipline example builds a daily long-short equity portfolio from the three assets with the highest RSI and the three with the lowest RSI. It assigns each selected long a target weight of one third and each short a target weight of negative one third,…