Index_RM_FactorReturn
简述
返回指定指数成分计算的风格因子收益率,与当前系统证券(指数)、周期、时间相关
Index_RM_FactorReturn(IndustryType:integer;iffill:boolean):array;
| 名称 | 类型 | 说明 |
|---|
| IndustryType | integer | 行业因子分类,整型
|
取值 |
含义 | |
1 |
申万一级行业 | |
2 |
证监会一级行业 | |
3 |
中证一级行业 | |
4 |
申万一级行业扩展 | |
5 |
申万一级行业2014版(28个行业) | |
6 |
申万一级行业2021版(31个行业) | |
-1 |
不考虑行业因子 |
|
| Iffill | boolean | 是否填充因子缺失值(部分股票的风格因子可能为空),布尔类型,默认为否,不填充 |
| 返回 | array | 数组,只返回因子收益率数据 |
setsysparam(pn_stock(),"SH000300");
setsysparam(pn_date(),20201223T);
setsysparam(pn_cycle(),cy_day());
IndustryType:=1;
iffill:=0;
return Index_RM_FactorReturn(IndustryType,iffill);
//结果:
