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

PercentRankOftheReport    

简述

  表达式当期分位排名,个股在pn_StockArr()成分股中的表达式值的排名,与系统参数证券代码,时间,pn_StockArr()相关。
定义
PercentRankOftheReport(Exp:String;ReportID:Integer;CacheStr:String):Real
参数
名称类型说明
ExpString字符串,函数表达式
ReportIDInteger整数,报告期
CacheStrString字符串,缓存串
返回Real实数。表达式当期百分位排名
  • 范例

    //SH600519,2022年报营业收入在沪深300成分股的分位排名。
      endt:=20221231T;
      SetSysParam(pn_stock(),"SH600519");
      setsysparam(pn_StockArr(),getbkbydate("SH000300",endt));
      return PercentRankOftheReport(@ReportOfAll(46002,DefaultRepID()),20221231);
      //返回:0.7525
相关