AI Agents Overview
Status: Verified against code Last Updated: 2025-12-11
What This Section Covers
The TTG algorithm uses a multi-agent AI system where specialized agents analyze different aspects of a trade, then a supervisor synthesizes their opinions into a final decision.
System Architecture
The system consists of 5 agents working together:
| Agent | Type | Role | What It Does |
|---|---|---|---|
| MIKE Agent | Orchestrator | Coordinator | Orchestrates the entire workflow, collects data, dispatches to specialists |
| Technical Agent | Specialist | Chart Analyst | Price action, patterns, S/R levels, indicators |
| Macro Agent | Specialist | Big Picture | Market regime, cross-asset, economic data, news |
| Wild Card Agent | Specialist | Risk Watchdog | External events, timing risks, contingencies |
| Supervisor Agent | Specialist | Final Decision | Synthesizes all verdicts, picks options contracts |
MIKE Agent (Orchestrator)
MIKE is the Multi-Agent Trading Intelligence Orchestrator. It doesn't analyze markets — it coordinates the other agents.
What MIKE does:
- Receives user request (ticker, asset type, trade style, account size, risk %)
- Calls Data Collection Service to gather market data
- Dispatches Technical, Macro, and Wild Card agents in parallel
- Passes all verdicts to Supervisor for final synthesis
- Returns complete trade plan
How They Work Together
User Request (ticker, style, account size, risk %)
│
▼
┌─────────────────────┐
│ MIKE Agent │
│ (Orchestrator) │
└─────────────────────┘
│
▼
Data Collection Service
│
┌───────────┼───────────┐
▼ ▼ ▼
Technical Macro Wild Card
Agent Agent Agent
(parallel) (parallel) (parallel)
│ │ │
└───────────┴───────────┘
│
▼
┌─────────────────────┐
│ Supervisor Agent │
│ (Final Decision) │
└─────────────────────┘
│
▼
Trade Plan Output
Key Principles
1. Parallel Execution
The Technical, Macro, and Wild Card agents run simultaneously (not sequentially). This speeds up analysis.
2. Independence
Each agent forms its own opinion without knowing what the others think. This prevents groupthink.
- Technical Agent only sees price/indicator data
- Macro Agent only sees market context/news
- Wild Card Agent only sees risk scenarios
3. Conflict Resolution
When agents disagree, Technical Agent wins because it has actual price data.
Rule: When agents conflict, go with the Technical Agent (it has actual price action).
4. Default to Trade
The system is biased toward trading:
"YOU ARE A TRADER. TRADERS TRADE. Default action is TO TRADE."
Trade or No-Trade Rules
ALWAYS TRADE when:
- Both Technical and Macro agree (MANDATORY)
- ONE agent is directional with >50% confidence
- BOTH agents have ANY directional opinion (trade the stronger one)
NO TRADE only when:
- BOTH agents say "neutral" with <40% confidence EACH
- Market is completely closed (weekend only)
- Critical system error or all data missing
Data Flow
┌──────────────────┐
│ User Request │
│ ticker, style, │
│ account, risk % │
└────────┬─────────┘
│
▼
┌──────────────────┐
│ Data Collection │
│ Service │──────────────────────────────┐
│ │ │
│ - Snapshots │ │
│ - Historical bars│ │
│ - Indicators │ │
│ - Options chain │ │
│ - News │ │
│ - Economic data │ │
│ - International │ │
└────────┬─────────┘ │
│ │
│ market_data │
│ │
▼ │
┌──────────────────┐ │
│ Technical Agent │───┐ │
│ direction, │ │ │
│ confidence, │ │ │
│ S/R levels │ │ │
└──────────────────┘ │ │
│ │
┌──────────────────┐ │ │
│ Macro Agent │───┼─► Supervisor Agent ◄─────┘
│ market_regime, │ │ (receives full │
│ news_sentiment │ │ market_data for │
└──────────────────┘ │ options selection) │
│ │
┌──────────────────┐ │ │
│ Wild Card Agent │───┘ │
│ risks, │ │
│ contingencies │ │
└──────────────────┘ │
│
▼ │
┌──────────────────┐ │
│ Trade Plan │ │
│ - Direction │ │
│ - Entry zone │ │
│ - Position size │ │
│ - Stop/targets │ │
│ - Contract (opts)│ │
│ - Wild cards │ │
└──────────────────┘
LLM Configuration
All agents use the same LLM configuration:
- Model: Gemini 3 Pro
- Temperature: 1.0
- Max output tokens: 400,000
Provider/gateway routing details are intentionally not documented here.
Core Components
Agents:
- MIKE Agent (Orchestrator) — Coordinates the workflow and dispatches to specialists
- Technical Agent — Price action, patterns, S/R levels, indicators (when available)
- Macro Agent — Market regime, cross-asset context, economic/news impact
- Wild Card Agent — External event/timing risks, contingencies
- Supervisor Agent — Synthesizes verdicts into the final plan (and selects options contracts)
Supporting services:
- Market data collection — Gathers snapshot/bars/chain/news inputs
- Trade style configuration — Controls lookbacks, bars-to-AI, and indicator windows