指标源码: EMA13:MA(C,13),COLORYELLOW,LINETHICK2; EMA34:MA(C,34),COLORGREEN; EMA55:MA(C,55),COLORRED; {101红杏出墙} HX1:=EMA13HX2:=BARSLAST((C-EMA13)/EMA13*100<-6);{收盘价在13均线%6到现在的天数} HX3:=ABS(1-EMA55/REF(C,1))>0.1; HX6:=BARSLAST(CROSS(EMA55,EMA34))>=20;{13日均线下降趋于走平} HX4:=ABS(1-REF(EMA13,1)/EMA13)<0.004 AND CHX5:=REF(C,1)EMA13 AND C>O; HX7:=HX1 {AND HX3} AND HX4 AND HX5 ; HX8:=HX7 AND FILTER(HX7,10);{满足后10天内不标记} 红杏出墙:=HX8; DRAWTEXT(红杏出墙,L*0.98,'101红杏出墙'),COLORYELLOW; A101:红杏出墙*A100,COLORYELLOW,NODRAW; {102蚂蚁上树} BR1:=COUNT(BETWEEN(((C-O)/O)*100,0,5) ,5)=5;{5日内收盘价都比前日收盘价高} BR2:=(ABS(EMA13-EMA34)+ABS(EMA34-EMA55))/C<0.1;{主均线相距很近或基本持平} BR3:=C>EMA55 AND COUNT(L=1;{股价送上55日均线} MYSS:=BR1 AND BR2 AND BR3; 蚂蚁上树:=MYSS AND FILTER(MYSS,5); DRAWTEXT(蚂蚁上树,L*0.99,'102蚂蚁上树'),COLORYELLOW; A102:蚂蚁上树*A100,COLORYELLOW,NODRAW; {103马失前蹄} 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.98,'103'),COLORYELLOW; {104绝处逢生} JCFS1:=EMA55>EMA13 AND EMA13>C; JCFS2:=O<=REF(L,1) AND C/O>1.05; JCFS:= JCFS1 AND JCFS2; DRAWTEXT(JCFS,L*0.98,'104'),COLORYELLOW; {105金屋藏娇} 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.98,'105'),COLORYELLOW; {106日月合璧} 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.98,'106'),COLORYELLOW; {107破镜重圆} 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.98,'107'),COLORYELLOW; {108步步高} BBG1:=C>=REF(C,1) AND REF(C,1)>=REF(C,2);{3日内收盘价都比前日收盘价高} BBG2:=V>=REF(V,1) AND REF(V,1)>=REF(V,2);{3日内量都比前日量高} 欢迎大家自行尝试! 关于指标大家可以私信找我免费领取! |