strateva.

Articles

When does a backtest start counting?

This notebook uses a Gaussian mixture model to group market sessions with similar characteristics and decide when to hold SPY, a fund that tracks the S&P 500. The first fit needs a history. In the Docker replay, the portfolio spent 252 sessions in cash before the first prediction it could trade. Original notebook

Same strategy, two start dates

I compared the strategy with URTH, a global equity fund. The strategy and benchmark use the same dates in each row and both end on December 31, 2024.

First return includedStrategyHolding URTH
March 18, 2019, full calendar+107.01%+75.21%
March 17, 2020, first prediction available to trade+107.01%+120.35%

The strategy earned the same return because cash earned 0% at the start. URTH was invested from the beginning of each row, so the calendar changes which market moves count toward its return.

How to read each start date

The full calendar describes a portfolio that waits while the model gathers the history it needs. The second calendar begins when the first prediction is available to trade. The first simulated purchase came on March 31. The PDFs use the calendar that starts on March 17. The strategy charges 0.10% per trade and prices in both series exclude dividends.

What the engine measured

The difference from the reference cannot be told apart from zeroWhat the Strateva engine measured on 1,207 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 11 sessions (1,000 times). The information ratio measures the lead over URTH per unit of risk: its 95% interval runs from −0.94 to 0.77.

Cumulative return

0%50%100%150%200%250%300%StrategyURTH107.0%120.3%

Worst drawdown from a peak

0%−10%−20%−30%−40%StrategyURTH−14.7%−26.9%

Ratios, with their 95% interval

−1012SharpeInformation ratio1.13−0.16
  • 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 1.13, with a 95% interval of 0.29 to 1.90. Against URTH, the average annual difference was −2.17%, 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 33.94% and 206.54% in the central 90%, and the worst drawdown between 7.89% and 23.26%. What that resampling measures is explained in Block bootstrap and permutation Monte Carlo.

Test 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, −0.94 to 0.77. Cumulative return of 107.01% against 120.35% for URTH. Sharpe of 1.13 and worst drawdown of −14.68%.

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 review the dates in your own backtest.

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