Gen 65b · lab2 · version 2, running since 21 Oct 2026
How the long search works
A computer search for crypto trading rules that runs by itself for four weeks, built so that
it improves over time without fooling itself, and only looks for rules a real account could trade.
In short. The search keeps a grid of 192 kinds of trading rule and the best rule found so far in each.
It keeps making new rules by tweaking existing ones, and a new rule only replaces the champion of its own kind.
Every rule is run as a real account (a handful of coins, realistic costs, leverage capped at 2×) and scored by how it
does at its worst, across nudged settings, late trades and different years, on the profit known effects
don't explain.
Nineteen copies run on scrambled data to show what luck alone produces, and two hunt for an edge we planted
ourselves. Nothing it finds counts until it passes one look at data it has never seen.
Why not just rank rules by profit?
This project’s first search tried 14.5 million rules and ranked them by past profit. The top of that list was mostly
luck: the best-looking rules did worse than average afterwards. Ranking everything against everything rewards the
single luckiest idea, and a search that climbs toward it piles all its effort onto one fluke.
A leaderboard search ends up with many copies of the same lucky idea. MAP-Elites keeps a separate champion for each kind of rule, so it can only fill the grid by finding genuinely different rules.
The loop
The search is one loop, repeated hundreds of thousands of times. This is MAP-Elites: a method from robotics research
for finding many different good solutions rather than one.
One turn of the loop. Nothing is ever ranked against the whole field: a new rule only competes with the current champion of its own kind.
What a “rule” is
A rule is a small formula built from what a crypto trader can see each day: prices, highs and lows, volume, number of
trades, how much of the volume came from eager buyers, funding rates, and how long a coin has existed. Its output picks a
few coins to buy and a few to bet against, hedged so it can’t profit just because crypto goes up.
One rule, start to finish. The example is the edge we planted in the power-check worlds. Every rule has the same parts: a formula, how many coins it ranks (the 20, 50 or 100 most traded), how many it holds (3, 5 or 10 per side), which side it trades (both, buys only, or bets against only), a holding period (1–21 days), and whether it keeps a holding until it drops well out of the top.
How a rule is scored
The score uses the Sharpe ratio: profit divided by how bumpy it was, per year. Above 1 is good; around 0 is nothing.
But one Sharpe from one run is easy to get lucky with, so each rule gets 28.
How a rule is scored (example numbers). It runs as found and with its settings nudged six ways (a 21-day window becomes 13 or 34 days, a 5-day hold becomes 3 or 8, 50 coins becomes 20 or 100). Three of the nudged runs (⧗) trade a day late. Each run is split into four periods of 2020–24. Each number is the profit left after the market, bitcoin and 12 known effects are taken out, as a Sharpe ratio. The score is the 25th percentile of the 28: +0.50 here, against an average of +0.85. A rule that only works at one exact setting, in one period, or with perfect timing cannot score well.
The nudged settings are fixed for each rule, so re-running a rule can’t re-roll it into a lucky score. Costs rise as
coins get thinner (0.04% for the biggest, up to 0.30%), plus the price impact of a $100k account’s trades. A coin can
only be bet against on days it actually could be, each bet against a coin earns or pays its real daily funding, and a
delisted coin costs its holders half its value. Holdings drift between trades, so a bet against a coin that triples
becomes three times bigger, as it would for real.
The grid of boxes
The boxes are what make it explore. A rule that trades daily on volume doesn’t compete with a rule that trades monthly
on prices; each kind gets its own champion. That forces the search to keep looking for different ideas instead of
polishing one.
The grid. Each box is a kind of rule, sorted by things we can measure: how much it trades (as a multiple of its size, a year; above 500× it is too costly for a retail account and is thrown out) and how much its day-to-day profits move with effects we already know. Only the two left columns, rules unlike anything known, can count as a discovery.
Racing against luck
Any search this big will find rules that look good by chance. The question is whether the real data gives it
more than chance does, so we measure chance directly.
The controls. Nineteen copies search scrambled worlds, where any rule that looks good is luck, so the real search must beat all nineteen (one chance in twenty by luck). Two more search worlds with an edge we planted: if they can’t find it, a blank result for the real search would mean little.
From “found” to “real”
Everything the search does uses only 2020–2024. The years 2025–26 are locked away until scoring day.
What happens to anything it finds. Each step can only remove candidates, and each rule gets one look at data it hasn’t seen. Watching the live page doesn’t affect any of this: it only shows 2020–24 numbers.
Watch it
The live page shows the real search against the band of scrambled copies, the grid, and any
candidate rules written out in words: j4red.net/lab2/search.
It’s also in the site menu under Research → The Long Search.
Why there is a version 2
Hours after the first version started, we audited it line by line and found 13 ways it could have reported a rule that
doesn’t really work. Among them: stablecoins in the coin list, real price explosions hidden from short sellers, and a fake
bonus for betting against coins that were later delisted. It was stopped before it scored anything. The full list is in
the research blog (“we audited our own search”).
Code: lab2/mapelites2.py · registration: lab2/families/gen65b.md · scoring 19 Nov 2026