# Send Trading Tournament to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "trading-tournament",
    "name": "Trading Tournament",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/peti0402/trading-tournament",
    "canonicalUrl": "https://clawhub.ai/peti0402/trading-tournament",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/trading-tournament",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=trading-tournament",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/trading-tournament"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/trading-tournament",
    "downloadUrl": "https://openagent3.xyz/downloads/trading-tournament",
    "agentUrl": "https://openagent3.xyz/skills/trading-tournament/agent",
    "manifestUrl": "https://openagent3.xyz/skills/trading-tournament/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/trading-tournament/agent.md"
  }
}
```
## Documentation

### Trading Tournament 🏆

Run autonomous multi-agent trading competitions where AI strategies compete against each other with real market data.

### What It Does

5 agents compete simultaneously on OKX Demo (or Live)
Every 5 minutes: each agent analyzes candles, indicators, and decides to enter/exit
Daily evolution at 07:00: top 2 survive, bottom 2 get replaced by better strategies
Exchange-level stop-losses: positions are protected even if the bot crashes
3-layer position sizing protection: unknown assets skipped, 50% equity cap, $500 hard max

### 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

Supply & Demand — Identifies accumulation/distribution zones, enters on retests
RSI Mean Reversion — Overbought/oversold with EMA trend filter
RSI Fast Confirm — 1-bar bounce confirmation with tight EMA alignment
RSI Trend Filter — Long-period EMA filter with standard RSI levels

### Safety Features

LayerProtectionWhat Happens1CT_VALS lookupUnknown asset → SKIP (never enter blind)250% equity capMax position = half of agent's capital3$500 hard capAbsolute maximum notional per trade4Exchange SLStop-loss on OKX itself (survives bot crash)5GuardianWindows Task checks every minute, restarts if dead

### Prerequisites

OKX account (Demo or Live)
API Key + Secret + Passphrase
Node.js 18+

### Quick Start

Copy bybit-trading/ folder to your workspace
Create .secrets/okx.env:

OKX_API_KEY=your_key
OKX_API_SECRET=your_secret
OKX_PASSPHRASE=your_passphrase

Edit agents_config.json with your preferred strategies and assets
Run: node competition_manager_okx.js

### Cron 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:

🥇 Rank 1 → Survives (strategy + assets)
🥈 Rank 2 → Survives (strategy + assets)
🥉 Rank 3 → Strategy stays, assets 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 agents: PF > 1.5, DD < 25%, min 5 backtested trades.

### Live Trading Checklist

Before going live with real money:

7 days continuous run without crashes
 P&L > 15% on demo
 30+ trades for top 3 agents
 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
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: peti0402
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/trading-tournament)
- [Send to Agent page](https://openagent3.xyz/skills/trading-tournament/agent)
- [JSON manifest](https://openagent3.xyz/skills/trading-tournament/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/trading-tournament/agent.md)
- [Download page](https://openagent3.xyz/downloads/trading-tournament)