Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aifinlab/a-share-volatility
A股波动率分析/GARCH建模。当用户说"波动率"、"volatility"、"GARCH"、"波动率锥"、"历史波动率"、"隐含波动率"、"HV"、"IV"、"波动率分位"、"XX波动率多少"、"波动率高吗"时触发。分析个股/指数的历史波动率、波动率锥、GARCH预测、隐含波动率对比,辅助判断当前波动率水平和未来波动率趋势。支持研报风格(formal)和快速查看风格(brief)。
Passed 15 of 18 test cases with the skill, and 10 of 18 without it.
and 7 more in the full report
7 fixed11 passed either way3 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
用户请求按 brief(快速查看)风格评估隆基绿能(601012)的波动率状态。请问在历史波动率多窗口列表中, brief 风格应当保留哪些窗口?
| Checked | Without skill | With skill |
|---|---|---|
| Restricts brief mode historical volatility windows to HV20 and HV60. | Missed | Passed |
| Omits HV120 from brief mode outputs. | Passed | Passed |
The instructions your model reads when the skill loads.
SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts"
VOL_SCRIPTS="$SKILLS_ROOT/a-share-volatility/scripts"
# 日线 K 线(近 2 年,用于波动率锥和 GARCH 拟合)
python "$SCRIPTS/cn_stock_data.py" kline --code [CODE] --freq daily --start [2年前日期]
# 实时行情
python "$SCRIPTS/cn_stock_data.py" quote --code [CODE]
# 波动率一键分析(HV多窗口 + 波动率锥 + GARCH预测 + EWMA)
python "$VOL_SCRIPTS/volatility_analyzer.py" --code [CODE] --start [2年前日期]
# 期权隐含波动率(仅限有期权的标的:50ETF/300ETF/个股期权)
# 通过 akshare 获取期权数据
python -c "import akshare as ak; df=ak.option_sse_greeks_sina(symbol='510050'); print(df[['IV']].describe())"
Step 1: 数据获取与预处理
volatility_analyzer.py 获取完整波动率分析结果Step 2: 历史波动率计算(多窗口) 计算 5 个滚动窗口的年化历史波动率:
| 窗口 | 用途 | 说明 |
|---|---|---|
| HV5 | 超短期波动 | 反映近一周波动 |
| HV10 | 短期波动 | 反映近两周波动 |
| HV20 | 月度波动 | 最常用,对应期权月到期 |
| HV60 | 季度波动 | 中期波动水平 |
| HV120 | 半年波动 | 长期波动基准 |
计算方法(Close-to-Close):
test cases passed, vs 10 / 18 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.