Index_TA_Mom_IMom2
Index_TA_Mom_IMom2(N:Integer;GroupNum:Integer;XType:Integer;BenchmarkID:String;uNum:Integer):Real功能:获取指定指数指定日残差动量因子(总收益/收益波动率算法)
| 名称 | 类型 | 说明 |
|---|
| N | Integer | 整数,观察期 |
| GroupNum | Integer | 整数,分组数 |
| XType | Integer | 整数,回归自变量选择
|
取值 |
含义 | |
0 |
仅市场因子 | |
1 |
三因子 | |
2 |
四因子 | |
3 |
五因子 |
|
| BenchmarkID | String | 字符串,基准指数 |
| uNum | Integer | 整数,残差数 |
| 返回 | Real功能:获取指定指数指定日残差动量因子(总收益/收益波动率算法) | 数值 |
获取申万农林牧渔行业指数SW801010在2023-01-05残差动量因子(总收益/收益波动率算法)
SetSysParam(PN_Stock(),"SW801010");
SetSysParam(PN_Date(),20230105T);
SetSysParam(PN_Cycle(),cy_day());
N:=720;
GroupNum:=36;
XType:=1;
BenchmarkID:=”SW801001”;
uNum:=11;
return Index_TA_Mom_IMom2(N,GroupNum,XType,BenchmarkID,uNum);
返回: 0.24