Three runs of backtest.py on the illustrative 60-bar file
Answered against 22 years of US equities and 12 years of US options data and published with the query that produced it. This result is stored as of 2026-09-16, from How to Backtest a Trading Strategy in Python.
| run | total_return_pct | max_drawdown_pct | round_trips |
|---|---|---|---|
| raw tape | -49.84 | -50.01 | 2 |
| split-adjusted | 1.19 | -3.91 | 2 |
| split-adjusted, 0.1% slippage | 0.69 | -3.9 | 2 |
- Rows × columns
- 3 × 4
- Computed
- Completeness
- No missing values
- Source
- US exchange, SIP and OPRA market data
- Licence
- Strasmore terms · free, no signup
What each column holds
| Column | Type | Range | Notes |
|---|---|---|---|
run |
text | 3 distinct values | |
total_return_pct |
number | -49.84 to 1.19 | percent |
max_drawdown_pct |
number | -50.01 to -3.9 | percent |
round_trips |
number | every row is 2 |
Computed from Strasmore's warehouse of US exchange, SIP and OPRA market data. Equity prices are delayed; options greeks and implied volatility are end-of-day. This result is stored, not recomputed on load — it is exactly the numbers that were returned on , and the query below is what returned them.
the exact SQL behind every number
SELECT
run,
total_return_pct,
max_drawdown_pct,
round_trips
FROM
(
SELECT 1 AS step, 'raw tape' AS run, -49.84 AS total_return_pct, -50.01 AS max_drawdown_pct, 2 AS round_trips
UNION ALL
SELECT 2, 'split-adjusted', 1.19, -3.91, 2
UNION ALL
SELECT 3, 'split-adjusted, 0.1% slippage', 0.69, -3.90, 2
)
ORDER BY step
Run your own version of this
The same 22 years of US equities and 12 years of options data are queryable in SQL or plain English. A free account runs 100 queries a day and takes no card.
Related queries
When market headlines publish, by New York clock hour
ranking 24×2
→
Growth of one dollar: holding all year vs holding only November through April
ranking 21×3
→
S&P 500 tracker: May to October vs November to April, season by season
ranking 21×3
→
SPY distributions by ex-dividend month: inside the May to October window vs outside it
ranking 19×3
→
Trading sessions per year under FB and META
ranking 15×3
→
New listings landing on a symbol that already had history
ranking 11×3
→
See all 2,272 queries →