天软金融分析.NET函数大全 > 金融函数 > 指数 > 指数成分

IndexIndusNoNWeight    

简述
指定日第N名行业的权重
定义
IndexIndusNoNWeight(Endt:Date;Topn:Integer;Industype:Integer):REAL
参数
名称类型说明
EndtDate 日期,截止日期
TopnInteger 整型,第N
IndustypeInteger 整型,行业类别
取值 行业类别
1 证监会一级行业
2 证监会二级行业
3 中证一级行业
4 中证二级行业
5 申万一级行业
6 申万二级行业
返回REAL实数
  • 范例

    // 在2020-09-24第2名行业的权重
    setsysparam(pn_stock(),'SH000300');
    return IndexIndusNoNWeight(20200924T,2,1); //结果:28.686091977063
相关