M:=20;
XA_1:=MA(C,5);
XA_2:=MA(C,10);
XA_3:=MA(C,30);
XA_4:=SMA(MAX(CLOSE-REF(CLOSE,1),0),17,1)/SMA(Abs(CLOSE-REF(CLOSE,1)),17,1)*100;
XA_5:=BArslAST(crOSS(XA_1,XA_2));
XA_6:=BARSLAST(CROSS(XA_1,XA_3));
XA_7:=BARSLAST(CROSS(XA_2,XA_3));
XA_8:=XA_5>=XA_6 AND XA_6>XA_7 AND XA_5-XA_7<M;
XA_9:=COUNT(CROSS(XA_1,XA_2),XA_5+1)=1 AND COUNT(CROSS(XA_1,XA_3),XA_5+1)=1 AND CROSS(XA_2,XA_3) AND XA_1>XA_2 AND XA_2>XA_3;
触发:=XA_8 AND XA_9;
XA_11:=COUNT(触发,BARSLAST(触发)+1)=1 AND COUNT(CROSS(XA_3,XA_1),BARSLAST(触发)+1)=0;
回踩:LOW<=XA_3 AND CLOSE>XA_3 AND XA_11 AND BARSLAST(触发)>0;