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
Computes a hot-money seat cooling and reversal factor from Dragon-Tiger and market data with validation artifacts.
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.
简体中文 | English
A06 游资席位冷却反转与协同突破因子:基于龙虎榜游资数据,捕捉协同拥挤后的反转信号与高强度突破延续性。
skill-alpha-hotmoney-reversal 是 QuantSkills 组织提供的 A06 Alpha 因子 Skill。它基于龙虎榜游资席位数据,计算冷却反转与协同突破因子,支持可成交回测和生产发布。
QuantSkills GitHub 组织:https://github.com/quantskills
核心假设:龙虎榜游资协同后的短期拥挤会反转;少数不过热、重复席位协同的高强度净买入具有突破延续性。
计算公式:
factor_value = (-z(net_buy_to_amount) - z(ret_5d) - z(ret_10d)) / 3 + 0.25 * watch + 3.0 * buy
factor_value 越大越强hotmoney_executable_openflowchart LR
A["📥 龙虎榜数据<br/>席位买卖金额<br/>行情数据<br/>交易日历"] --> B["🔧 因子计算<br/>z-score 标准化<br/>拥挤度反转<br/>协同突破"]
B --> C["📊 信号生成<br/>buy/watch/hold<br/>0-100 评分<br/>置信度"]
C --> D["🧪 可成交回测<br/>t+1 开盘买入<br/>t+2 收盘卖出<br/>成本扣除"]
D --> E["💾 生产发布<br/>Parquet 输出<br/>验收报告"]
style A fill:#e3f2fd,stroke:#1976d2
style C fill:#fff3e0,stroke:#f57c00
style E fill:#e8f5e9,stroke:#388e3c
正式计算使用 PandaData 数据拉取库:
| 字段 | 说明 | 来源 |
|---|---|---|
date / trade_date | 交易日期 | get_lhb_detail / get_trade_cal |
symbol / ts_code | 股票代码 | PandaData |
agency / rank / b_value / s_value | 龙虎榜席位与买卖金额 | get_lhb_detail |
open / close / limit_up / trade_status | 可成交回测与停牌涨停处理 | get_market_data |
amount / volume / high / low | 拥挤度与位置诊断 | get_market_data |
依赖:Python、pandas、pyarrow、PandaData
环境变量配置:
export PANDA_DATA_USERNAME=your_username
export PANDA_DATA_PASSWORD=your_password
pip install pandas pyarrow
python scripts/factor.py --demo
# 1. 计算因子
python scripts/factor.py
# 2. 验证因子
python scripts/validate.py
# 3. 可成交回测
python scripts/backtest.py
# 4. 生产发布
python scripts/update_production.py --full-refresh --bootstrap-start-date 20230601
python scripts/build_release.py \
--details <panda_lhb_detail.parquet> \
--calendar <panda_trade_calendar.parquet> \
--quotes <panda_market_data.parquet> \
--start-date 20230601 \
--end-date 20260605 \
--output <数据库.parquet> \
--report <发布验收报告.json>
| 字段 | 说明 |
|---|---|
factor_value | 因子原始值 |
score | 每日横截面 0-100 评分 |
signal | buy / watch / hold |
confidence | 0-1 置信度 |
data_version | pandadata-lhb-hotmoney-executable-open-a06-v1 |
t 日收盘后形成t+1 开盘买入,停牌或开盘涨停跳过t+2 收盘卖出0.30%,压力成本 0.50%0.50% 压力成本必须同时通过发布门槛├── 开发产物/
│ ├── SKILL.md # 因子说明书
│ ├── skill.json # 元数据
│ ├── references/
│ │ └── data_guide.md # 数据指南
│ └── scripts/
│ ├── factor.py # 因子计算主入口
│ ├── validate.py # 因子验证
│ ├── backtest.py # 可成交回测
│ ├── build_release.py # 发布版构建
│ ├── dev_scheduler.py # 开发调度
│ └── update_production.py # 生产更新
└── 生产产物/
├── SKILL.md # 生产产物说明
├── 数据库.parquet # 生产数据
├── 发布验收报告.json # 验收报告
└── 发布验收报告.md # 验收报告(可读)
skill-quant-factor-skill-factory - 因子生产工具skill-factor-evaluation - IC 测试与因子评估体系skill-quant-factor-directional-alpha - 方向性 Alpha 因子库本项目基于 GPLv3 许可证开源 - 详见 LICENSE 文件。
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-a06-hotmoney-reversal@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin alpha-a06-hotmoney-reversalPlugins from other owners that cover similar ground