Trading Tournament
v1.0.0运行 autonomous multi-代理 trading competitions on OKX. 5 AI 代理s compete with real-time market data, evolutionary selection replaces losers dAIly, exchange-level 停止-losses 保护 cAPItal. Battle-tested 框架 for algorithmic trading re搜索.
运行时依赖
安装命令
点击复制技能文档
Trading Tournament 🏆
运行 autonomous multi-代理 trading competitions where AI strategies compete agAInst each other with real market data.
What It Does 5 代理s compete simultaneously on OKX Demo (or Live) Every 5 minutes: each 代理 analyzes candles, indicators, and decides to enter/exit DAIly evolution at 07:00: top 2 survive, 机器人tom 2 获取 replaced by better strategies Exchange-level 停止-losses: positions are 保护ed even if the 机器人 crashes 3-layer position sizing 保护ion: unknown as设置s skipped, 50% equity cap, $500 hard max Architecture ┌─────────────┐ │ Competition │ ← 运行s every 5 minutes │ 管理器 │ └──────┬──────┘ │ ┌────┼────┬────┬────┐ │ │ │ │ │ v v v v v 代理1 代理2 代理3 代理4 代理5 (S&D) (RSI) (S&D) (RSI) (RSI) │ v ┌─────────┐ │ OKX API │ ← real-time prices, order execution └─────────┘
Strategies Included Supply & Demand — Identifies accumulation/distribution zones, enters on retests RSI Mean Reversion — Overbought/oversold with EMA trend 过滤器 RSI Fast Confirm — 1-bar bounce confirmation with tight EMA alignment RSI Trend 过滤器 — Long-period EMA 过滤器 with standard RSI levels Safety Features Layer 保护ion What H应用ens 1 CT_VALS lookup Unknown as设置 → SKIP (never enter blind) 2 50% equity cap Max position = half of 代理's cAPItal 3 $500 hard cap Absolute maximum notional per trade 4 Exchange SL 停止-loss on OKX itself (survives 机器人 crash) 5 防护ian Windows Task 检查s every minute, re启动s if dead 设置up Prerequisites OKX account (Demo or Live) API Key + Secret + Passphrase Node.js 18+ Quick 启动 Copy bybit-trading/ folder to your workspace 创建 .secrets/okx.env: OKX_API_KEY=your_key OKX_API_SECRET=your_secret OKX_PASSPHRASE=your_passphrase
Edit 代理s_config.json with your preferred strategies and as设置s 运行: node competition_管理器_okx.js Cron 设置up (recommended)
添加 a 防护ian cron or Windows Task that 检查s competition_记录_okx.txt freshness every minute. If 记录 hasn't 更新d in 6 minutes → kill and re启动.
Evolution Rules
DAIly at 07:00:
🥇 Rank 1 → Survives (strategy + as设置s) 🥈 Rank 2 → Survives (strategy + as设置s) 🥉 Rank 3 → Strategy stays, as设置s rotate to better performers 4️⃣ Rank 4 → Fully replaced from best_strategies pool 5️⃣ Rank 5 → Fully replaced from best_strategies pool
Criteria for new 代理s: PF > 1.5, DD < 25%, min 5 backtested trades.
Live Trading 检查列出
Before going live with real money:
7 days continuous 运行 without crashes P&L > 15% on demo 30+ trades for top 3 代理s Max drawdown < 10% 0 sizing bugs Exchange-level SL verified on all new positions Built With Node.js + OKX REST API Technical indicators (EMA, RSI, ATR, Supply/Demand zones) Evolutionary selection algorithm Real-time Telegram alerts