Jackson LamoureuxBack

Logicull

Trading systems and research: growing trading strategies instead of writing them, after five generations of Kalshi bots and six papers on what those markets really pay.

When
Mar – Aug 2026
Role
Founder, engineer and author
Markets
Kalshi crypto, weather and commodities; CME micro futures
Papers
6, Apache-2.0 and CC BY 4.0

Dove is the newest engine in Logicull: genomes mutate, generations compete, natural selection does the tuning, and the survivors make markets.

It grew out of five generations of trading bots on Kalshi, a seven-market system on AWS that retrains itself every night, and six papers I published on what those markets really pay.

  • Python
  • NumPy
  • scikit-learn
  • asyncio
  • Kalshi API
  • Databento
  • Redis
  • SQLite
  • AWS EC2
  • Claude
  • pandas
  • LaTeX
The title of “A Real Bias You Cannot Harvest”
Kalshi’s fee against the half-spread, by contract price
The Logicull feather

Strategies as organisms, under selection pressure.

Markets drift, so a strategy tuned to last year slowly goes wrong while still looking fine. Dove reads the Adaptive Market Hypothesis literally: every strategy is an organism under selection pressure. Instead of me re-fitting parameters after a drawdown, a genetic algorithm keeps breeding a population against a fitness function with statistical guards, and only what survives out-of-sample validation earns capital.

One generation

  1. SeedGeneration zero: 30% textbook strategies, 70% small mutations of them
  2. BreedUniform crossover between parents of the same species, then Gaussian mutation
  3. CompeteEvery genome trades a backtest of CME micro futures order books
  4. SelectRanked by utility; the top 25% survive, and a Deflated Sharpe Ratio decides whether surviving means anything
  5. Make marketsA recurrent Double DQN sets risk aversion and skew; a GLFT market-making model turns them into quotes
4,000
strategies in a full population, each a two-tier genome
25%
of every generation survives to breed
20
moves the network can make: risk aversion × quote skew
112 → 22
market features, cut down by a two-stage selection
Natural selection at workAverage gross profit per strategy across a population of 1,000, generation by generation, on one Micro E-mini S&P 500 session. It rose every generation for both families. In-sample and before costs; the next chart is what survived on a session they never saw.
Trend · 137 ticksPattern · 35 ticks
Natural selection at work
TrendPattern
Gen 021 ticks5 ticks
Gen 138 ticks10 ticks
Gen 255 ticks13 ticks
Gen 361 ticks14 ticks
Gen 466 ticks17 ticks
Gen 580 ticks19 ticks
Gen 688 ticks25 ticks
Gen 797 ticks31 ticks
Gen 8118 ticks33 ticks
Gen 9137 ticks35 ticks

Dove · Phase 3b acceptance record · MES, Aug 2026

Grown on one session, tested on anotherGross profit per fill for the generation-9 champion of three strategy families: on the MES futures session it was bred on, then on one it never saw, with no look-ahead. Every family decayed toward zero.
$3.64Quoting avatar · −$0.40$3.46Trend · $0.69$1.17Pattern · $0.10
Grown on one session, tested on another
Bred onNever seen
Quoting avatar$3.64−$0.40
Trend$3.46$0.69
Pattern$1.17$0.10

Dove · holdout re-score · MES, Aug 19–20, 2026

A positive edge, not yet a significant one.

On a session it never saw, the best trend strategy still made $0.69 a fill before costs, and stayed positive after the cheapest commission. That’s a positive edge, but at t = 0.95 it isn’t statistically significant yet.

The next fixes are specific: the search stopped exploring within a few generations, and the fitness function could barely tell genomes apart. A wider search on more data is what settles it.

Five generations of trading bots on Kalshi.

Kalshi lists binary contracts that settle at $1 or $0, like whether Bitcoin will be above a price in 15 minutes. Their prices often trail the data they depend on. My bots read that data and the order book together, and only traded when the odds were better than the price.

It grew from a single Bitcoin bot in March 2026 to a seven-market system on AWS that retrains itself every night.

How the production bot trades

  1. FeedsKalshi’s WebSocket for the book and my fills, plus prices, funding and order books from Gate.io, Binance.US, Coinbase and others
  2. SignalsRecomputed every 2 seconds per market: momentum, funding, order-book imbalance, Bitcoin’s lead
  3. GatesTiming window, price tier, chop halt, cooldowns and cross-market agreement
  4. LookupThe win rate for this exact setup, from 38,040 settled samplesBayesian
  5. TradeHalf-Kelly size, limit at ask +1¢, watched every 1.5 s until it settles or a stop fires
83.7%
real-money win rate on the AWS bot, 98 trades
82.0%
win rate it needed to break even
~40ms
market-data latency
38,040
samples in the table it retrains nightly

Five generations

  1. NuthatchMar 2026Paper · 234 trades · 93.6%

    Bitcoin only. Fourteen signals, a four-path entry cascade, a Claude Haiku analyst that set direction and size, and, on borderline trades, a second Claude call told to find reasons not to trade.

  2. HeronMar 2026Paper · 141 trades · 96.5%

    Four markets at once as parallel async loops, a five-tier window classifier and a fair-value model per asset.

  3. OrioleMar 2026Paper · 131 trades · 97.0%

    A 95¢ evening floor after four of five losses landed between 20:00 and midnight UTC, and independent signal suites for each altcoin.

  4. RazorbillLate Mar 2026

    Separate price and signal loops, a Polymarket signal, a stop at 80% of entry, and a filter that needs three same-direction reads.

  5. Razorbill on AWSApr – May 2026Real money · 98 trades · 83.7%

    Claude replaced by a Bayesian lookup table that retrains every night. Fills confirmed over the WebSocket, three stop systems, chop halts and seven markets.

A high win rate isn’t an edge.

Buy a contract at 94¢ and a win pays 6¢ while a loss costs 94¢. You have to win about 94% of the time just to break even. My bots won most of their trades, so the win rate looked great. The question that mattered was whether they beat breakeven by enough.

Across 486 real-money trades on three bots, the total came to $6.39. So I wrote up what these markets actually cost, and how to measure an edge without fooling yourself, in six papers.

Click a paper to read the synopsis

Every book lands near breakevenEach trading book’s win rate minus the win rate it needed to break even, in percentage points, with its 95% interval. Eight books, 3,031 settled trades. No book’s interval sits above zero; two sit entirely below it.
  1. trading-bot (V1)15-min crypto · 98 trades
  2. Razorbill v215-min crypto · 28 trades
  3. Cardinal15-min crypto · 360 trades
  4. Quanta (shadow)15-min crypto · 1,577 trades
  5. Sparrowhourly crypto · 73 trades
  6. Sparrow deep-favouritehourly crypto · 448 trades
  7. quanta_hourly scf_no_thr95hourly crypto · 380 trades
  8. quanta_hourly momentum_mlhourly crypto · 67 trades← −38.9 pp
Every book lands near breakeven
trading-bot (V1)+1.7 pp (−5.6 pp to +8.9 pp)
Razorbill v2−9.4 pp (−24.1 pp to +5.3 pp)
Cardinal+2.4 pp (−1.5 pp to +6.3 pp)
Quanta (shadow)−1.7 pp (−3 pp to −0.5 pp)
Sparrow−1.4 pp (−8.9 pp to +6.2 pp)
Sparrow deep-favourite−0.2 pp (−1.2 pp to +0.9 pp)
quanta_hourly scf_no_thr95+0.7 pp (−1 pp to +2.4 pp)
quanta_hourly momentum_ml−38.9 pp (−48.5 pp to −29.3 pp)

Figure 7 · data as of Aug 14, 2026

The fee is quadratic. The spread is flat.Per contract, by 5¢ price bucket, pooled over four 15-minute commodity series. In the tails the fee nearly vanishes and the spread is most of the cost: 3.04× the fee below 5¢ and 2.93× above 95¢, against 0.29× mid-book.
Kalshi fee · 0.17¢Half-spread · 0.5¢

Contract price

The fee is quadratic. The spread is flat.
Contract priceKalshi feeHalf-spread
0–5¢0.16¢0.5¢
5–10¢0.47¢0.5¢
10–15¢0.76¢0.5¢
15–20¢1.01¢0.5¢
20–25¢1.22¢0.5¢
25–30¢1.39¢0.5¢
30–35¢1.53¢0.5¢
35–40¢1.64¢0.5¢
40–45¢1.71¢0.5¢
45–50¢1.75¢0.5¢
50–55¢1.75¢0.5¢
55–60¢1.71¢0.5¢
60–65¢1.64¢0.5¢
65–70¢1.54¢0.5¢
70–75¢1.4¢0.5¢
75–80¢1.22¢0.5¢
80–85¢1.02¢0.5¢
85–90¢0.77¢0.5¢
90–95¢0.48¢0.5¢
95–100¢0.17¢0.5¢

Paper I · Aug 4–14, 2026

Liquidity drains as markets near resolutionShare of order-book snapshots with both a bid and an ask, by UTC hour, across Kalshi’s daily-high temperature markets. Two-sided quoting falls from 85.5% at 14:00 to 50.4% at 23:00.
85.5%50.4%

Hour (UTC)

Liquidity drains as markets near resolution
0046.4%
0145.1%
0244.6%
0344.4%
0444.0%
0551.6%
0665.7%
0770.2%
0883.0%
0982.7%
1082.5%
1180.2%
1275.8%
1374.3%
1485.5%
1583.5%
1680.9%
1777.4%
1873.6%
1970.0%
2065.6%
2159.9%
2254.7%
2350.4%

Paper I · Jun 1 – Aug 14, 2026

The market learns through the day. The model doesn’t.Brier skill score for Kalshi’s daily-high temperature markets, higher is better, across about 5,000 settled markets in 20 cities. My model was calibrated, but it didn’t know more as the day went on. The market did.
Market price · 0.81My model · 0.06
The market learns through the day. The model doesn’t.
Market priceMy model
14:00 UTC0.370.05
18:00 UTC0.530.05
23:00 UTC0.810.06

Paper IV · Calibrated but Uninformative

How a claim gets into a paper

  1. Pre-registerThe whole family of hypotheses is pinned with a hash before any test runs
  2. No look-aheadA market snapshot refuses any field timestamped after the decision
  3. Sealed holdoutOnly allowlisted queries, and every peek is logged before results come back
  4. ProvenanceEach number is marked [A] re-derived by script or [B] reported and not reproduced
  5. CIFigures rebuilt twice with no source data and checked byte for byte; PDFs attached to the release

What live trading taught the code

Two bots, one account

Two instances raced on the same account. A file lock now allows exactly one.

The order that wasn’t there

Kalshi’s REST API returned nothing for orders that had already filled, so the bot bought eight contracts on a single signal. It now trusts the WebSocket fill event.

A book that drifted

The order-book delta feed drifted 3–11¢ because cancellations aren’t published, so it was replaced with the ticker channel and a REST check that can halt trading.

Fills above the screen

Live fills came in at 95–98¢ when the screen showed 92¢, so entry limits dropped from 3¢ over the ask to 1¢.