strateva.

Articles

When does an out-of-sample portfolio test really start?

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

The difference from the reference cannot be told apart from zeroWhat the Strateva engine measured on 692 daily returns. The bars are what was observed; the vertical stroke on the strategy is the range the central 90% fell in when those same returns were resampled in blocks of 9 sessions (1,000 times). The information ratio measures the lead over URTH per unit of risk: its 95% interval runs from −1.31 to 1.00.

Cumulative return

−50%0%50%100%StrategyURTH2.8%12.8%

Worst drawdown from a peak

0%−10%−20%−30%−40%−50%−60%StrategyURTH−33.4%−28.5%

Ratios, with their 95% interval

−2−1012SharpeInformation ratio0.05−0.19
  • 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

The first page of the executive summary
First page of the executive summary of the test. Header "Draft · unsigned evidence". Conclusion: the difference from the reference cannot be told apart from zero with this data; 95% information ratio interval, −1.31 to 1.00. Cumulative return of 2.84% against 12.79% for URTH. Sharpe of 0.05 and worst drawdown of −33.44%.

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.

All articlesAll the engine reports

CONTACT

Tell me about your strategy. I will say whether it fits within 48 business hours.

Tell me what you want checked, the asset, the frequency and what you have: rules, a report or code. I will tell you whether it fits and which plan it would be.

What to include in your email

  • Market, instruments and frequency (Spot only).
  • What you want checked, and the period.
  • Language and approximate code size, without pasting the code.
  • What data you have, and whether you need an NDA.

Do not send private code, keys or passwords.

stan@strateva.ai

Reply within 48 h (business days). No private material in the first message. No obligation to commission work.

Who replies

I am Filip Stanciu. I have an MSc in Quantitative Finance from the University of Alcalá, a degree in Finance from the Complutense University of Madrid, and a MiFID II certificate. I have worked in quantitative research for an asset manager, validating stock and ETF strategies. I read and reply to every email myself.

I am not a certification body and I am not a large team. I am one person, and I say so.

Nicolae Filip Stanciu