strateva.

Articles

What happens if you buy Microsoft after it closes near the day's low?

Microsoft closes near its lowest price of the day. What would have happened if you had bought at the next morning’s open? I picked a strategy at random from a public repository to explore that question.

The rule looks for a close in the bottom 5% of the day’s trading range and applies a second filter based on recent price changes. If both conditions are met, it simulates a purchase at the next session’s open. To sell, it looks for a close in the top 5% and reverses the filter.

What happened

From April 2018 to December 2024, a simulated $10,000 grew to $26,713 with the strategy and $22,215 with SPY, a fund that tracks the S&P 500. The strategy paid a 0.10% commission on each purchase or sale. Both results use prices without dividends.

The strategy finished ahead over this period. Once we account for how much the results varied, the data are also consistent with a zero difference in average returns relative to SPY.

The detail that changed 47 signals

I doubled every price and recalculated the signals separately. Moving from $100 to $105 is a 5% rise. Moving from $200 to $210 is also a 5% rise. Even so, the signal changed on 47 of the 1,697 sessions examined.

The filter compares a price move measured in dollars with another measured as a percentage. Doubling every price doubles the dollar move and leaves the percentage move unchanged.

The next time you see a strong backtest chart, ask a simple question. What units does the rule compare? Here, the answer explains why two price histories with identical percentage gains and losses can produce different decisions.

What the engine measured

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

Cumulative return

0%100%200%300%400%500%StrategySPY167.1%122.1%

Worst drawdown from a peak

0%−10%−20%−30%−40%−50%−60%StrategySPY−21.9%−32.4%

Ratios, with their 95% interval

−1012SharpeInformation ratio0.840.18
  • 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 0.84, with a 95% interval of 0.17 to 1.53. Against SPY, the average annual difference was 2.96%, with a t-statistic of 0.47: it cannot be told apart from zero.

When the same returns were resampled in blocks, the cumulative return fell between 28.55% and 438.94% in the central 90%, and the worst drawdown between 15.43% and 40.55%. What that resampling measures is explained in Block bootstrap and permutation Monte Carlo.

Reports from the test

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.61 to 0.96. Cumulative return of 167.13% against 122.15% for SPY. Sharpe of 0.84 and worst drawdown of −21.85%.

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 would like to review a rule with 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