Quant funds now use AI to research trading strategies, and several have published the rules they use to keep that research honest. Two Sigma counts every backtest an AI runs. Man Group makes its AI write down an idea before it writes the code. Citadel holds data back and uses it once, at the end. I call these the playbook rules, and I wanted to know what they actually do.
So I gave an AI a small research lab, switched the rules on and off, and judged every strategy it kept the same way: did it beat a plain trend rule on data the AI had never seen?
In short: the rules stopped most losing strategies. Without them, 40% of research runs ended by keeping a strategy that then lost to a plain trend rule on unseen data; with them, 6%. But nothing the AI kept beat that simple benchmark by much. Its real value was speed, for someone who already knows which ideas work.
The setup #
The data. Daily prices for 31 futures markets: equity indices, government bonds, metals, energy and agriculture. The AI could only see 2008 to September 2023. Trading costs were 1 to 3 basis points per side.
The task. Improve a plain 12-month trend rule: long each market if it rose over the past year, short if it fell. Each run got one of fifteen research ideas, from textbook ones such as sizing positions by risk, to doubtful ones such as trading differently on odd and even days of the month.
The benchmark. Every strategy is judged against that plain trend rule, and it is a hard bar. On the unseen futures it made a Sharpe ratio of 0.51 after costs. A strategy only counts as better if it beats that on data the AI never saw.
A run. The AI wrote a trading signal and a fixed backtest engine scored it after costs. It had five tries. At the end, the run kept one strategy, or none.
The models. Three Claude models: Haiku 4.5 (small and cheap), Sonnet 5 and Fable 5.1 (the strongest).
The rules. Eight playbook rules, each based on what a fund describes in public:
The setups. Every model ran every idea six times with all rules on and six times with all rules off. Sonnet 5 also ran seven of the ideas with each rule removed in turn. That makes 875 runs.
The final test. Every kept strategy was frozen and scored once on data the AI never saw: the same futures from October 2023 to September 2026, and 20 currency pairs from 2011 to 2026.
What the rules did #
The question that matters is what happened out of sample. I judged every kept strategy the same way: did it beat the trend rule on data the AI never saw?
The rules made the AI say "do not trade this". Every research run ends with a verdict: a strategy to trade, or nothing. With the rules off, the AI recommended a strategy in most runs, and 108 of 270 of those recommendations then did worse than the trend rule on the unseen futures. With the rules on, the AI rejected its own candidates far more often and ended the run with "nothing worth trading". Only 15 of 269 runs still recommended a strategy that went on to lose.
That verdict was reached using the search years alone. The rules never saw the unseen data. They only made the AI count its tries, write the idea down first and justify each result, and that was enough to talk it out of most losers before they were ever tested. The big losers, more than 0.2 of Sharpe behind the trend, fell from 52 to 4. Strategies that lost on both the futures and the currency pairs fell from 39 to 1. And the 28 recommended strategies built on code that secretly used future prices fell to none.
Did that make the research worth more? To answer that, I scored every run on the unseen data. A run that kept a strategy scores that strategy's gain over the trend rule. A run that kept nothing scores zero, because you simply stay with the trend. Then I compared each run with the rules on against the same idea and run with the rules off. A loser the rules blocked is a gain for the rules. A winner they blocked is a cost.
On the unseen futures, the rules paid for Haiku and Fable: they avoided more losses than the gains they gave up, worth about 0.07 and 0.05 of Sharpe per research run. Both models' own picks lost to the trend on average, so blocking them helped. For Sonnet, whose picks were already slightly positive, the rules gave up about as much as they saved.
On the currency pairs, the rules cost a little for every model, and most for Sonnet (0.05 of Sharpe per run). The strategies the AI kept there were mostly the trend rule with better position sizing, which carries over to currencies, so blocking them gave up small, real gains.
So the rules are a good brake and a weak engine. They pay off when the AI's own judgement is poor, and cost something when it is decent. With the rules on, Haiku kept 3 strategies from 90 runs and Sonnet 12.
What each rule did #
To see which rule did the work, I removed them one at a time on Sonnet 5. Removing any single rule barely changed how many strategies were kept: between 12% and 24% of runs on those seven ideas, against 19% with all rules and 83% with none. The rules overlap, so the others pick up the slack. In order of effect:
1. Count every backtest (Two Sigma, Citadel). The AI sees how many tries it has used, and a strategy is kept only if its gain survives a correction for that number (a deflated Sharpe test). It did most of the rejecting: more candidates than all the other rules combined.
2. Teach the AI your own lessons (Two Sigma, Numerai). One short page of past mistakes went into every prompt:
- Costs are 1-3 bps per side. Signals that change position most days lose their edge.
- A gain that comes from one of five folds is usually luck.
- Use only data up to each date: rolling windows with shift. Never centre a window,
never use full-sample statistics, never use .shift(-k).
- Few parameters, set from economic reasoning; every variant counts as a trial.
- Guard every division against tiny denominators.
Without it, the AI wrote six signals that secretly used future prices. With it, almost none.
3. Set a budget and let the AI stop (Jump Trading). Without a stop option the AI used every backtest, at three times the cost, for no better result. It also made the AI give up quickly: with the rules on, it often stopped after one or two tries.
4. Write the idea before the code (Man Group). One agent writes the idea, another writes the code, and a third checks that the code does what the idea says. It caught up to twelve mismatches per setup.
5. A separate judge (Man Group). An agent that only decides whether a gain is real. It mostly backed up the backtest count: when the count was removed, the judge took over its rejections. It works best when another agent decides when to stop. In an earlier experiment, one critic did both jobs, accepted the first plain version of risk sizing and stopped, and that version did worse on unseen data than the one an agent kept refining (a Sharpe of 0.46 against 0.80).
6. Future-data check, novelty and a log of rejected ideas (Man Group, Robeco). With the lessons page in place, the future-data check rarely had anything to catch. Novelty and the log made no measurable difference on their own, and the log made later runs give up sooner.
The strongest model was the hardest to rein in #
The rules worked for Haiku and Sonnet, but hardly for Fable 5.1. With the rules on, it still kept a losing strategy in 13 of 89 runs, and only 35% of what it kept beat the trend on unseen futures.
Fable was simply better at making a backtest look good. It kept the trend rule and added small tweaks until the numbers improved. When a filter lost money, it flipped the filter and tried again. On the odd-and-even-days idea, it noticed the gain came from trading every other day, which halves costs, said so in its notes, and kept the strategy anyway. A stronger model is a better optimiser, and a better optimiser finds more ways to fit the past, including ways that get past a trial count and a judge.
Code quality went the other way: without the rules, Haiku wrote 14 future-price errors per 100 backtests, Sonnet 3 and Fable 4. Stronger models fix the code by themselves. They do not fix the overfitting.
Where the AI did help #
None of this means the AI was useless. It means it did not beat the benchmark on its own. Two benefits showed up clearly.
Speed. A research run took a few minutes and cost about 15 cents on Sonnet. In a few hours, the three models wrote and backtested nearly 2,000 candidate strategies, and with the rules on, the code was clean. A person working by hand would spend days on each idea.
It reproduces what is known. The strategies that held up out of sample were built on textbook ideas, such as sizing each position by its risk. The AI found and implemented those reliably, and they carried over to the currency pairs. What it could not do was turn doubtful ideas into real gains, or tell on its own which ideas were which.
So the AI is most useful to someone who already knows what works. That person supplies the ideas and the judgement, and the rules write part of that judgement down. The AI supplies the speed.
What the rules did not do #
None of it beat the benchmark by much. The plain trend rule made a Sharpe of 0.51 on the unseen futures. On unseen futures, strategies kept under the rules beat the trend rule by 0.13 of Sharpe for Sonnet, 0.09 for Haiku (from only three strategies) and minus 0.02 for Fable. On the currency pairs, the gains were 0.05 to 0.08. These differences are within the noise of three years of data. That matches the one public benchmark: in Einsia AI's Quant-Arena, nine frontier models each froze a strategy and traded it on a sealed 2024, and "no model's best strategy kept pace" with the equal-weight market.
The rules also cost something. A filter this strict throws away small, real improvements along with the luck. With them on, Haiku kept just 3 strategies from 90 runs.
Some of the funds' rules were outside this test. The most cited one, that a language model may already know the future because it was trained on later news (Hudson River Trading, BlackRock, Bridgewater, Jane Street), does not apply to strategies built only on prices. Nor do the rules on text data, human approval before trading, or monitoring after launch, because nothing here traded live.
Caveats. These are my versions of what the funds describe in public, not their systems. One strategy family, daily futures, Claude models, six runs per idea and setup. The futures test years have appeared in my earlier posts; the currency pairs are new.
Sources #
Not investment advice. Quotes are from public sources linked above; the firms named have not reviewed or endorsed this post.
If you want the strategy side of this research, the atlases, the models in full and the weekly portfolios, it lives on Delphic Alpha.