
I built a multi ai trading agent that writes a thesis before every trade, argues with itself during the trade, and grades itself when it's over
Most bots fire signals based on a crossing of lines or a threshold hit. They don't know *why* they entered — they just did.
I took a different approach. Every trade starts with a written thesis from the AI agent:
> *"MARKET CONTEXT: BIP-20DEC30-CDE is trading at $68,700 in clear price discovery above Macro POC ($63,994.60); 6H Macro Tide (+575,192.53) and 1H Macro Trend (+501,316.74) demonstrate dominant institutional spot and futures buyer aggression; order book reflects sustained bullish asymmetry (3,362 immediate / 39,404 deep bids vs 2,658 / 25,213 asks) reinforced by primary bid wall at $68,550 (3,034 contracts); Open Interest is expanding robustly at 220,248 with balanced 8.76% annualized funding.
| ALPHA THESIS: Uncontested multi-timeframe CVD momentum combined with thick passive bid absorption provides high-velocity continuation setup; executing momentum market buy with 2.5x 1H ATR ($523.93) downside insulation and targeting 4.5x 1H ATR expansion into overhead liquidity voids.
| EXIT CONDITIONS: Hard invalidation stop at $67,390.17; take profit target at $71,057.69 (R:R 1.80:1); trailing stop tripwire activated upon +0.8% advance with 0.25% trail step."*
That thesis is attached to the trade. It's not just a log entry — it's the framework WATCHDOG uses to manage the position.
**Here's what happens while the trade is open:**
The AI that manages risk (WATCHDOG) reads the original thesis and checks: *"Is the market still behaving the way the thesis predicted?"*
Gemini 3.7 Flash analyzing current open trade and thesis
If BTC drops but the macro structure is intact → WATCHDOG holds position.
Active trade that the agent decides to HOLD
If the regime flips from expansion to distribution → WATCHDOG exits regardless of price.
**When the trade closes:**
The system runs an autopsy. Did the thesis predict correctly? Was the lesson learned worth remembering? The result gets scored across 6 factors — recency, PnL impact, regime match, and crucially, a **+50% loss bonus** so bad trades are weighted heavier in memory.
Post Mortem after every closed trade dissected and saved to core memory on next signal
**The loop:**
Signal → AI writes thesis → Trade executes with thesis →
WATCHDOG manages against thesis → Trade closes →
Autopsy grades thesis → Core memory stores lesson →
Next signal: AI reads past lessons before writing new thesis
| Feature | Most bots | This system |
| Entry reason | Lines crossed | Written thesis from AI |
| Trade management | Hard TP/SL | Thesis-aware risk management |
| Post-trade | Nothing | Autopsy + scored memory |
| Next trade | Same as last | Informed by past lessons |
Most platforms do ONE piece of this. This does the whole loop.