my backtests look great and i still don't trust them, help me think

ok so i've been at this maybe 7 months. background is i did a couple of ML courses (the usual ones) and i thought "ok, prediction problem, i know how to do prediction problems." turns out no. my current process, and i'm posting it partly to see it written down and go "oh no": 1) pull daily bars for a basket of ~40 large cap names 2) build features: a few return lookbacks, realized vol, volume z-score, distance from a moving average, day of week (yes really) 3) label = next day return, sign of it 4) gradient boosting, train on 2015-2021, test 2022-onward 5) if the test accuracy looks decent i wire the signal into a small automated rule and paper it the part that confuses me is the gap between accuracy and money. i've had models sitting around 53-54% directional on holdout which sounds like a real edge to me, and then the equity curve of the same thing is flat or slightly down before i even think about costs. i *think* what's happening is it's right on lots of tiny days and wrong on the few big ones, so the accuracy metric is basically lying to me. is that the standard beginner trap? should i just be regressing on returns instead of classifying sign, or weighting samples by magnitude, or is the whole framing off? other thing i genuinely don't know: how many times am i allowed to look at my holdout. because i have definitely looked at 2022-onward more than once. more like thirty times. every time i change a feature i re-check it. i'm aware this is probably contaminating everything but i don't know what the alternative is in practice - do people keep a third slice they literally never touch until the end? and then what, if it fails do you throw away 4 months of work? not asking anyone to hand me a strategy, i'm asking how you structure the loop so you're not fooling yourself. because right now i suspect i'm fooling myself constantly and just don't know where.
MLcurious
18 posts · 0 followers
+ Follow

Related reading

5 replies

CryptoKarl· May 2026 ago
yeah the 53% thing is the classic one, sign accuracy treats a 0.1% day and a 4% day as the same event and the market absolutely does not - i'd at least look at your PnL split out by predicted-day-vol bucket before touching the model at all, you'll probably find the whole thing lives or dies in the top decile. and on the holdout question, honestly nobody i know has the discipline to only look once, so i just assume my out of sample is half in-sample by now and size accordingly small until live paper agrees with it.
P
PremarketPete· May 2026 ago
- the 30 looks thing: track it. literally a text file, one line per experiment. it won't stop you peeking but it makes the number visible and that changes behaviour - keep a final slice untouched, yes. and yes you do bin it if it fails. that's the cost of the method, not a bug - flat curve at 54% is usually costs + magnitude asymmetry, check the trivial one first (do you have any friction modelled at all?) - day of week as a feature with 40 names and daily bars is like 5 effective observations a week, be suspicious
G
GapHunterMike· May 2026 ago
accuracy without avg win / avg loss tells you nothing. print those two numbers first, bet you find wins tiny and losses fat. also next-day-return on daily bars means you're assuming close fills. you won't get them.
I
IndicatorSkeptic· Jun 2026 ago
The honest answer to "if it fails do you throw away 4 months of work" is: no, you throw away 4 months of *that hypothesis*, which is a different and much cheaper thing. The work was learning that sign-of-next-day-return on 40 large caps doesn't pay. That's a real result, it's just not the one you wanted. Also, day of week. I'm not going to say anything about day of week. I'm just going to leave it there and let it sit.
M
MomoQueen· Jun 2026 ago· edited Aug 2026 ago
The bit nobody's asked yet. What does the trade actually DO once the model says up?? Like do you enter at open, exit at close, one day flat, always in? Because a 53% signal with a fixed one-day hold is a totally different animal from the same signal where you cut the losers fast!! Half the time when my equity curve and my hit rate disagree it's the exit doing it, not the entry. Sort that out before you rip up the features!
Sign in to reply →
← All automated trading