宁俊明135战法所有公式全编写主图通达信指标公式源码 联系客服

发布时间 : 星期日 文章宁俊明135战法所有公式全编写主图通达信指标公式源码更新完毕开始阅读9ef78b30793e0912a21614791711cc7930b77863

宁俊明135战法所有公式全编写主图通达信指标公式源码

135所有战法全编写,分享给大家,对照《135战法》书籍研究收获更大。

所有公式都包含在一个文本里方便大家下载。 里面添加了详细注释,方便大家学习和理解。 主图显示,更加直观。

注释详细,分享给大家,对照《135战法》书籍研究收获更大EMA13:MA(C,13),COLORWHITE,LINETHICK2; EMA34:MA(C,34),COLORYELLOW;

EMA55:MA(C,55),COLORFF00FF;{见好就收} Y:=(EMA13-EMA55)/EMA13*100; JHJX:=REF(Y,1)<=10 AND Y>10; {DRAWICON(JHJX,H,1);}

DRAWTEXT(JHJX,H,'见好就收'),COLORF00FF0; {红杏出墙}

HX1:=EMA13<EMA34 AND EMA34<EMA55;{股价长期下跌,并且远离长期均线}

HX2:=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 C<EMA34;

HX5:=REF(C,1)<EMA13 AND C>EMA13 AND C>O;

HX7:=HX1 {AND HX3} AND HX4 AND HX5 ;

HX8:=HX7 AND FILTER(HX7,10);{满足后10天内不标记} DRAWTEXT(HX8,L-0.05,'红杏出墙'),COLORYELLOW; {蚂蚁上树}

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<EMA55,5)>=1;{股价送上55日均线} MYSS:=BR1 AND BR2 AND BR3;

DRAWTEXT(MYSS AND FILTER(MYSS,5),H,'蚂蚁上树'),COLOR00C5FF; {黑客点击}

DJ1:=EMA13>EMA34 AND EMA34<EMA55;{13日均线大于34日均线,34日均线小于55日均线} DJ2:=O>EMA55;{开盘价大于55日均线}

DJ3:=CROSS(EMA13,EMA55) OR ABS(1-EMA13/EMA55)<0.002; DJ4:=O>C AND C<REF(C,1); HKDJ:= DJ2 AND DJ3 AND DJ4;

DRAWTEXT(HKDJ AND FILTER(HKDJ,10),L-0.03,'黑客点击'),COLORD6BA63;{红衣侠女}

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-0.05,'红衣侠女'),COLORF00FF0;{海底捞月}

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.25,'海底捞月'),COLORGREEN;{均线互换}

JXHH:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55);

DRAWTEXT(JXHH,L+0.09,'均线互换'),COLOR0099FF; {梅开二度}

MKED1:=BARSLAST(REF(CROSS(EMA34,EMA13),1)); MKED2:=COUNT(H>=EMA55,MKED1)=MKED1; MKED:=MKED2 AND CROSS(EMA13,EMA34); DRAWTEXT(MKED,L-0.1,'梅开二度'),COLOR0044FF; {一阳三线}

YY1:=C>EMA13 AND O<EMA13; YY2:=C>EMA34 AND O<EMA34; YY3:=C>EMA55 AND O<EMA55; YYSX:=YY1 AND YY2 AND YY3;

DRAWTEXT(YYSX,H+0.1,'一阳三线'),COLORRED;{揭竿而起}

MAX3:=MAX(MAX(EMA13,EMA34),EMA55); MIN3:=MIN(MIN(EMA13,EMA34),EMA55);

JG1:=ABS(EMA13-EMA34)<C*0.05;{13线34线55线接近}

JG2:=ABS(EMA34-EMA55)<C*0.05; JG3:=C>=O*1.03 AND C>MAX3;{阳线3%} JG4:=O>MIN3 AND O<MAX3; JG5:=C>REF(H,5);

JG6:=(C-EMA34)/EMA34<=0.15;{控制价高}