通达信——精选指标《135战法》指标源码
<p data-first-child></p><p >指标源码:</p><blockquote >EMA13:MA(C,13),COLORYELLOW,LINETHICK2; <br/>EMA34:MA(C,34),COLORGREEN; <br/>EMA55:MA(C,55),COLORRED; <br/>{101红杏出墙} <br/>HX1:=EMA13<EMA34 AND EMA34<EMA55;{股价长期下跌,并且远离长期均线} <br/>HX2:=BARSLAST((C-EMA13)/EMA13*100<-6);{收盘价在13均线%6到现在的天数} <br/>HX3:=ABS(1-EMA55/REF(C,1))>0.1; <br/>HX6:=BARSLAST(CROSS(EMA55,EMA34))>=20;{13日均线下降趋于走平} <br/>HX4:=ABS(1-REF(EMA13,1)/EMA13)<0.004 AND C<EMA34; <br/>HX5:=REF(C,1)<EMA13 AND C>EMA13 AND C>O; <br/>HX7:=HX1 {AND HX3} AND HX4 AND HX5 ; <br/>HX8:=HX7 AND FILTER(HX7,10);{满足后10天内不标记}<br/>红杏出墙:=HX8; <br/>DRAWTEXT(红杏出墙,L*0.98,'101红杏出墙'),COLORYELLOW; <br/>A101:红杏出墙*A100,COLORYELLOW,NODRAW;<br/>{102蚂蚁上树} <br/>BR1:=COUNT(BETWEEN(((C-O)/O)*100,0,5) ,5)=5;{5日内收盘价都比前日收盘价高} <br/>BR2:=(ABS(EMA13-EMA34)+ABS(EMA34-EMA55))/C<0.1;{主均线相距很近或基本持平} <br/>BR3:=C>EMA55 AND COUNT(L<EMA55,5)>=1;{股价送上55日均线} <br/>MYSS:=BR1 AND BR2 AND BR3;<br/>蚂蚁上树:=MYSS AND FILTER(MYSS,5); <br/>DRAWTEXT(蚂蚁上树,L*0.99,'102蚂蚁上树'),COLORYELLOW; <br/>A102:蚂蚁上树*A100,COLORYELLOW,NODRAW;<br/>{103马失前蹄} <br/>MSQT1:=EMA55/EMA13>1.04 AND EMA13/C>1.03; <br/>MSQT2:=O<=REF(L,1) AND REF(O,1)/REF(C,1)>1.03; <br/>MSQT:= MSQT1 AND MSQT2; <br/>DRAWTEXT(MSQT,L*0.98,'103'),COLORYELLOW; <br/>{104绝处逢生} <br/>JCFS1:=EMA55>EMA13 AND EMA13>C; <br/>JCFS2:=O<=REF(L,1) AND C/O>1.05; <br/>JCFS:= JCFS1 AND JCFS2; <br/>DRAWTEXT(JCFS,L*0.98,'104'),COLORYELLOW;<br/>{105金屋藏娇} <br/>JWCJ1:=C<O AND REF(C,1)<REF(O,1); <br/>JWCJ2:=O<=REF(C,1) AND L>=REF(L,1); <br/>JWCJ3:=REF(C,1)/REF(L,1)>1.02; <br/>JWCJ4:=EMA13<EMA34 OR EMA13<EMA55; <br/>JWCJ:=JWCJ1 AND JWCJ2 AND JWCJ3 AND JWCJ4; <br/>DRAWTEXT(JWCJ,L*0.98,'105'),COLORYELLOW; <br/>{106日月合璧} <br/>RYHB1:=REF(O,1)<=REF(C,2) AND REF(C,1)<REF(O,1) AND ABS(1-REF(C,1)/REF(L,1))<0.02; <br/>RYHB2:=C>O AND ABS(1-C/REF(O,1))<0.025 AND ABS(1-O/REF(C,1))<0.025; <br/>RYHB3:=EMA13<REF(EMA13,1) OR ABS(1-EMA13/REF(EMA13,1))<0.01 AND (EMA13<EMA34 OR EMA13<EMA55); <br/>RYHB4:=REF(L,1)<=LLV(REF(L,1),10); <br/>RYHB:=RYHB1 AND RYHB2 AND RYHB3 AND RYHB4; <br/>DRAWTEXT(RYHB,L*0.98,'106'),COLORYELLOW; <br/>{107破镜重圆} <br/>PJCY1:=REF(O,1)/REF(C,1)>1.02; <br/>PJCY2:=O<=REF(C,1) AND C>=REF(O,1); <br/>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); <br/>PJCY4:=EMA13>EMA55 OR EMA13>MA(EMA13,5); <br/>PJCY:=PJCY1 AND PJCY2 AND PJCY3 AND PJCY4; <br/>DRAWTEXT(PJCY,L*0.98,'107'),COLORYELLOW; <br/>{108步步高} <br/>BBG1:=C>=REF(C,1) AND REF(C,1)>=REF(C,2);{3日内收盘价都比前日收盘价高} <br/>BBG2:=V>=REF(V,1) AND REF(V,1)>=REF(V,2);{3日内量都比前日量高} </blockquote><h2>欢迎大家自行尝试! 关于指标大家可以私信找我免费领取!</h2> 谢谢了呀,辛苦了呀,支持呀! 厉害了! 路过,支持一下啦
页:
[1]