r/algorithmictrading • u/indiebossvfx • Jun 05 '26
Novice Backtesting newbie with a lot of questions
Hey, folks. Long time listener, first time caller, here. I’ve been backtesting and working towards an algo for over a year now, and I’m tired of communicating with only ChatGPT/claude. I’d like to ask you guys a few questions that have been left un(properly) answered from those two ai douchebags. I figured my best bet would be to reach out to people with actual experience doing this. So here goes:
Context: Most of my backtesting is done with recency of 3-6 months in mind. And ultimately I expand to jan 1, 2025 start date (to present day). All of my strats are exclusively on Spy and or ES and QQQ and or NQ (bust like 80% spy/es.
- Algo-able strategy types. I’ve been creating strategies that resemble types of trades I have taken in my 1.5 years of daytrading. These are stuff like 5/15m orb. Orb reversals. Key area rejections/bounces/reclaims. Vwap/ema trades. FVG/orderblock trades…you get the point, price action type of stuff. Is this even realistic for a profitable algo? Or am I wasting my time? Should I focus on other types of trading, like indicator based? Or candle formation based stuff? Or?
- Current strategy frequency. Either my current strats, I’ve implemented features and rules for these strats, which narrow down the opportunities present every day/week/month. And then through the process of filtering and adding more rules and/or confluence, I filter down the frequency of trades even more. And then through regime gating, I filter down the frequency of trades even even more. This helps me get a higher win rate and higher probability of profit, but my trade frequency reduces greatly. So when it comes time to do validation and walk-forward analysis, I keep hitting a wall of ai bitching about “sorry bro, not enough trade count”. Some strats I have get dwindled down to about 20-40 trades a year (highest probability), some can be about 40-80, some can be up to 200 trades a year. Connecting number 3 question>>>
- Frequency and validation. So my frequency gets dwindled down and I have less confidence in long term consistency. I’ve been eyeballing the trades via an equity curve and it’s helped me a ton. I used to just look at numbers and stats, till one day I started also generating/studying equity charts for the individual Strats. It was eye opening to see that so many of my strats were just getting lucky or were inconsistent. So I’ve started doing stuff like looking at r2, features-visibility% per bucket, etc in addition to overall stats. Have you encountered low frequency validation hurdles? Any tips there?
- Backtesting period. Remember, I mentioned all my strats start 1/1/25 the furthest. Why? I have no freaking clue why but everything falls apart going beyond 6/1/24. So I said screw it and just focused on 2025-forward. Yes, I’ve tried dynamic risk management and rules. Matter of fact, at least 75% of the strats are dynamic. I’ve tried all sorts of stuff like Spy price percentage multipliers, vix multipliers (vix1d vix9d vix3m etc), point based multipliers, atr multipliers, opening range dollar amount multipliers, etc. I did all this in hopes of extending the trade frequency as far back, but it’s been useless. What gives?
- 2025 summer. Wtf. Most of my strats get filtered out in that period. Nothing sticks there! I figured after tariffs comedown, some trend following strats would have prevailed, but nope. Super inconsistent in that period.
- Ensemble of strats. Since I spent so much time working on just orb Strats, I took a pivot and started thinking in terms of Hedging my own strats with other strats. The whole thing got me excited so once I started looking at what compounding of strats can do to an equity chart, I started expanding the types of strats for my algo. Different types of strats like quick scalps, 5m hold, where hold, eod…. I also figured it would help balance out longer periods of strats that can go through a couple of weeks of drawdowns. You guys do anything like that?
- Recency. A lot of stuff I’ve been cooking up are doing great. But even with good stats for over a 6 month period, I just don’t trust my stuff. So I started paper trading for the last three weeks. And the results aren’t all that great. But I have to remember these strats take time to play out and even out.
- Regime. Rvol. Vix. Etc tbc
- dataset. Gex, economic calendar, futures, tbc
- dashboards and reports
Ok gonna PAUSE here. There’s too much to my framework and so many more questions so I’m gonna park the questions at 7) for now. Will resume later.
1
u/Character_Attempt176 Jun 05 '26
Low trade count plus regime shifts is where walk-forward and holdout pain starts to matter most
1
u/EmbarrassedEscape409 Jun 05 '26
To the your first point. Yes, you wasting your time with all those FVG, price actions etc. you can go back you chatgpt/Claude and say that you realised that all these retail strategies are waste of time and I need to change approach completely focusing on statistics, econometrics and way more advanced features completely bypassing all these retail nonsense and you will get something more sophisticated. However realistically you can achieve very thin edge with AUC somewhere in 0.53-0.54. if you get very high you clearly overfittings
1
u/StratForge2024 Jun 05 '26
Hey, so I've been around the block a couple years doing grammar-evolution and GA optimization in crypto perpetuals, not equities. I've run into some stuff that made me question my own "AI said X is wrong" moments.
On the whole price action thing and those FVG/ORB strategies, the top commenter's kind of exaggerating. There's definitely an edge with PA signals on intraday timeframes, if you can boil them down to some solid rules like crosses, thresholds, or volatility stuff. What really screws over retail PA strategies isn't the patterns themselves, it's more like subjective decisions sneaking into supposedly "objective" rules, lookahead bias in those "wait for confirmation" setups, and slippage models not matching the real microstructure.
If you can set up FVG/orderblock as "condition X happened at bar i-1, enter at open[i]" and your backtesting engine respects bar-close semantics, you're not completely off-base.
When it comes to trade frequency, honestly, that's what really kills you, not the patterns. If you're doing less than around 100 trades a year, you can't really tell if you've got an edge or just luck. You can either do the same strategy on multiple pairs to up your number of trades or maybe loosen your entry filters and focus on the exits instead.
DSR (Deflated Sharpe Ratio, Bailey & López de Prado 2014) at a 0.6 threshold will give you a clue if your low-trade strategy is gonna make it. A strict 0.95 will just reject everything for smaller scale searches.
On regime issues — multi-timeframe regime gating (like trading 15m if the 1h regime agrees) helps a lot with the kind of breakdowns you're describing. Single-TF detectors lag by a few bars, which can be a killer in choppy conditions. Haven't specifically tested summer 2025 month-by-month on my crypto data so can't confirm your equity pattern there, but the regime-failure-not-strategy-failure framing usually fits when stuff breaks suddenly.
On the equity curve, you're on the right track. Checking r² of equity vs. time and sliding-window Sharpe stability is way more revealing than just looking at aggregate stats. If you see a window-2 fitness vs. full-history fitness gap greater than 25%, you're probably overfitting, no matter what the total PF says.
Look, live track records are what really matter. Had around 20 paper bots running that passed every academic test, and ~85% of them turned out to be trash in production within weeks. Real-time slippage, exchange fills, and regime shifts wrecked strategies that backtested at PF 1.3-1.5. The borderline ones especially.
Forward paper test for like 6-8 weeks before putting real money on the line. Anything less and you're just rolling the dice.
There's an edge out there, for sure. It's narrow, but it's not 0.53 AUC narrow. That's a classifier-style framing of a problem that's really about microstructure, execution, and cost.
1
u/FlyTradrHQ Jun 06 '26
Start with one asset and a simple rule set before going multi-asset. The biggest beginner trap is overfitting to past data. Always keep an out-of-sample period that you never touch during strategy development. If it works there too, you might have something real.
1
u/sgcorporatehamster Jun 07 '26
Some thoughts from a fellow newbie, take from them what u will, in sequence of how strongly if feel about each of what u mentioned
2. i would start by looking at your win rate threshold which, if set too high, would be the root of all your other problems. in all my strategy development i never tune to max out per trade returns or win rate. "degrading" has 3 distinct advantages - 1) giving u enough N which is required for statistical power (and reduce overfitting risks), 2) providing you more stable OOS results; 3) most of the time it also gives better total returns (higher N x slightly lower per trade returns). if what i say applies to your context, #3, #4, #5 are also naturally resolved.
4. depending on your exact strategy i would be quite uncomfortable with a strategy that is only valid for such a narrow period of time, given that the market has only been going up since 2025.. if you loosen your tuning, maybe u get better survivability of results across bigger windows..
5. assuming u are saying the results are filtered (and not killed), u should really see that as a feature and not a bug. your strategy is meant to make u money when theres money to be made, not solve for world peace.
you seem to have a broad range of concerns that you are trying to solve (which incidentally are the same things that i am working through), but suggest u think through and prioritise.
good luck!
1
u/AlgoWarden Jun 09 '26
Start with simple quantifiable strategies.
Reduce your filters.
The trap with brainstorming with ai, they give strategies that are often promoted to retail traders as they can be easily found on the web, and often tends to hallucinate when you ask them about winrates/profit factors etc -far from what you’ll see on your actual backtest.
Try adding on/off parameters on the filters you added and run some optimization and see what sticks and what should be deleted
1
u/FlyTradrHQ Jun 09 '26
fair point, I skimmed too fast. my bad.