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
Ranks Dragon-Tiger list stocks by the past 30-session record of their buying seats, and backtests that factor. Formal runs use pandadata; a public-data fallback is for emergency checks only.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Of the plugin's README
Chinese
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A1 是一个用于 A 股龙虎榜数据的席位追踪因子。
因子假设:近期在龙虎榜上表现较好的席位,如果在当前交易日继续买入某只股票,则该股票在下一交易日开盘获得溢价的概率可能更高。
对每个龙虎榜上榜股票:
核心公式见:
references/formula_and_lookahead.md本因子遵守以下规则:
T 的因子分数只使用 T 之前的席位历史。T 的次日开盘溢价只作为回测标签,不参与 T 日因子计算。正式数据源:
panda_data.get_lhb_listpanda_data.get_lhb_detailpanda_data.get_stock_dailypanda_data.get_trade_cal开发环境中也提供公开龙虎榜数据的备用适配器。
备用适配器仅用于无法访问 pandadata 时的应急验证。其 next_open_premium 来自公开源的“上榜后 1 日”字段,是近似标签;正式交付和验证应优先使用 pandadata 行情计算的“下一交易日开盘价 / 当日收盘价 - 1”。
生成生产文件:
python scripts/factor.py --source panda --start-date 20260501 --end-date 20260622 --lookback-days 30 --min-history 3 --latest-only --data-version A1-pandadata-YYYYMMDD --output production/database.parquet
python scripts/validate.py --factor-path production/database.parquet
历史验证:
python scripts/backtest.py --source panda --start-date 20260101 --end-date 20260622 --eval-start-date 20260216 --lookback-days 30 --min-history 3 --group-count 5 --output-dir production/backtest_pandadata_long
带交易约束和成本的复核:
python scripts/backtest.py --source panda --start-date 20260101 --end-date 20260622 --eval-start-date 20260216 --lookback-days 30 --min-history 3 --group-count 5 --exclude-st --exclude-suspended --exclude-limit-open --one-way-cost-bps 10 --one-way-slippage-bps 5 --output-dir production/backtest_pandadata_stress
本地检查:
python scripts/factor.py --sample --lookback-days 6 --min-history 2 --output sample_database.parquet
python scripts/validate.py --factor-path sample_database.parquet
python scripts/backtest.py --sample --lookback-days 6 --min-history 2 --output-dir sample_backtest
python -m pytest scripts/test_a1_core.py -q
当前 pandadata 长窗口验证口径:
完整报告见:
references/validation_report.mdQuantFlow 平台复核说明见:
references/quantflow_validation.md本仓库回测脚本已支持交易成本、滑点、涨跌停开盘、停牌和 ST 过滤;平台复核时建议使用同一口径。
skill-a1-lhb-tracking/
|-- SKILL.md
|-- README.md
|-- LICENSE
|-- agents/
| `-- openai.yaml
|-- references/
| |-- data_guide.md
| |-- formula_and_lookahead.md
| |-- quantflow_validation.md
| `-- validation_report.md
|-- scripts/
| |-- a1_core.py
| |-- akshare_source.py
| |-- backtest.py
| |-- factor.py
| |-- login_pandadata.py
| |-- test_a1_core.py
| |-- validate.py
| `-- validate_real_backtest.py
`-- requirements.txt
scripts/validate.py 和单元测试。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.
a1-lhb-tracking@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin a1-lhb-trackingPlugins from other owners that cover similar ground