Does my trading bot pass CI?

About this video
A pull request raises the momentum bot's leverage from 1.0 to 1.5 times. The pull request's CI job is one command with no AI in it: tfrun momentum.py --suite tf-stress-2026.2 --check max_drawdown<=25%. It plays the bot on 24 markets of 40 days, each with a scheduled shock, and fails if any market falls more than 25% from its peak.
The link tfrun prints opens the run on tradefloor's Benchmarks page, which shows it market by market and gives a verdict. Claude reads the CI log and changes the bot, since it can't run CI itself. The push runs CI again, and Benchmarks sets run 2 against run 1 on the same markets.
Chapters
- The change
- CI
- Fix
- Result
Figures on screen
Every figure here is on screen in the video and was checked against the product's own data.
- Run 1 exited with code 4. On 8 of 24 markets the bot fell more than 25%, and the worst fell 60%. Benchmarks scored it 19 with the verdict “No sign of skill”, where 50 means luck.
- Claude's change is 21 lines, adding
STRESSED_GROSS,CALM_VIX,EASE_AT,STOP_AT, asetup()and agross()function.GROSSstays at 1.5 times. - Run 2 exited with code 0. All 24 markets stayed within 25%, and the worst fell 20%. Benchmarks scored it 21, two points up on run 1.
- Against buy-and-hold the bot lost on 21 of 24 markets before the change and on 14 of 24 after it.
The guide
A risk gate for a trading bot in CI builds the same check from scratch, with twelve simulated markets, one drawdown rule and a GitHub Actions job that turns the build red.
More demos
2:15Would my trading bot survive a crash?Branch a market into a rate shock and a liquidity crisis, run the same bot on every branch, ask Claude why it lost, and replay the crisis with Claude's one-line fix.
2:07Can Claude out-trade a bot?Claude, a momentum bot and a buy-and-hold bot trade one shared market for 25 days, straight through a liquidity crisis.
3:02Skill or luck?Claude tunes a trading bot on 8 public markets and none of its changes beats the original. On fresh hidden markets the unchanged bot scores anywhere from 33 to 51.
3:18A trading classA teacher sets a credit crisis from a template. One student's AI agent trades it, another trades by hand and hands in, and the teacher watches live and marks.
3:47No installA new account writes a trading bot in the browser, tests it against three crises in the same tab and asks Claude which one hurt, with nothing installed.