strateva.

Articles

What does a 2% VaR filter rule out?

The notebook looks to buy QQQ after a decline that is large relative to its recent moves. Before entering, it calculates value at risk, or VaR, using the 10th percentile of the latest 20 returns. The rule buys when that loss estimate is below 2%. Original notebook

An entry the filter screened out

At the February 27, 2020 close, the decline met the buy condition and VaR was 2.87%. The code uses that value for the March 2 opening order. The portfolio without the filter bought. The portfolio with VaR stayed in cash. Across the sample, the filter screened out 62 of 194 days that met the buy condition.

What happened with the same rules and prices

I repeated the test in Docker from December 2019 to December 2024. The control uses the same dates, execution timing and $1 per order.

VersionNet returnMaximum drawdown
With the VaR filter+56.50%−4.88%
With the price condition alone+40.66%−23.08%

The 2% cutoff applies to the estimate the rule reads. On February 25, 2020, the VaR used by the portfolio was 1.63% and its return that session was −2.72%. Across the sample there were four days with losses greater than 2%. The PDFs document the filtered version and its close-to-close comparison with SPY.

What the engine measured

The difference from the reference cannot be told apart from zeroWhat the Strateva engine measured on 1,258 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 SPY per unit of risk: its 95% interval runs from −1.10 to 0.56.

Cumulative return

0%50%100%StrategySPY56.5%82.1%

Worst drawdown from a peak

0%−10%−20%−30%−40%StrategySPY−4.9%−34.1%

Ratios, with their 95% interval

−2−10123SharpeInformation ratio1.40−0.25
  • Strategy
  • Reference: SPY
  • 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.40, with a 95% interval of 0.49 to 2.21. Against SPY, the average annual difference was −5.05%, with a t-statistic of −0.61: it cannot be told apart from zero.

When the same returns were resampled in blocks, the cumulative return fell between 24.75% and 99.79% in the central 90%, and the worst drawdown between 3.76% and 11.54%. 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, −1.10 to 0.56. Cumulative return of 56.50% against 82.09% for SPY. Sharpe of 1.40 and worst drawdown of −4.88%.

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 measure which entries a filter changes in your 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