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

PercentRankOfNDay    

简述
当前值在最近N天的百分位排名,Nan值不参与排名。
定义
PercentRankOfNDay(Exp:String;N:Integer;CacheStr:String):Real
参数
名称类型说明
ExpString字符串。统计表达式
NInteger整数。天数
CacheStrString字符串。缓存串
返回Real实数。N日分位数。
  • 范例

    SetSysParam(pn_stock(),"SH600585");
    SetSysParam(pn_date(),20231030T);
    return PercentRankOfNDay(@close(),10,"");
    //结果:0.56
相关