Agent Skillskrakenfx/kraken-cli › recipe-paper-strategy-backtest

recipe-paper-strategy-backtest

GitHub

指导在实盘前通过多次模拟交易验证策略一致性,评估胜率、盈亏比等指标,识别风险并优化参数,确保策略具备实盘可行性。

skills/recipe-paper-strategy-backtest/SKILL.md krakenfx/kraken-cli

Trigger Scenarios

需要验证新交易策略的稳定性 在实盘部署前进行模拟测试

Install

npx skills add krakenfx/kraken-cli --skill recipe-paper-strategy-backtest -g -y
More Options

Use without installing

npx skills use krakenfx/kraken-cli@recipe-paper-strategy-backtest

指定 Agent (Claude Code)

npx skills add krakenfx/kraken-cli --skill recipe-paper-strategy-backtest -a claude-code -g -y

安装 repo 全部 skill

npx skills add krakenfx/kraken-cli --all -g -y

预览 repo 内 skill

npx skills add krakenfx/kraken-cli --list

SKILL.md

Frontmatter
{
    "name": "recipe-paper-strategy-backtest",
    "version": "1.0.0",
    "metadata": {
        "openclaw": {
            "domain": "strategy",
            "category": "recipe"
        },
        "requires": {
            "bins": [
                "kraken"
            ],
            "skills": [
                "kraken-paper-strategy"
            ]
        }
    },
    "description": "Backtest a trading strategy using paper trading against live prices."
}

Paper Strategy Backtest

PREREQUISITE: Load the following skill to execute this recipe: kraken-paper-strategy

Run a strategy through multiple paper runs to validate consistency before live deployment.

Important: Paper Results May Overstate Live Performance

Paper trading applies configurable fees (default 0.26% taker) and optional flat-rate slippage to market orders. However, it does not simulate partial fills, order book depth, or latency. Live trading on Kraken has variable maker/taker fees by volume tier, depth-dependent slippage, and possible partial fills on limit orders. Enable --slippage-rate (e.g., 0.001 for 0.1%) at workspace create for more conservative estimates. A strategy that is only marginally profitable on paper with fees and slippage enabled is likely unprofitable live.

Steps

  1. Define strategy parameters (pair, entry/exit rules, position size)
  2. Initialize paper account: kraken workspace create sandbox --capital 10000 --mode paper --slippage-rate 0.001 -o json 2>/dev/null export KRAKEN_WORKSPACE=sandbox
  3. Round 1: execute strategy logic using paper buy/sell commands
  4. Record round 1 results: kraken workspace status -o json 2>/dev/null + kraken paper history -o json 2>/dev/null
  5. Reset: kraken workspace reset -o json 2>/dev/null
  6. Round 2 with same parameters at a different time (different market conditions)
  7. Record round 2 results
  8. Repeat for 3-5 rounds minimum
  9. Compare results: win rate, average P&L per trade, max drawdown, Sharpe-like ratio
  10. If results are consistent and positive, the strategy is a candidate for live promotion
  11. If results vary wildly, adjust parameters and re-test

If you hit a mismatch between what you are trying to do and the CLI's interface or responses — including a mismatch between this skill and the installed CLI version's contract — feel free to submit feedback with kraken feedback.

Version History

  • aa56e59 Current 2026-08-20 04:46

    升级至kraken-cli 0.4.0,引入工作区记录会话和市场数据,改进响应格式,新增反馈命令及MCP安全限制。

  • aa32814 2026-07-25 10:29

Same Skill Collection

skills/kraken-alert-patterns/SKILL.md
skills/kraken-autonomy-levels/SKILL.md
skills/kraken-basis-trading/SKILL.md
skills/kraken-dca-strategy/SKILL.md
skills/kraken-earn-staking/SKILL.md
skills/kraken-error-recovery/SKILL.md
skills/kraken-fee-optimization/SKILL.md
skills/kraken-funding-carry/SKILL.md
skills/kraken-funding-ops/SKILL.md
skills/kraken-futures-risk/SKILL.md
skills/kraken-grid-trading/SKILL.md
skills/kraken-lab-experiment/SKILL.md
skills/kraken-liquidation-guard/SKILL.md
skills/kraken-market-intel/SKILL.md
skills/kraken-mcp-integration/SKILL.md
skills/kraken-multi-pair/SKILL.md
skills/kraken-order-types/SKILL.md
skills/kraken-paper-strategy/SKILL.md
skills/kraken-paper-to-live/SKILL.md
skills/kraken-playground/SKILL.md
skills/kraken-portfolio-intel/SKILL.md
skills/kraken-rate-limits/SKILL.md
skills/kraken-rebalancing/SKILL.md
skills/kraken-risk-operations/SKILL.md
skills/kraken-setup/SKILL.md
skills/kraken-spot-execution/SKILL.md
skills/kraken-stop-take-profit/SKILL.md
skills/kraken-subaccount-ops/SKILL.md
skills/kraken-tax-export/SKILL.md
skills/kraken-twap-execution/SKILL.md
skills/kraken-ws-streaming/SKILL.md
skills/recipe-basis-trade-entry/SKILL.md
skills/recipe-daily-pnl-report/SKILL.md
skills/recipe-drawdown-circuit-breaker/SKILL.md
skills/recipe-earn-yield-compare/SKILL.md
skills/recipe-emergency-flatten/SKILL.md
skills/recipe-fee-tier-progress/SKILL.md
skills/recipe-funding-rate-scan/SKILL.md
skills/recipe-futures-hedge-spot/SKILL.md
skills/recipe-launch-grid-bot/SKILL.md
skills/recipe-morning-market-brief/SKILL.md
skills/recipe-multi-pair-breakout-watch/SKILL.md
skills/recipe-playground-dca-triggered/SKILL.md
skills/recipe-playground-dca/SKILL.md
skills/recipe-playground-price-alert/SKILL.md
skills/recipe-playground-rebalance/SKILL.md
skills/recipe-playground-webhook/SKILL.md
skills/recipe-portfolio-snapshot-csv/SKILL.md
skills/recipe-price-level-alerts/SKILL.md

Metadata

Files
0
Version
aa56e59
Hash
26f0ac37
Indexed
2026-07-25 10:29

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 07:04
浙ICP备14020137号-1 $방문자$