strateva.

Articles

What changes when you follow a trend one day later?

How much does a backtest change if you make exactly the same trades one day later? To find out, I randomly picked a strategy from a public repository that follows trends in SPY, a fund that tracks the S&P 500.

The notebook compares 132 variations and picks the one with the highest Sharpe ratio, a measure of return relative to its variability. The winning version compares the average of the last 20 closing prices with the last 200 to decide whether to take a long or short position. It sizes the position based on how much SPY has moved over the last 40 sessions.

Same positions, one day later

I reproduced the selected version in the Strateva engine inside Docker. Then I shifted its positions by one full trading session. I kept the selected version fixed and applied the same cost in both runs, 0.10% per position change equivalent to 100% of the portfolio.

Across the 1,214 sessions in common, from March 6, 2020 to December 31, 2024, the cumulative net return went from 89.96% to 70.09%. Annualized Sharpe fell from 0.97 to 0.78, with a 2% risk-free rate in both calculations.

How to read the result

The notebook picked the version using the same history it measured it on. The test shows how sensitive that simulation was to trade timing. Prices exclude dividends, and the cost model omits financing and stock-borrow charges.

One question to ask of your next backtest. What happens if you apply the same decisions at the following open?

What the engine measured

The difference from the reference cannot be told apart from zeroWhat the Strateva engine measured on 1,215 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.90 to 0.99.

Cumulative return

0%50%100%150%200%StrategyURTH90.0%68.0%

Worst drawdown from a peak

0%−10%−20%−30%−40%StrategyURTH−14.9%−28.5%

Ratios, with their 95% interval

−1012SharpeInformation ratio0.970.07
  • 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.97, with a 95% interval of 0.10 to 1.90. Against URTH, the average annual difference was 1.49%, with a t-statistic of 0.16: it cannot be told apart from zero.

When the same returns were resampled in blocks, the cumulative return fell between 27.97% and 191.64% in the central 90%, and the worst drawdown between 9.19% and 23.12%. 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.90 to 0.99. Cumulative return of 89.96% against 68.05% for URTH. Sharpe of 0.97 and worst drawdown of −14.86%.

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.

Both PDFs document the replay on the strategy’s original schedule.

If you want to check a rule on your own data, see Strateva’s services.

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