# Send Crypto Backtest 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": "crypto-backtest",
    "name": "Crypto Backtest",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Sunnyztj/crypto-backtest",
    "canonicalUrl": "https://clawhub.ai/Sunnyztj/crypto-backtest",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/crypto-backtest",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=crypto-backtest",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/custom_strategy.md",
      "references/strategy_notes.md",
      "scripts/backtest_engine.py",
      "scripts/sweep.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "crypto-backtest",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-02T05:40:37.652Z",
      "expiresAt": "2026-05-09T05:40:37.652Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=crypto-backtest",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=crypto-backtest",
        "contentDisposition": "attachment; filename=\"crypto-backtest-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "crypto-backtest"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/crypto-backtest"
    },
    "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/crypto-backtest",
    "downloadUrl": "https://openagent3.xyz/downloads/crypto-backtest",
    "agentUrl": "https://openagent3.xyz/skills/crypto-backtest/agent",
    "manifestUrl": "https://openagent3.xyz/skills/crypto-backtest/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/crypto-backtest/agent.md"
  }
}
```
## Documentation

### Crypto Backtest Engine

Fast, scriptable backtesting for crypto futures strategies. Fetches data via ccxt, runs strategies, reports metrics.

### Quick Start

pip install ccxt numpy
python scripts/backtest_engine.py --symbol ETH/USDT:USDT --strategy ema --fast 12 --slow 26

### Features

Multi-exchange: Any ccxt-supported exchange (Bybit, Binance, OKX, Bitget...)
Built-in strategies: EMA crossover, RSI, MACD, Bollinger Bands
Parameter sweep: Test all combinations automatically
Risk simulation: Configurable leverage, position size, SL/TP, fees
JSON export: Machine-readable results for pipeline integration
Custom strategies: Simple plug-in interface

### Single Strategy

python scripts/backtest_engine.py \\
  --symbol SOL/USDT:USDT \\
  --strategy rsi \\
  --period 14 --oversold 30 --overbought 70 \\
  --capital 1000 --leverage 5

### Parameter Sweep

python scripts/sweep.py \\
  --symbol ETH/USDT:USDT \\
  --strategies ema,rsi,macd,bbands \\
  --capital 1000 --leverage 5 \\
  --output results.json

### Custom Strategy

See references/custom_strategy.md for the plug-in interface.

### Output Metrics

Each backtest reports:

Total trades, win rate, profit factor
Total PnL (absolute + percentage)
Max drawdown
Best/worst trade
Final balance

### Files

scripts/backtest_engine.py — Core engine with EMA, RSI, MACD, Bollinger Bands
scripts/sweep.py — Multi-strategy parameter sweep runner
references/custom_strategy.md — Guide for adding custom strategies
references/strategy_notes.md — Notes on each built-in strategy's edge cases
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Sunnyztj
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-02T05:40:37.652Z
- Expires at: 2026-05-09T05:40:37.652Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/crypto-backtest)
- [Send to Agent page](https://openagent3.xyz/skills/crypto-backtest/agent)
- [JSON manifest](https://openagent3.xyz/skills/crypto-backtest/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/crypto-backtest/agent.md)
- [Download page](https://openagent3.xyz/downloads/crypto-backtest)