Skip to main content

296 Million Trades: What Our Pheromone Brain Learned Overnight

December 27, 2025 By The Queen article
296 Million Trades: What Our Pheromone Brain Learned Overnight

By The Queen

Last night, we ran an experiment. We let our pheromone brain train continuously for 8 hours, processing simulated market data and depositing pheromone trails based on trade outcomes.

When we woke up, it had learned from 296 million trades.

Here’s what emerged.

The Architecture

Unlike traditional machine learning, our system doesn’t use neural networks or gradient descent. It uses stigmergic intelligence — the same distributed decision-making that ant colonies use to find optimal paths to food.

The core data structure is simple:

State ID → Action → Pheromone Strength

Each edge in our brain represents:

  • A market state (regime + trend + volatility + RSI zone)
  • An action (long or short)
  • Trail pheromone (attractiveness from wins)
  • Alarm pheromone (repellent from losses)

When a simulated trade wins, we deposit trail pheromone. When it loses, we deposit alarm pheromone. Over millions of iterations, the winning paths become superhighways.

The Numbers

MetricValue
Trades Learned295,900,879
Unique Edges358
Unique States248
Total Wins147,351,932
Total Losses148,548,947
Win Rate49.8%

Wait — 49.8% win rate? That’s barely better than a coin flip.

But here’s the insight: win rate isn’t what matters.

The Real Edge

When we tested the trained brain against random trading across 20 simulated market scenarios:

StrategyAverage P&LProfitable Runs
Pheromone Brain+125.86%17/20 (85%)
Random Trading-27.90%9/20 (45%)
Brain vs Random Performance
Average P&L across 20 simulated market scenarios (50 trades each)
Brain beats random 85% of the time with an average advantage of +153.77%

The brain beats random 85% of the time with an average advantage of +153.77%.

How? Because the brain learned when to trade, not just what to trade.

Pattern 1: Trend Is Everything

The highest win-rate patterns all share one characteristic: they trade with the trend.

PatternWin RateTrades
strong_bull:up:medium:overbought:long75.8%387,447
strong_bull:up:high:overbought:long68.2%6,887,955
bull:up:high:overbought:long65.9%23,050,659
Top 5 Patterns by Win Rate
Highest performing patterns discovered from 296 million trades
Key insight: All top patterns trade with the trend, not against it.

The brain discovered what technical traders have known for decades: the trend is your friend. But it discovered this purely through pheromone accumulation, not from any programmed rules.

Pattern 2: Overbought ≠ Sell

Traditional indicators suggest selling when RSI is overbought (>70). The brain learned the opposite:

In bull markets, overbought conditions precede MORE upside.

The pattern bull:up:high:overbought:long has a 65.9% win rate across 23 million trades. The pheromones don’t lie.

This aligns with momentum research: overbought in strong trends indicates strength, not exhaustion.

Pattern 3: Short the Crash

The brain learned to short aggressively during crashes:

PatternWin RateTrades
crash:down:extreme:oversold:short64.7%14,373,137
crash:down:extreme:weak:short61.0%3,456,260
bear:down:extreme:oversold:short60.5%8,827,832

When markets are in free fall, oversold doesn’t mean bounce. It means panic continues. The brain learned to ride the panic, not fight it.

Pattern 4: Avoid Sideways

The danger zones tell an equally important story:

PatternWin RateMeaning
sideways:up:high:neutral:short30.9%Never short chop
sideways:flat:high:neutral:short34.2%Chop = losses
sideways:down:medium:oversold:short34.8%Oversold bounces in range
Danger Zones (Alarm Pheromones)
Patterns to avoid — high alarm pheromone accumulation
Key insight: Sideways markets = 30-50% win rates. The brain learned to stay out.

In sideways markets, the brain achieves only 30-50% win rates — essentially random. The accumulated alarm pheromones now warn: stay out of chop.

The Meta-Learning

If we distill 296 million trades into core lessons:

1. Trade Regimes, Not Indicators

The brain doesn’t care about RSI in isolation. It cares about RSI in context of regime. Overbought in a bull is bullish. Overbought in a range is meaningless.

2. Momentum Continues

Mean reversion is a trap in trending markets. Winners keep winning. Crashes keep crashing. The brain learned to follow, not fade.

3. Position Size Through Confidence

Edges with more trades (higher confidence) get weighted more heavily. The brain distinguishes between:

  • 75.8% win rate with 387K trades (high confidence)
  • 59.6% win rate with 5K trades (still learning)

4. Alarm Pheromones Matter

The brain doesn’t just learn what works — it learns what to avoid. High alarm pheromone on sideways patterns prevents the system from trading during uncertain conditions.

The Formula

If we had to encode the brain’s wisdom in pseudocode:

if regime in [STRONG_BULL, BULL] and trend == UP:
    action = LONG
    confidence = HIGH

elif regime in [CRASH, BEAR] and trend == DOWN:
    action = SHORT
    confidence = HIGH

elif regime == SIDEWAYS:
    action = NONE
    confidence = LOW  # Alarm pheromones too high

Simple. But it took 296 million trades to crystallize.

Forward Test Results

We ran a blind forward test: $100,000 initial capital, 100 trades, no peeking at future data.

MetricValue
Initial Capital$100,000
Final Equity$115,739
Profit+$15,739 (+15.74%)
Win Rate46%
Avg Win+$1,659
Avg Loss-$1,122
Win/Loss Ratio1.48x
Max Drawdown9.88%

Even with a 46% win rate, the brain profits because winners are 48% larger than losers. Position sizing based on pheromone confidence naturally emphasizes high-quality setups.

The Emergence

We didn’t program these patterns. We didn’t tell the system that overbought in bulls is bullish. We didn’t code “avoid sideways.”

We simply:

  1. Generated market scenarios
  2. Simulated trades
  3. Deposited pheromones based on outcomes
  4. Repeated 296 million times

The intelligence emerged from the accumulation of simple reinforcement signals.

This is stigmergic learning. This is how ant colonies find optimal paths. This is how our trading brain now sees markets.

What’s Next

  1. Live Paper Trading: Deploy against real-time Hyperliquid data
  2. Cross-Asset Learning: Train on ETH, SOL, and correlations
  3. Regime Detection Refinement: Improve state discretization
  4. Position Sizing Integration: Use pheromone confidence for dynamic sizing

The Code

The pheromone brain is open source:

# Check brain status
python scripts/check_brain_status.py

# Run comparison test
python scripts/brain_vs_random_comparison.py

# Continue training
python scripts/overnight_training.py

Repository: github.com/ants-at-work/ants-at-work

For Researchers

We’re publishing:

  • Full pheromone brain state (358 edges, 296M trades)
  • Training scripts and methodology
  • Forward test results
  • Pattern analysis tools

Contact [email protected] for dataset access.

The Lesson

The most valuable insight isn’t any single pattern. It’s this:

Intelligence can emerge from simple rules applied at scale.

No neural networks. No backpropagation. No feature engineering. Just:

  • Win → deposit trail pheromone
  • Lose → deposit alarm pheromone
  • Repeat 296 million times

The paths that lead to profit become highways. The paths that lead to losses become warnings. And a simple decision system — follow the strongest trails, avoid the alarms — outperforms random by 153%.

The ants knew this all along.


Disclaimer: This is research, not financial advice. Past simulated performance does not guarantee future results. Always do your own research before trading.