r/algorithmictrading • u/eribertito • Aug 29 '26
Backtest I finally froze my first systematic NQ futures strategy after a full robustness validation
After months of building and testing a systematic NQ futures strategy, I finally reached the point where I'm comfortable freezing the research.
I called the strategy S2R.
The important part for me isn't that the backtest is profitable.
It's that I tried to attack the result from multiple directions before considering it research-complete.
Frozen model
• MAE threshold: 0.70R
• Recovery threshold: +0.20R
• Recovery deadline: 6 bars
No parameter optimization was performed after freezing these values.
Holdout OOS
The final holdout consists of 217 trades:
• Total: +34.3452R
• Mean: +0.1583R/trade
• Win rate: 53.92%
• Profit Factor: 1.3815
• Max drawdown: -7.76R
But I didn't want to stop there.
Robustness testing
I ran:
- Monte Carlo / Bootstrap
Tested the distribution of possible outcomes and drawdowns.
- Time-aware block bootstrap
Blocks of 5, 10 and 20 trades were tested to avoid assuming that every trade is independent.
- OOS window stability
I removed each OOS window individually.
The strategy remained positive in 11/11 leave-one-window-out tests.
Worst case:
+20.05R
- Year stability
OOS performance:
2024: +13.68R
2025: +10.97R
2026: +9.69R
So 3/3 OOS years were positive.
- Parameter perturbation
I tested 125 nearby combinations of MAE threshold, recovery threshold and recovery deadline.
125/125 were positive.
125/125 had PF > 1.
Final result
The complete research gate passed.
At this point I'm deliberately not optimizing S2R anymore.
The research parameters are frozen.
The next phase is engineering:
I'm going to rebuild the strategy as a modular Python implementation and verify that the modular implementation reproduces the frozen research results exactly.
I'm documenting the project in Github
I'm especially interested in feedback on the validation methodology rather than just the headline returns.
What would you test next before considering a systematic strategy ready for live/paper deployment?
4
u/justwondering117 Aug 29 '26
If I'm reading this correctly, your sample size is 217? If so it's too small.
3
u/Fresh-Explorer-5108 Aug 29 '26
The next test I’d care about is paper execution with frozen rules—especially slippage, missed fills, and latency around volatile periods. If the live trade log still matches the research assumptions, that tells you more than another backtest.
2
u/ReporterCalm6238 Aug 29 '26
Good job but I also think the test sample is a bit too small
2
u/codebase50 Aug 29 '26
Over optimized to hell and back
1
u/Dings-not-Qt Aug 29 '26
AI slop in the post and OP is using AI slop to respond to comments lmfao
1
u/No-Inevitable6869 Aug 30 '26
The next test should be run it live with a demo account.
1
u/EvenCryptographer649 Aug 31 '26
Looks like LLMs found the new 'bootstrap' buzz word. So gay.
Anyway...not enough data even doubling the years will still keep the confidence level low; and if you feed it in the fact that its using the word 'bootstrap' means that it took a shortcut and is probably lying to you.
Not even close to a github yet
2
u/Fit-Wallaby-5823 Aug 29 '26
Run the Placebo next.
1
u/Truth_Seeker_2030 18d ago
1 minute data???
You need to go back at least 5 years my friend and use 1s data.
How is this turning out? It's been a couple months
1
u/No_Statistician4724 Aug 29 '26
Hows the beta? and how many years did you test on total? did you cover 2008, 2020, 2022? did you track slippage, commissions, market vs limit fills? With a strategy whose profit factor is 1.4 id be skeptical to make sure it survives execution costs
1
u/VictorVonDoom_ Aug 30 '26
Can I see your GitHub? I am interested, I am also doing the same, but my winrare is 47% and it's being a sloe bleed.
1
u/algolego Aug 30 '26
This is more validation than most posts here get anywhere near, so credit first. Two additions from someone who spends most of his time on exactly this kind of testing.
The monkey-trader comparison multiks2200 mentioned deserves to be the next thing you build, and here is the concrete version. Generate random entries with the same session windows, same direction mix, same R geometry and same trade count as S2R, and score them by identical rules. The reason this matters more than another bootstrap: NQ drifted up through 2024, 2025 and 2026, and random long-side entries on a drifting instrument come out positive in R terms too. So the pass bar for your +0.1583R per trade is not zero. It is whatever random entries of the same shape earn on the same data. Your 3/3 positive years is consistent with a real edge, and it is also consistent with drift capture. The random baseline is the thing that separates those two, and nothing in the current suite does it.
Smaller point on the 125/125 perturbation result. Nearby parameter cells share most of their trades, so those 125 outcomes are heavily correlated. 125/125 positive is reassuring, but it is much closer to one observation than to 125. Worth remembering when you weigh how much it proves.
None of this says the edge is not real. It says the strongest test is also the cheapest one you have left to run.
1
u/[deleted] Aug 30 '26
[removed] — view removed comment