Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aifinlab/a-share-position-sizing
A股仓位管理/凯利公式/仓位计算。当用户说"仓位"、"position sizing"、"该买多少"、"仓位管理"、"凯利公式"、"Kelly"、"加仓"、"减仓"时触发。基于 cn-stock-data 获取数据,量化计算最优仓位。支持研报风格(formal)和快速分析风格(brief)。
Passed 5 of 12 test cases with the skill, and 7 of 12 without it.
2 fixed7 passed either way9 still failing6 broke
Tokens, turns and time describe resource use, not a dollar price.
The instructions your model reads when the skill loads.
SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts"
python "$SCRIPTS/cn_stock_data.py" kline --code [CODE] --freq daily --start [日期]
python "$SCRIPTS/cn_stock_data.py" quote --code [CODE]
python "$SCRIPTS/cn_stock_data.py" finance --code [CODE]
获取标的K线 + 波动率 + 基本面数据。
| 维度 | formal | brief |
|---|---|---|
| 仓位计算 | 多方法对比 | 建议仓位 |
| 风险分析 | 波动率+VaR | 风险等级 |
| 加减仓计划 | 分批建仓方案 | 单次建议 |
默认风格:brief。
test cases passed, vs 7 / 12 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.