DI:=EMA(CLOSE,12)-EMA(CLOSE,26);
DE:=EMA(DI,9);
M:=(DI-DE)*2;
R:=IF(CODELIKE('60') OR CODELIKE('00'),10,20);
ZT:=100*(C/REF(C,1)-1)>R-0.01/REF(C,1)*100;
DT:=100*(C/REF(C,1)-1)<-R+0.01/REF(C,1)*100;
SPAN:=BARSLAST(EVERY(ZT,2));
量:=REF(V,1)=LLV(V,SPAN);
共振:=M>REF(M,1) AND REF(M,1)XG:(SPAN<=13 AND SPAN>=5 AND 量 AND 共振);