Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By quantskillsGPL-3.0In 1 marketplace
Cost-aware A-share five-session cross-sectional return reversal research.
Claude hands work to one, or you mention it with @.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
量枢院 #58 的独立 canonical Skill。它研究“短期输家反弹、短期赢家回落”的横截面因子,不是实盘交易系统,也不构成投资建议。
| 信号 过去 5 个市场交易日收益 | 组合 底部 10% 多头 / 顶部 10% 空头 | 成交 下一交易日收盘 | 持有 5 个交易日,不重叠 |
| 证据 决策时点可见输入 | 会计 漂移权重换手 + 融券费 | 数据 PandaData 或冻结面板 | 状态 可运行 / 实验性 |
| 阶段 | 固定规则 |
|---|---|
| 信号 | decision_close / close_5_market_sessions_ago - 1 |
| 排名 | 过去收益越低,反转分数越高 |
| 多头 | 底部 10%,总名义权重 +0.5 |
| 空头 | 顶部 10%,总名义权重 -0.5 |
| 成交 | 观察决策日收盘,下一市场交易日收盘进场 |
| 持有 | 从进场收盘持有至第五个市场交易日收盘 |
| 调仓 | 每五个市场交易日;rebalance_every == hold_days |
| 成本 | 权重漂移后,cost_rate × 实际交易名义金额 |
| 融券费 | 年化 short_fee_rate;period 按持有窗口、daily_nav 逐日计费 |
| 可借券 | 可选 borrowable 点时列;不可借时阻断空头进场 |
| 退市结算 | 可选 delisting_settlement_price;提供时按该价格结算 |
| 缺失进场 | 不成交,资金保留为现金 |
| 缺失退出 | 默认 fail-closed |
| 退市 | 仅允许显式 last_available_close 策略或结算价 |
flowchart LR
A[点时数据面板] --> B[五交易日收益]
B --> C[横截面排名]
C --> D[底部 10% 多头]
C --> E[顶部 10% 空头]
D --> F[下一交易日收盘成交]
E --> F
F --> G[持有五个交易日]
G --> H[漂移后换手与成本]
H --> I[通过校验的 JSON 证据]
真实数据运行使用 panda_data 0.0.12 并覆盖完整沪深股票池。原始供应商输出不会进入 Git;验证报告保留其哈希、数量和结论。
| 检查项 | 实测结果 |
|---|---|
| 决策日股票池 | 5,122 只 |
| 有效五日信号 | 5,121 只 |
| 2024 回测面板 | 1,389,119 行 / 5,174 只证券 |
| 完整非重叠期间 | 48 |
| 远期收益覆盖率 | 99.998% |
| Rank IC 覆盖率 | 99.976% |
| 本地测试 | 56 passed |
| 0.7.0 全市场逐日检查点 | 113 日 / 605 次受限退出尝试 |
| 2.0.0 demo 多年度 OOS(2021-2025) | 5 个年度全部正收益 |
| 指标 | 结果 |
|---|---|
| 毛收益 | 35.32% |
| 净收益,单边成本 0.1% | 24.59% |
| 年化收益 | 25.96% |
| 年化波动 | 18.21% |
| Sharpe | 1.35 |
| 最大回撤 | -6.17% |
| 平均 Rank IC | 0.0444 |
这是一年期、未建模方向性涨跌停成交的历史研究结果,不是当前严格执行结果。0.7.0 已使用逐日 NAV 携带并重试普通受限退出;全年运行最终在 600306.SH 连续停牌至退市、此后缺少可验证结算价时停止。上表的 24.59% 不得解释为可执行收益。
0.7.0 的真实 30 股逐日账本完成 241 日:净收益 -3.43%、最大回撤 -16.54%,287 次进出全部闭合。全市场上半年检查点完成 113 日:净收益 6.42%,期末保留 5 个停牌和 2 个跌停仓位,没有假设成交。
完整证据和限制见 VALIDATION.md。
pip install -r requirements-dev.txt
python -m pytest -q
python scripts/backtest.py --provider demo `
--start 20220101 --end 20241231 `
--evidence-output output/demo-evidence.parquet `
--output output/demo.json
python scripts/validate.py output/demo.json --evidence output/demo-evidence.parquet
python scripts/summarize.py output/demo.json --evidence output/demo-evidence.parquet
python scripts/backtest.py --provider demo --accounting-mode daily_nav `
--start 20220101 --end 20241231 --output output/demo-daily.json
python scripts/validate.py output/demo-daily.json
Demo 使用确定性合成数据,只验证软件契约,不验证策略收益。
python scripts/oos_validation.py --provider demo `
--start 20210101 --end 20251231 --accounting-mode daily_nav `
--output output/oos-demo-daily.json
把每个自然年作为时序样本外折逐年运行并输出确定性汇总 JSON。demo 折收益只验证软件契约;研究证据需对冻结多年度面板或 PandaData(带凭据)运行同一命令。
凭据只从环境变量读取,不会写入源码、结果或缓存:
$env:PANDA_DATA_USERNAME = "your-account"
$env:PANDA_DATA_PASSWORD = "your-password"
python scripts/factor.py --provider pandadata --all-a `
--as-of 20241231 `
--cache-dir output/panda-cache `
--output output/factor-20241231.json
python scripts/validate.py output/factor-20241231.json
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
shortterm-mean-reversal@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin shortterm-mean-reversalPlugins from other owners that cover similar ground