GrowthWithHighestOfNDay
简述
表达式N日最大与当前的偏离,与系统参数(股票,日期,周期,复权)相关。
GrowthWithHighestOfNDay(Exp:String;N:Integer;ReturnType:Integer):Real
名称 | 类型 | 说明 |
---|
Exp | String | 字符串,函数表达式 |
N | Integer | 整数,天数 |
ReturnType | Integer | 整数,返回类型
|
返回 | Real | 实数。表达式的N日最大与当前的偏离 |
//对SH600585在20231010T的100日价格N日最大与当前的偏离值。
SetSysParam(pn_stock(),"SH600585");
SetSysParam(pn_date(),20231010T);
return GrowthWithHighestOfNDay(@close(),100,0);
//返回:-2.21