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
Estimate strategy capacity and transaction costs from trades and ADV — participation, square-root/linear impact, capacity curve and breakeven vs alpha. Estimates only, no trade advice.
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
策略容量与交易成本分析(TCA)。回测常给毛收益,却很少回答「放大资金后冲击会吃掉多少 alpha」。本 skill 从成交与 ADV 估计参与率、平方根/线性冲击、换手、集中度与容量曲线;冲击是估计而非保证,不提供买卖指令。
skill-strategy-capacity-tca 是 QuantSkills 社区的组合类 Skill。它与组合归因(收益从哪来)、策略诊断(信号是否衰减)互补:本 skill 专答容量与实现成本。
|shares| / ADV;缺失 ADV 计入丢弃;>20% 警示cost_bps ≈ σ · √participation · c · 1e4(线性作对照)[0.25, 0.5, 1, 2, 4, 8];可选 alpha 盈亏平衡插值scripts/validate.py 校验 √2 标度、单调性、护栏与 HTML 自包含详见 references/impact-models.md。
pip install -r requirements.txt
# 自检
python scripts/validate.py
# 示例数据
python scripts/capacity_tca.py \
--trades examples/data/trades.csv \
--adv examples/data/adv.csv \
--price examples/data/price.csv \
--returns examples/data/returns.csv \
--alpha 0.05 --nav 1e8 \
--out examples/output/
指定 --out 时输出:capacity_tca.txt、.json、.html(暖纸色自包含报告,内联 SVG,离线可用)。加 --no-html 可跳过 HTML。
| 文件 | 必需列 |
|---|---|
| trades | date,symbol + shares(及可选 side)或 notional |
| adv | date,symbol + adv_shares 或 adv_notional |
| price(可选) | date,symbol,close |
| returns(可选) | date,symbol,ret → Amihud 代理 |
skill-strategy-capacity-tca/
├── SKILL.md
├── README.md / README.en.md
├── agents/
│ ├── openai.yaml
│ ├── portable-loader.md
│ └── cursor-rule.mdc
├── references/
│ ├── impact-models.md
│ └── source_boundary.md
├── scripts/
│ ├── capacity_tca.py
│ └── validate.py
└── examples/
├── data/
└── output/
冲击模型是启发式估计,不是券商实测 TCA;容量曲线假设 ADV 与换手结构不变。证据优先,不作交易建议。详见 references/source_boundary.md。
GPL-3.0-only
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.
strategy-capacity-tca@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin strategy-capacity-tcaPlugins from other owners that cover similar ground