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

IndexIndusSumNWeight    

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

    // 在2020-09-24指定日行业集中度(%)
    setsysparam(pn_stock(),'SH000300');
    return IndexIndusSumNWeight(20200924T,2,1); //结果:28.4782510781865
相关