HX2:=BARSLAST((C-EMA13)/EMA13*100<-6);
HX3:=ABS(1-EMA55/REF(C,1))>0.1;
HX6:=BARSLAST(CROSS(EMA55,EMA34))>=20;
HX4:=ABS(1-REF(EMA13,1)/EMA13)<0.004 AND CEMA13 AND C>O;
HX7:=HX1 AND HX4 AND HX5 ;
HX8:=HX7 AND FILTER(HX7,10);
DRAWTEXT(HX8,L-0.4,'红杏出墙'),COLORYELLOW;
BR1:=COUNT(BETWEEN(((C-O)/O)*100,0,5) ,5)=5;
BR2:=(ABS(EMA13-EMA34)+ABS(EMA34-EMA55))/C<0.1;
BR3:=C>EMA55 AND COUNT(L=1;
MYSS:=BR1 AND BR2 AND BR3;
DRAWTEXT(MYSS AND FILTER(MYSS,5), L-0.4,'蚂蚁上树'),COLORYELLOW;
MSQT1:=EMA55/EMA13>1.04 AND EMA13/C>1.03;
MSQT2:=O<=REF(L,1) AND REF(O,1)/REF(C,1)>1.03;
MSQT:= MSQT1 AND MSQT2;
DRAWTEXT(MSQT, L-0.4,'马失前蹄'),COLORYELLOW;
JCFS1:=EMA55>EMA13 AND EMA13>C;
JCFS2:=O<=REF(L,1) AND C/O>1.05;
JCFS:= JCFS1 AND JCFS2;
DRAWTEXT(JCFS, L-0.4,'绝处逢生'),COLORYELLOW;
JWCJ1:=CJWCJ2:=O<=REF(C,1) AND L>=REF(L,1);
JWCJ3:=REF(C,1)/REF(L,1)>1.02;
JWCJ4:=EMA13JWCJ:=JWCJ1 AND JWCJ2 AND JWCJ3 AND JWCJ4;
DRAWTEXT(JWCJ, L-0.4,'金屋藏娇'),COLORYELLOW;
RYHB1:=REF(O,1)<=REF(C,2) AND REF(C,1)RYHB2:=C>O AND ABS(1-C/REF(O,1))<0.025 AND ABS(1-O/REF(C,1))<0.025;
RYHB3:=EMA13RYHB4:=REF(L,1)<=LLV(REF(L,1),10);
RYHB:=RYHB1 AND RYHB2 AND RYHB3 AND RYHB4;
DRAWTEXT(RYHB , L-0.4,'日月合璧'),COLORYELLOW;
PJCY1:=REF(O,1)/REF(C,1)>1.02;
PJCY2:=O<=REF(C,1) AND C>=REF(O,1);
PJCY3:=(ABS(1-REF(C,1)/EMA55)<0.05 OR ABS(1-C/EMA55)<0.05 OR ABS(1-MA(C,2)/EMA55)<0.05);
PJCY4:=EMA13>EMA55 OR EMA13>MA(EMA13,5);
PJCY:=PJCY1 AND PJCY2 AND PJCY3 AND PJCY4;
DRAWTEXT(PJCY, L-0.4,'破镜重圆'),COLORYELLOW;
BBG1:=C>=REF(C,1) AND REF(C,1)>=REF(C,2);
BBG2:=V>=REF(V,1) AND REF(V,1)>=REF(V,2);
BBG3:=COUNT(C>=O,3)=3;
BBG:=BBG1 AND BBG2 AND BBG3;
DRAWTEXT(BBG AND FILTER(BBG,3), L-0.4,'步步高'),COLORYELLOW;
DJ1:=EMA13>EMA34 AND EMA34DJ2:=O>EMA55;
DJ3:=CROSS(EMA13,EMA55) OR ABS(1-EMA13/EMA55)<0.002;
DJ4:=O>C AND CHKDJ:= DJ2 AND DJ3 AND DJ4;
DRAWTEXT(HKDJ AND FILTER(HKDJ,10),L,'黑客点击'),RGB(255,128,64);
XN1:=ABS(1-HHV(EMA55,5)/LLV(EMA55,5))<0.02;
XN2:=CROSS(EMA13,EMA55) OR ABS(1-EMA13/EMA55)<0.002;
XN3:=C>O AND V>REF(V,1) AND C>EMA55;
HYXN:=XN1 AND XN2 AND XN3;
DRAWTEXT(HYXN AND FILTER(HYXN,5),L,'红衣侠女'),COLORRED;
LY1:=COUNT(ABS(1-EMA55/EMA34)<0.1,20)>=16;
LY2:=COUNT(CROSS(EMA34,EMA13),40)>=1 AND COUNT(CROSS(EMA55,EMA13),40)>=1; LY3:=CROSS(EMA13,EMA55);
HDLY:=LY1 AND LY2 AND LY3;
DRAWTEXT(HDLY AND FILTER(HDLY,5),L-0.3,'海底捞月'),COLORRED;
JXHH:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55); DRAWTEXT(JXHH,L-0.4,'均线互换'),COLORRED;
MKED1:=BARSLAST(REF(CROSS(EMA34,EMA13),1));
MKED2:=COUNT(H>=EMA55,MKED1)=MKED1;
MKED:=MKED2 AND CROSS(EMA13,EMA34);
DRAWTEXT(MKED,L-0.2,'梅开二度'),COLORRED;
YY1:=C>EMA13 AND OYY2:=C>EMA34 AND OYY3:=C>EMA55 AND OYYSX:=YY1 AND YY2 AND YY3;
DRAWTEXT(YYSX,L-0.2,'一阳三线'),COLORRED;
MAX3:=MAX(MAX(EMA13,EMA34),EMA55);
MIN3:=MIN(MIN(EMA13,EMA34),EMA55);
JG1:=ABS(EMA13-EMA34)JG2:=ABS(EMA34-EMA55)JG3:=C>=O*1.03 AND C>MAX3;
JG4:=O>MIN3 AND OJG5:=C>REF(H,5);
JG6:=(C-EMA34)/EMA34<=0.15;
JG7:=V>MA(V,5) AND MA(V,10);
JGEQ:=JG1 AND JG2 AND JG3 AND JG4 AND JG5 AND JG6 AND JG7;
DRAWTEXT(JGEQ,L-0.2,'揭竿而起'),COLORRED;
MAX4:=MAX(MAX(MAX(EMA13,EMA34),EMA55),H);
MIN4:=MIN(MIN(MIN(EMA13,EMA34),EMA55),L);
SXTJ1:=HHV(MAX4,60);
SXTJ2:=LLV(MIN4,60);
SXTJ3:=EVERY(ABS(1-SXTJ1/SXTJ2)<0.3,20);
SXTJ:=SXTJ3 AND (YYSX OR JGEQ);
DRAWTEXT(SXTJ AND FILTER(SXTJ,10),L-0.2,'三线推进'),COLORRED;
TSWL1:=CROSS(EMA13,EMA34) AND EMA13DRAWTEXT(TSWL1,L-0.2,'投石问路'),COLORRED;