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
Cumulative return
Worst drawdown from a peak
Ratios, with their 95% interval
- 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

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.