IndexIndusNoNWeight
简述
指定日第N名行业的权重
IndexIndusNoNWeight(Endt:Date;Topn:Integer;Industype:Integer):REAL
名称 | 类型 | 说明 |
---|
Endt | Date | 日期,截止日期 |
Topn | Integer | 整型,第N |
Industype | Integer | 整型,行业类别
取值 |
行业类别 |
1 |
证监会一级行业 |
2 |
证监会二级行业 |
3 |
中证一级行业 |
4 |
中证二级行业 |
5 |
申万一级行业 |
6 |
申万二级行业 |
|
返回 | REAL | 实数 |
// 在2020-09-24第2名行业的权重
setsysparam(pn_stock(),'SH000300');
return IndexIndusNoNWeight(20200924T,2,1); //结果:28.686091977063