Options_PCIVD
简述
多个期权隐波差(%),与系统时间、周期相关
Options_PCIVD (OptionArr:Array;IVMethod:Integer):Real;
| 名称 | 类型 | 说明 |
|---|
| OptionArr | Array | 多个期权代码,数组类型 |
| IVMethod | Integer | IV计算方法,整型,取值如下
|
取值 |
含义 | |
0 |
等权(默认) | |
1 |
成交量加权 | |
2 |
Vega加权 | |
3 |
特定平值合约(行权价 最接近 标的价格 的合约) |
|
| 返回 | Real | 实数,多个期权隐波差(%) |
多个期权隐波差=认沽期权隐含波动率-认购期权隐含波动率
OptionArr := array("OP10004405","OP10004406","OP10004407",
"OP10004414","OP10004415","OP10004416");
SetSysParam(PN_Date(),20221128T);
SetSysParam(PN_Cycle(),cy_day());
IVMethod:=0;
return Options_PCIVD(OptionArr,IVMethod);
//返回:4.47