SHORT:=12;
LONG:=26;
M:=9;
difF := EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA := EMA(DIFF,M);
ZF:=(C/REF(C,1)-1)*100;
XG: BETWEEN(ZF,-1,2.5) {注:表示跌幅-1%至上涨1%之间}
AND DIFF>0
AND REF(BETWEEN(ZF,-2,2.5),1) AND REF(BETWEEN(ZF,-2,2.5),2) AND REF(BETWEEN(ZF,-2,2.5),3) {注:表示连续3日涨跌幅在-2至2.5%之间}
AND REF(BETWEEN(HSL.HSL,1,2.5),1) AND REF(BETWEEN(HSL.HSL,1,2.5),2) AND REF(BETWEEN(HSL.HSL,1,2.5),3) {换手率3天在1至2.5%以内}
AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30)
AND REF(MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30),2)
AND C>MA(C,20)
AND MA(C,120)>=REF(MA(C,120),3)
AND H/MA(C,120)<1.2;