在线检测未来函数

MACD金叉且连续3天MACD增大

来源:Internet,编辑:股旁网,2013-05-02

编写条件:

有效金叉:=MACD金叉而且金叉之后连续3天MACD增大; 有效金叉日:BARSLAST(有效金叉);

编写方法:

金叉:=cross(diff,dea);
tt:=barslast(金叉);
有效金叉:=every(macd>ref(macd,1),3) and tt=4;
有效金叉日:BARSLAST(有效金叉);

相关文章