天软金融分析.NET函数大全 > 数据仓库函数 > 向导函数

PositionOfSector    

简述
从大到小排名。板块Sector中成分股按个券指标EXP大小排序,返回指定股票pn_stock()的排名,该函数与系统参数(股票,日期,复权,周期)相关。
定义
PositionOfSector(Exp:Expr;Sector:String):real
参数
名称类型说明
ExpExpr函数表达式
SectorString市场和板块,板块
返回real实数
  • 范例


    SetSysParam(pn_stock(),'SZ000001');

    SetSysParam(pn_date(),20180801T);

    return PositionOfSector(@close(),'A股');

    //返回:1778
相关