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