Index_RM_FactorRetQK
简述
区间因子收益率(%),与系统证券相关,日线,底层调用模型RM_GetFactorReturnByStocks
Index_RM_FactorRetQK(BegT:date;EndT:date;Dtype:integer):array;
| 名称 | 类型 | 说明 |
|---|
| BegT | date | 日期类型,开始日 |
| EndT | date | 日期类型,截止日 |
| DType | integer | 用户自定义,数据类型,默认为3,提取风格因子收益
|
取值 |
含义 | |
0 |
全部因子 | |
1 |
国家因子 | |
2 |
行业因子 | |
3 |
风格因子 |
|
| 返回 | array | 数组,区间因子收益率(%) |
//提取沪深300市场,2020年每天的风格因子收益(%)
IndexID:="SH000300";
BegT:=20200101T;
EndT:=20201231T;
DType:=3;
setsysparam(pn_stock(),IndexID);
return Index_RM_FactorRetQK(BegT,EndT,DType);