Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyzes A-share volatility via historical windows, volatility cones, GARCH forecasts and implied volatility.
Use this skill ↓55% 82%+27 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 12 of 22 without it.
用户请求按 brief(快速查看)风格评估隆基绿能(601012)的波动率状态。请问在历史波动率多窗口列表中, brief 风格应当保留哪些窗口?
Restricts brief mode historical volatility windows to HV20 and HV60.
3 of 3 safety checks passed
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):
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.