麻烦帮忙一个,谢谢!! 作者: 叶昕 时间: 2016-12-10 15:30
{只需要3组并且信号出现在下一组的阳线上;}
LX0:=C<O OR (C=O AND C<REF(C,1));
HX0:=NOT(LX0);
LXS:=BARSLASTCOUNT(LX0);
HXS:=BARSLASTCOUNT(HX0);
LWD:=FILTERX(LXS>0,LXS);
HWD:=FILTERX(HXS>0,HXS);
ZHCL:=BETWEEN(LWD*LXS,1,3) AND REF(HWD*HXS,LWD*LXS)>2;
BX1:=BETWEEN(LWD*LXS,1,3) AND REF(HWD*HXS,LWD*LXS)<3;
BX2:=LWD*LXS>3 AND REF(HWD*HXS,LWD*LXS)>2;
BXHJ:=BX1 OR BX2;
BXT:=BARSLAST(BXHJ);
TJCS:=COUNT(ZHCL,BXT);
XHD:CROSS(TJCS=3 AND HX0,0.1);