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

IndexStockSumNWeight    

简述
指定指数前N证券的权重(股票集中度(%))
定义
IndexStockSumNWeight(Endt:Date;Topn:Integer):REAL
参数
名称类型说明
EndtDate 日期,截止日期
TopnInteger 整型,前N
返回REAL实数
  • 范例

    // 在2020-09-24指定日股票集中度(%)
    setsysparam(pn_stock(),'SH000300');
    return IndexStockSumNWeight(20200924T,2); //结果:10.2321520830025
相关