Index_StyleFactor
简述
提取指定日指数的风格因子,成分股指定日风格因子按照权重加权,类似组合风格因子,与系统证券(指数)、系统时间有关,底层调用函数为
pf_StyleFactorIndex_StyleFactor(DType:integer):array
| 名称 | 类型 | 说明 |
|---|
| DType | integer | 用户自定义,取值类型,1:因子暴露(默认),2:因子暴露百分位 |
| 返回 | array | 数组, 指定日指数的风格因子 |
//提取20200601日沪深300指数的风格因子暴露
SetSysParam(pn_stock(),'SH000300');
SetSysParam(pn_date(),20200601T);
return Index_StyleFactor(1);
//结果:
