7
55%
u/Trikotic
2 days ago
Infrastructure
Im currently building a trading bot farm using Claude Opus 4.8, and i need some advice...
So i have the farm mostly built, and i am currently in the strategy testing phase. ive now tested 20 strategies on ES/MES/SPX and have had zero be promoted to my paper trading trial, which would run for about 1-2 months to ensure that it wasnt a curve-fitted bot. ive had several profitable bots, however my Farm killed them due to underperformance compared to the underlying, fees and spreads ate all the profits, or only performed well in a specific market regime. im 2 weeks into this project, and havnt really made any progress for over a week. here is a brief workflow rundown of how my bot runs it trials...
1. Data foundation — Databento history → back-adjusted continuous futures (roll on liquidity, additive/Panama method); integrity checks (bad-tick/gap/timezone); options marks cleaned via a point-in-time symbology join. Clean, realistic, reproducible inputs — garbage in = fake edge.
2. Strategy contract — every bot is a pure function (bar/chain → order intents); it never sees size, the clock, or the broker. The identical code runs backtest and live — "what you prove is what you run."
3. Backtest engine — no-lookahead replay clock, pessimistic fills, real MES/SPX costs, ruin floor + margin-liquidation check. One honest single-run P&L.
4. Walk-forward + sealed holdout — rolling train/test windows; the final \~1yr is locked in code, scored exactly once. Out-of-sample discipline you can't iterate against.
5. Robustness sweep + regime breakdown — re-run across many window sizes; label each window bull/bear/high-vol/low-vol. Kills edges that only work at one lucky setting or in one regime.
6. Monte Carlo + Kelly sizing — block-bootstrap with an injected fat-tail shock; size off the lower confidence bound of the edge, not the point estimate. Ruin-aware sizing.
7. Validation gate (promote only if ALL): (a) out-of-sample edge statistically significant, deflated for the number of bots ever tested (Šidák); (b) robust across windows + regimes; (c) beats buy-and-hold risk-adjusted, after costs; (d) survives the sealed holdout. One strict promote/reject rule.
8. Research journal — append-only SQLite; every backtest auto-logs as a trial, supplying the honest denominator for the multiple-testing deflation above + tracking stage attrition. No forgotten failures inflating the hit rate.
Two asset classes, one pipeline: a futures engine and a parallel options engine (multi-leg structures, chain-aware fills that cross the real spread) both feed the same gate + journal.
Deliberately NOT built yet: live execution, forward paper-trading (the intended real final gate), any self-improvement/auto-tuning, and a UI. A pass today ends at "clears the gate → would go to paper."Can i get advice on how i should continue to approach this project? im struggling to find strategies that aren't already oversaturated to the point the edge no longer exists, so where should i be looking to find profitable strategy? any and all advice / criticism is greatly appreciated! also feel free to ask questions for anything unanswered that would be helpful for you to help. *this project is for personal use, im not selling this or giving it away, so if you have an existing strategy for any market that is profitable that you'd like to share, id be extremely grateful if you send it in my DMs, and i promise that the strategy wont be marketed, and wont ruin your edge.*