PercentRankOftheReport
简述
表达式当期分位排名,个股在pn_StockArr()成分股中的表达式值的排名,与系统参数证券代码,时间,pn_StockArr()相关。
PercentRankOftheReport(Exp:String;ReportID:Integer;CacheStr:String):Real
名称 | 类型 | 说明 |
---|
Exp | String | 字符串,函数表达式 |
ReportID | Integer | 整数,报告期 |
CacheStr | String | 字符串,缓存串 |
返回 | Real | 实数。表达式当期百分位排名 |
//SH600519,2022年报营业收入在沪深300成分股的分位排名。
endt:=20221231T;
SetSysParam(pn_stock(),"SH600519");
setsysparam(pn_StockArr(),getbkbydate("SH000300",endt));
return PercentRankOftheReport(@ReportOfAll(46002,DefaultRepID()),20221231);
//返回:0.7525