I'd love an example in the zipline/examples directory that shows how to do a simple comparison to a benchmark
Contributor guide
Tech stack
python
Domain
backenddata
Issue type
documentation
DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
3
Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
half day
Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
stale
ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
clear
Prerequisites
Pythonzipline basics
Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
70
Research direction
Explore the zipline/examples directory to understand the format of existing examples. Review the zipline API documentation, especially the section on benchmarking. Write a Python script that demonstrates how to run a backtest and compare the results to a benchmark index. The example should be self contained and include comments explaining each step. Ensure it runs correctly with the current version of zipline.