vectorbt in Practice: a Reproducible Backtest from Raw Data to Report
With its default settings, vectorbt reports that buying and holding SPY since 1993 returned 15.8% a year; the real figure is 10.6%. A complete, reproducible vectorbt backtest of a 200-day moving-average rule, with frozen data, every setting that changes the answer measured, and an out-of-sample test in which none of 29 windows beat buy-and-hold after 2010.















