一键导入
clawquant-trader
Use this skill for quantitative research/trading tasks (data pull, backtest, sweep, radar, report, deploy) via clawquant CLI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this skill for quantitative research/trading tasks (data pull, backtest, sweep, radar, report, deploy) via clawquant CLI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | clawquant-trader |
| description | Use this skill for quantitative research/trading tasks (data pull, backtest, sweep, radar, report, deploy) via clawquant CLI. |
| user-invocable | true |
| metadata | {"openclaw":{"emoji":"📈","requires":{"bins":["python3"]}}} |
Use this skill when the user asks for strategy research, backtesting, signal scan, or trading deployment actions.
Always prefer the virtual-env executable path first:
<VENV_PATH>/bin/clawquant
If it does not exist, fallback to:
clawquant
Note: Replace
<VENV_PATH>with your actual clawquant virtual environment path when deploying.
--json.deploy live unless user explicitly says they accept live trading risk.deploy live, require explicit confirmation in the same turn.Map natural language intents to these command families:
quant_data_pull -> data pullquant_backtest_batch -> backtest batchquant_backtest_sweep -> backtest sweepquant_report_get -> report generatequant_radar_scan -> radar scanquant_deploy -> deploy paper|liveDefault arguments if user does not specify:
interval=1hdays=10 for data/radardays=30 for backtestexchange=binance for data pullcapital=10000 for backtest/deploysymbols=BTC/USDT,ETH/USDT for radarstrategies=ma_crossover,dca for radarWhen users ask to compare strategies and did not specify list, use:
dca,ma_crossover,grid,rsi_reversal,bollinger_bands,macd,breakout
clawquant --json strategy list
clawquant --json data pull BTC/USDT,ETH/USDT --interval 1h --days 30
clawquant --json backtest run ma_crossover --symbol BTC/USDT --interval 1h --days 30
clawquant --json backtest batch dca,ma_crossover,grid --symbols BTC/USDT,ETH/USDT --days 30
clawquant --json backtest sweep ma_crossover --grid '{"fast_period":[5,10,20],"slow_period":[20,30,50]}'
clawquant --json radar scan --symbols BTC/USDT,ETH/USDT --strategies ma_crossover,dca
clawquant --json report generate <run_id>
clawquant --json deploy paper ma_crossover --symbol BTC/USDT --interval 1h --capital 10000
clawquant --json deploy live ma_crossover --symbol BTC/USDT --interval 1h --capital 10000 --i-know-what-im-doing
When the user asks to find, compare, or optimize strategies, follow this workflow strictly:
Run backtest batch with all relevant strategies and all requested symbols. If user asks for BTC and ETH, include both in --symbols. Parse the JSON output carefully — each entry in the result array has a run_id field containing the strategy name and symbol (e.g. ma_crossover_btc_usdt_...). Report results for EVERY symbol separately. Do NOT say "no trades" unless the JSON output actually shows total_trades: 0 for that entry.
Rank results by total_return_pct (primary) and sharpe_ratio (secondary).
Always select the top-performing strategy from batch results for further optimization. Never pick a different strategy without explicit user instruction. State clearly which strategy was selected and why.
Run backtest sweep on the winner. Compare sweep results against the batch baseline:
Always include a before/after comparison table when presenting optimized results. Key columns: total_return_pct, max_drawdown_pct, win_rate, sharpe_ratio, total_trades.
backtest sweep expects JSON grid in --grid.report generate requires valid run_id.radar scan top count may use --top in current CLI.file:./path/to/strategy.py when supported by the command.