DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
DT:=(REF(C,1)-C)*100/REF(C,1)>=(10-1/REF(C,1));
ZT:=(C/REF(C,1)-1)*100>=(10-1/REF(C,1));
TJ1:=VOL>REF(VOL,BARSLAST(DT));
TJ2:=C>REF(O,BARSLAST(DT));
跌停涨停:BARSLAST(DT)<5 AND ZT AND (TJ1 OR TJ2)
AND MACD>REF(MACD,1) AND REF(MACD,BARSLAST(DT))>0;