Index_TA_Mom_RankStd
Index_TA_Mom_RankStd(N:Integer;Level:Integer;Tp:Integer) :Real功能:获取指定指数指定日截面动量因子(仅支持行业指数)
| 名称 | 类型 | 说明 |
|---|
| N | Integer | 整数,观察期 |
| Level | Integer | 整数,行业级数
|
取值 |
含义 | |
1 |
一级行业 | |
2 |
二级行业 | |
3 |
三级行业 |
|
| Tp | Integer | 整数,行业分类标准
|
| 返回 | Real功能:获取指定指数指定日截面动量因子(仅支持行业指数) | 数值 |
获取申万农林牧渔行业指数SW801010在2023-01-05 20日截面动量因子
SetSysParam(PN_Stock(),"SW801010");
SetSysParam(PN_Date(),20230105T);
SetSysParam(PN_Cycle(),cy_day());
return Index_TA_Mom_RankStd(20,1,1);
返回: 1.34