OPPZ_Underlying_RV
简述
标的资产已实现波动率(%),与系统证券、时间相关,目前仅支持日线
OPPZ_Underlying_RV(RSP_Cycle: cycle;N: Integer):Real;
| 名称 | 类型 | 说明 |
|---|
| RSP_Cycle | cycle | 采样频率,周期类型 |
| N | Integer | 历史计算天数,整型 |
| 返回 | Real | 实数, 标的资产已实现波动率(%) |
setsysparam(pn_stock(),"A2309");
setsysparam(PN_Date(),20230728T);
setsysparam(PN_Cycle(),cy_day());
RSP_Cycle := cy_5m();
N := 1;
return OPPZ_Underlying_RV(RSP_Cycle,N);
//返回:0.6931