Why would the same day have two returns in a backtest? The notebook I picked at random tests a rule that buys URTH, a global equity fund, when it detects low volatility and moves to cash when it detects high volatility. Original notebook
Same Monday, two returns
The notebook recalibrates the rule every 63 sessions and tests it over the next 126. Joining the windows yields 1,736 returns for 943 dates. June 8, 2015 shows up with a return of −0.30% in one window and 0.00% in another. Each window starts with its own balance, so deleting a duplicate row leaves those capital resets in place.
One continuous portfolio
I reran the parameter search in Docker and rebuilt the simulation in Strateva. Each day used the latest available settings. I carried forward the previous day's balance and positions and kept the notebook's trading costs.
From March 5, 2015 to November 30, 2018, the portfolio returned 19.26% net versus 25.54% for holding URTH. Its largest decline from a peak was 10.44%, compared with 18.89% for the fund. The portfolio had negative cash balances on some days. The simulation omitted the financing charges for those balances.
If a backtest joins overlapping windows, check two things in the final record. Does each day have one return, and does the portfolio balance carry over into the next window?
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.59, with a 95% interval of −0.23 to 1.62. Against URTH, the average annual difference was −1.93%, with a t-statistic of −0.37: it cannot be told apart from zero.
When the same returns were resampled in blocks, the cumulative return fell between −6.95% and 47.34% in the central 90%, and the worst drawdown between 6.14% and 20.48%. 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.
If you want to check a rule on your own data, see Strateva's services.