The notebook compares recent SPY volatility with a historical reference. In the high-volatility regime the portfolio is labeled 30%. In low volatility it is labeled 100%. Orders are simulated at the open. Original notebook
From the label to the order
When moving from 30% to 100%, the program buys 70% of the previous portfolio value. The weight of the shares it already holds has moved with the price. The result of the purchase therefore depends on the portfolio's actual weight when it reaches the open.
Before the January 18, 2022 order, the previous mark showed 36.34% invested. The switch left exposure at 106.46% and cash at −$8,384.50. Across the 674 openings marked with the 100% label, observed exposure exceeded that level and cash was negative.
The full historical result
From December 2019 through December 2024, the Docker replay earned 68.05% net versus 59.10% for URTH. Both series are measured open to open. The notebook charges 0.15% of traded value and applies zero financing costs to negative cash balances.
What the engine measured
Cumulative return
Worst drawdown from a peak
Ratios, with their 95% interval
- Strategy
- Reference: URTH
- Resampling range or 95% interval
Source: technical report of the test, linked below. Prices exclude dividends; the resampling uses the same historical series.
The technical report adds the margin of error to these figures. The Sharpe of the strategy was 0.84, with a 95% interval of −0.02 to 1.74. Against URTH, the average annual difference was −0.20%, with a t-statistic of −0.03: it cannot be told apart from zero.
When the same returns were resampled in blocks, the cumulative return fell between 18.08% and 146.94% in the central 90%, and the worst drawdown between 8.48% and 22.81%. What that resampling measures is explained in Block bootstrap and permutation Monte Carlo.
Test reports

How to read this document is explained in the guide to the technical report.
How to read both documents is in the guide to the technical report.
See Strateva's services if you want to verify the weights that result from your own orders.