An out-of-sample test sets aside later dates to evaluate how a rule would have performed. This notebook separates 2013–2019 and 2020–2023. For each period, its maximum Sharpe optimizer estimates weights from 252 daily returns and reviews the allocation each quarter. The universe contains eight ETFs and Bitcoin. Original notebook
Why the dates matter
The code cuts the price history before calculating returns. The 2020–2023 segment begins on January 2, 2020. The portfolio starts counting history from that date and waits in cash until it has enough data. In the replay it spent 313 sessions in cash. It took its first position on March 31, 2021.
At each rebalance, the original notebook used portfolio equity from the previous open. The replay values the positions already held at the current open before replacing them. It keeps the notebook’s 0.10% fee on traded value at each rebalance, and leaves the initial entry free of commissions. The metrics use a 2% risk-free rate.
What changed after repricing the holdings
From its first invested open through December 29, 2023, the maximum Sharpe portfolio returned 2.84% net. The literal replay showed 3.48% on the same dates. URTH gained 12.79% before costs over the corresponding dates.
Each daily row combines Bitcoin’s midnight UTC open with ETF opens hours later. The result reflects that convention using daily data. Checking how a joint order could have executed would require prices at a common timestamp.
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.05, with a 95% interval of −1.09 to 1.24. Against URTH, the average annual difference was −2.82%, with a t-statistic of −0.31: it cannot be told apart from zero.
When the same returns were resampled in blocks, the cumulative return fell between −39.83% and 81.62% in the central 90%, and the worst drawdown between 16.57% and 50.52%. What that resampling measures is explained in Block bootstrap and permutation Monte Carlo.
Audit 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 to audit a portfolio strategy.