ema13:EMA(C,13),colorwhite,linethick2;ema34:EMA(C,34),coloryellow;
ema55:EMA(C,55),colorff00ff;ema120:EMA(C,120),colorffcc66;
ar1:=ema55>ema34
AND
ema34>ema13;ar2:=BARSLAST((C-ema13)/ema13*100<-6);
ar3:=ema13>=REF(ema13,2);ar4:=COUNT(crOSS(C,ema13),ar2)=1;
ar5:=ar1
AND ar2 AND ar3 AND ar4;ar6:=ar5 AND
FILTER(ar5,10);
DRAWTEXT(ar6,L-0.09,'红杏出墙'),coloryellow;STICKLINE(ar6,H,L,0.5,1),coloryellow;
STICKLINE(ar6,O,C,6,1),linethick2,coloryellow;br1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5)
,5)=5;
br2:=Abs((ema13-ema34)+(ema34-ema55))/C<0.2;
br3:=C>ema55 AND
(REF(C,1)<REF(ema55,1) OR REF(C,2)<REF(ema55,2) OR
REF(C,3)<REF(ema55,3) OR REF(C,4)<REF(ema55,4) OR
REF(C,5)<REF(ema55,5));
br4:=br1 AND br2 AND br3;
DRAWTEXT(br4 AND
FILTER(br4,10),L-0.09,'蚂蚁上树'),color00C5FF;
STICKLINE(br4 AND
FILTER(br4,10),H,L,0.5,1),color00C5FF;
STICKLINE(br4 AND
FILTER(br4,10),O,C,6,1),linethick2,color00C5FF;
cr1:=(C-REF(C,1))/REF(C,1)*100>0.5;cr2:=V>MA(V,5)*0.6;cr3:=COUNT(CROSS(ema13,ema55),3)=1;
cr4:=ABS(ema34-ema55)/ema55<0.03;cr5:=ema55<=ema120
AND ema55>=REF(ema55,1);
cr6:=FILTER(cr1 AND cr2 AND cr3 AND cr4 AND
cr5,2);STICKLINE(cr6,H,L,0.5,1),colorf00ff0;
STICKLINE(cr6,O,C,6,1),linethick2,colorf00ff0;DRAWTEXT(cr6,L-0.09,'红衣侠女'),colorf00ff0;
dr1:=ema13>ema34
AND ema34<ema55;dr2:=BARSLAST(CROSS(C,ema55)
);
dr3:=H=HHV(H,dr2);dr4:=BARSLAST(dr3);
dr5:=COUNT(O>C AND
C<REF(C,1) AND C>ema55 AND
BETWEEN((C-ema55)/ema55,0,0.02),dr4)=1;
dr6:=C>REF(C,1);dr7:= dr1
AND dr5 AND dr6 ;dr8:=dr7 AND FILTER(dr7

