Design a site like this with
Get started

Complete Backtest Using Ingested Zipline Data

  1. Import necessary functions in Python
  2. Set target weights for each ticker
  3. Set rebalance rules, i.e. monthly
  4. Set benchmark, i.e. SPY
  5. Set start and end dates – should match trade dates in zipline ingested files
  6. Create benchmark file
    • Make sure benchmark dates align with trade dates
  7. Run backtest analysis
    • If there are modules to import – %run analysis.ipynb
  8. Save output to csv – results.to_csv(‘result.csv’)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: