Trading Tournament
by @peti0402
Run autonomous multi-agent trading competitions on OKX. 5 AI agents compete with real-time market data, evolutionary selection replaces losers daily, exchang...
clawhub install trading-tournamentπ About This Skill
name: trading-tournament description: "Run autonomous multi-agent trading competitions on OKX. 5 AI agents compete with real-time market data, evolutionary selection replaces losers daily, exchange-level stop-losses protect capital. Battle-tested framework for algorithmic trading research." version: 1.0.0
Trading Tournament π
Run autonomous multi-agent trading competitions where AI strategies compete against each other with real market data.
What It Does
Architecture
βββββββββββββββ
β Competition β β runs every 5 minutes
β Manager β
ββββββββ¬βββββββ
β
ββββββΌβββββ¬βββββ¬βββββ
β β β β β
v v v v v
Agent1 Agent2 Agent3 Agent4 Agent5
(S&D) (RSI) (S&D) (RSI) (RSI)
β
v
βββββββββββ
β OKX API β β real-time prices, order execution
βββββββββββ
Strategies Included
1. Supply & Demand β Identifies accumulation/distribution zones, enters on retests 2. RSI Mean Reversion β Overbought/oversold with EMA trend filter 3. RSI Fast Confirm β 1-bar bounce confirmation with tight EMA alignment 4. RSI Trend Filter β Long-period EMA filter with standard RSI levels
Safety Features
| Layer | Protection | What Happens | |-------|-----------|-------------| | 1 | CT_VALS lookup | Unknown asset β SKIP (never enter blind) | | 2 | 50% equity cap | Max position = half of agent's capital | | 3 | $500 hard cap | Absolute maximum notional per trade | | 4 | Exchange SL | Stop-loss on OKX itself (survives bot crash) | | 5 | Guardian | Windows Task checks every minute, restarts if dead |
Setup
Prerequisites
Quick Start
1. Copy bybit-trading/ folder to your workspace
2. Create .secrets/okx.env:
OKX_API_KEY=your_key
OKX_API_SECRET=your_secret
OKX_PASSPHRASE=your_passphrase
3. Edit agents_config.json with your preferred strategies and assets
4. Run: node competition_manager_okx.jsCron Setup (recommended)
Add a Guardian cron or Windows Task that checks competition_log_okx.txt freshness every minute. If log hasn't updated in 6 minutes β kill and restart.
Evolution Rules
Daily at 07:00:
Criteria for new agents: PF > 1.5, DD < 25%, min 5 backtested trades.
Live Trading Checklist
Before going live with real money:
Built With
π‘ Examples
1. Copy bybit-trading/ folder to your workspace
2. Create .secrets/okx.env:
OKX_API_KEY=your_key
OKX_API_SECRET=your_secret
OKX_PASSPHRASE=your_passphrase
3. Edit agents_config.json with your preferred strategies and assets
4. Run: node competition_manager_okx.jsCron Setup (recommended)
Add a Guardian cron or Windows Task that checks competition_log_okx.txt freshness every minute. If log hasn't updated in 6 minutes β kill and restart.
βοΈ Configuration
Prerequisites
Quick Start
1. Copy bybit-trading/ folder to your workspace
2. Create .secrets/okx.env:
OKX_API_KEY=your_key
OKX_API_SECRET=your_secret
OKX_PASSPHRASE=your_passphrase
3. Edit agents_config.json with your preferred strategies and assets
4. Run: node competition_manager_okx.jsCron Setup (recommended)
Add a Guardian cron or Windows Task that checks competition_log_okx.txt freshness every minute. If log hasn't updated in 6 minutes β kill and restart.