SlopeOfNDay2
简述
表达式N日回归斜率(双序列) ,与系统参数(股票,日期,周期,复权)相关。
SlopeOfNDay2(Exp:String;N:Integer;BaseID:String):Real
名称 | 类型 | 说明 |
---|
Exp | String | 字符串,函数表达式 |
N | Integer | 整数,天数 |
BaseID | String | 字符串,基准证券代码 |
返回 | Real | 实数。表达式的表达式N日回归斜率(双序列) |
//20231010T,SH600585前10日收盘与SH000001收盘的回归斜率。
SetSysParam(pn_stock(),"SH600585");
SetSysParam(pn_date(),20231010T);
return SlopeOfNDay2(@close(),10,"SH000001");
//返回:20.4608