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
Event-driven top-N relay signal from daily A-share streak leaders: ten sub-factors, ICIR-shrinkage weights, rolling IC gate and sentiment filter; research-only candidate finder, not a strategy.
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.
从全 A 市场每日 ≥3 板候选中识别 T+1 接力的事件型 top-N 信号 — 候选发现器,非交易策略。
本仓库是 仅供研究与教育的开源 skill 示例,不构成投资建议、收益承诺、官方背书或可生产部署的策略。
A3 是一个事件型 T+1 接力因子的 skill 框架:
buy / watch / hold / unfillable 信号分级它是一个研究层面的候选发现器,不是黑盒交易策略。下游的择时、执行与风控规则由使用者自行决定。
以下数据描述模型在历史窗口内的回测统计行为,不代表真实交易结果,也不代表未来可重现:
关键约束:
calibrate_weights.py(ICIR + shrinkage)重训,但激进校准容易过拟合,默认权重已经过经验调校A3 是个可调因子 skill,不是黑盒:
| 维度 | 工具 / 参数 | 用法 |
|---|---|---|
| 子因子权重 | calibrate_weights.py | ICIR + shrinkage 校准,输出 JSON 供 factor.py 加载 |
| 大盘情绪窗口 | DEFAULT_CONFIG["mkt_state_window"] | 60 日 z-score(可调) |
| 仓位加权方式 | strategy_backtest.py --weighting | equal / score(默认 score) |
| 校准训练区间 | calibrate_weights.py --train-end YYYYMMDD | 默认留出 6 月 OOS |
| 收缩强度 | calibrate_weights.py --shrinkage 0.5 | 0=纯ICIR / 1=纯先验 / 0.5=平衡 |
| 单权重上限 | calibrate_weights.py --max-abs-weight 0.25 | 防过拟合 |
⚠️ 校准当前的实证结论:8 个子因子 ICIR 中除 position_60d 外信号普遍弱,激进校准(shrinkage=0)在 OOS 会过拟合(纯 A3 -90%)。默认权重已经过经验调校,不建议轻易覆盖。
skill-alpha-a3-streak-leader-relay/
├── README.md ← 本文件(交付说明)
├── skill-alpha-a3-streak-leader-relay/ ← 开发产物
│ ├── SKILL.md ← 因子设计书(开发版,按规则 V2 §5 模板)
│ ├── skill.json ← Skill 元数据
│ ├── streak_curve_calibrated.json ← 板高 IS 拟合曲线(探索性产物)
│ ├── scripts/
│ │ ├── factor.py ← 因子主计算脚本(必须文件)
│ │ ├── validate.py ← 三层沙漏验证(必须文件)
│ │ ├── backtest.py ← 因子回测(必须文件,IC/IR/分层/换手)
│ │ ├── strategy_backtest.py ← 策略层回测(top-N 仓位 + IC gate 对比)
│ │ ├── render_html.py ← HTML 可视化报告生成器
│ │ ├── calibrate_weights.py ← 子因子权重 ICIR 校准(可训练能力)
│ │ └── calibrate_streak.py ← 板高曲线 IS 拟合工具(探索性)
│ └── references/
│ └── data_guide.md ← 数据指南(必须文件)
└── skill-alpha-a3-streak-leader-relay-production/ ← 生产产物
├── SKILL.md ← 生产读取说明(规则 V2 §8 模板)
├── database.parquet ← 因子计算结果(生产读取)
├── weights_calibrated.json ← 子因子校准权重(可选;不存在则用默认)
├── backtest_report.md / backtest_metrics.json ← 因子回测交付材料
├── strategy_backtest_report.md / strategy_backtest_metrics.json ← 策略层回测交付材料
└── backtest_report.html ← 可视化报告(资金曲线 / IC 时序 / Q1-Q5 柱)
# 1. 配置凭证(也可写入 ~/.pandadata/pandadata.env)
export PANDA_USERNAME=<86 手机号>
export PANDA_PASSWORD=<密码>
# 2. 跑全套
cd skill-alpha-a3-streak-leader-relay/scripts
# 2.1 计算因子(3 年全市场,~15 分钟)
python factor.py --start 20230619 --end 20260619 \
--out ../../skill-alpha-a3-streak-leader-relay-production/database.parquet
# 2.1.5 [可选] 重训子因子权重(ICIR + shrinkage 校准)
# - 不跑就用 DEFAULT_CONFIG 默认权重(已经过经验调校)
# - 想试激进版可加 --shrinkage 0.3,但容易过拟合
python calibrate_weights.py
# 再跑 factor.py 会自动加载 weights_calibrated.json
# 2.2 三层沙漏验证
python validate.py
# 2.3 因子回测(指标 + 时序数据)
python backtest.py --start 20230619 --end 20260619 \
--factor-parquet ../../skill-alpha-a3-streak-leader-relay-production/database.parquet \
--out ../../skill-alpha-a3-streak-leader-relay-production/backtest_report.md \
--out-json ../../skill-alpha-a3-streak-leader-relay-production/backtest_metrics.json
# 2.4 策略层回测(top-N + 双成本 + IC gate 对比)
python strategy_backtest.py --start 20230619 --end 20260619 \
--factor-parquet ../../skill-alpha-a3-streak-leader-relay-production/database.parquet --top-n 3 \
--out ../../skill-alpha-a3-streak-leader-relay-production/strategy_backtest_report.md \
--out-json ../../skill-alpha-a3-streak-leader-relay-production/strategy_backtest_metrics.json
# 2.5 HTML 可视化
python render_html.py \
--factor-parquet ../../skill-alpha-a3-streak-leader-relay-production/database.parquet \
--factor-report ../../skill-alpha-a3-streak-leader-relay-production/backtest_metrics.json \
--strategy-report ../../skill-alpha-a3-streak-leader-relay-production/strategy_backtest_metrics.json \
--out ../../skill-alpha-a3-streak-leader-relay-production/backtest_report.html
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.
alpha-a3-streak-leader-relay@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin alpha-a3-streak-leader-relayPlugins from other owners that cover similar ground