skills/quant-backtest/SKILL.md
量化策略回测工具。编写、回测和优化交易策略,分析历史表现。Keywords: 量化, 回测, 策略, quant, backtest, trading strategy.
npx skillsauth add alter123-zz/RaccoonClaw quant-backtestInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
编写和回测交易策略分析历史表现。适用于量化交易策略开发、历史数据回测验证、策略参数优化、风险指标分析等场景。
触发关键词: 量化, 回测, 策略, quant, backtest, trading strategy
pip install pandas numpy backtrader matplotlib
策略回测引擎——支持均线/MACD/RSI等常见策略
绩效分析——年化收益/最大回撤/夏普比率/胜率
参数优化——网格搜索最优参数组合
| 命令 | 说明 | 用法 |
|------|------|------|
| backtest | 回测策略 | python3 scripts/quant_backtest_tool.py backtest [参数] |
| optimize | 参数优化 | python3 scripts/quant_backtest_tool.py optimize [参数] |
| report | 生成回测报告 | python3 scripts/quant_backtest_tool.py report [参数] |
回测双均线策略标的沪深300
执行:
python3 scripts/quant_backtest_tool.py backtest --strategy ma_cross --symbol 000300 --period 3y
优化均线参数
执行:
python3 scripts/quant_backtest_tool.py optimize --strategy ma_cross --fast 5-20 --slow 20-60
生成详细回测报告
执行:
python3 scripts/quant_backtest_tool.py report --format markdown
# 📊 量化策略回测报告
**生成时间**: YYYY-MM-DD HH:MM
## 核心发现
1. [关键发现1]
2. [关键发现2]
3. [关键发现3]
## 数据概览
| 指标 | 数值 | 趋势 | 评级 |
|------|------|------|------|
| 指标A | XXX | ↑ | ⭐⭐⭐⭐ |
| 指标B | YYY | → | ⭐⭐⭐ |
## 详细分析
[基于实际数据的多维度分析内容]
## 行动建议
| 优先级 | 建议 | 预期效果 |
|--------|------|----------|
| 🔴 高 | [具体建议] | [量化预期] |
| 🟡 中 | [具体建议] | [量化预期] |
| 🟢 低 | [具体建议] | [量化预期] |
pip install pandas numpy backtrader matplotlibdevelopment
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
tools
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
tools
天气顾问。智能天气顾问。实时天气查询、未来7天预报、穿衣建议与出行活动推荐 Keywords: 天气查询, weather, 穿衣建议, 出行提醒.