ContinuedMatchOfNDay
简述
判断Exp在过去N个交易日是否取得指标值,若取得返回1,否则返回0,与系统参数(股票,日期)相关。
ContinuedMatchOfNDay(Exp:Expr;N:integer):Boolean
名称 | 类型 | 说明 |
---|
Exp | Expr | 表达式,函数表达式 |
N | integer | 整数,天数 |
返回 | Boolean | 整数 |
SetSysParam(pn_stock(),'SH000001');
SetSysParam(pn_date(),20180801t);
return ContinuedMatchOfNDay(@close(),3);
//返回:1