宁俊明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)=10ANDY10;{DRAWICON(JHJX,H,1);}DRAWTEXT(JHJX,H,'见好就收'),COLORF00FF0;{红杏出墙}HX1:=EMA13EMA34ANDEMA34EMA55;{股价长期下跌,并且远离长期均线}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.004ANDCEMA34;HX5:=REF(C,1)EMA13ANDCEMA13ANDCO;HX7:=HX1{ANDHX3}ANDHX4ANDHX5;HX8:=HX7ANDFILTER(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))/C0.1;{主均线相距很近或基本持平}BR3:=CEMA55ANDCOUNT(LEMA55,5)=1;{股价送上55日均线}MYSS:=BR1ANDBR2ANDBR3;DRAWTEXT(MYSSANDFILTER(MYSS,5),H,'蚂蚁上树'),COLOR00C5FF;{黑客点击}DJ1:=EMA13EMA34ANDEMA34EMA55;{13日均线大于34日均线,34日均线小于55日均线}DJ2:=OEMA55;{开盘价大于55日均线}DJ3:=CROSS(EMA13,EMA55)ORABS(1-EMA13/EMA55)0.002;DJ4:=OCANDCREF(C,1);HKDJ:=DJ2ANDDJ3ANDDJ4;DRAWTEXT(HKDJANDFILTER(HKDJ,10),L-0.03,'黑客点击'),COLORD6BA63;{红衣侠女}XN1:=ABS(1-HHV(EMA55,5)/LLV(EMA55,5))0.02;XN2:=CROSS(EMA13,EMA55)ORABS(1-EMA13/EMA55)0.002;XN3:=COANDVREF(V,1)ANDCEMA55;HYXN:=XN1ANDXN2ANDXN3;DRAWTEXT(HYXNANDFILTER(HYXN,5),L-0.05,'红衣侠女'),COLORF00FF0;{海底捞月}LY1:=COUNT(ABS(1-EMA55/EMA34)0.1,20)=16;LY2:=COUNT(CROSS(EMA34,EMA13),40)=1ANDCOUNT(CROSS(EMA55,EMA13),40)=1;LY3:=CROSS(EMA13,EMA55);HDLY:=LY1ANDLY2ANDLY3;DRAWTEXT(HDLYANDFILTER(HDLY,5),L-0.25,'海底捞月'),COLORGREEN;{均线互换}JXHH:=BARSLAST(REF(CROSS(EMA55,EMA34),1))ANDCROSS(EMA34,EMA55);DRAWTEXT(JXHH,L+0.09,'均线互换'),COLOR0099FF;{梅开二度}MKED1:=BARSLAST(REF(CROSS(EMA34,EMA13),1));MKED2:=COUNT(H=EMA55,MKED1)=MKED1;MKED:=MKED2ANDCROSS(EMA13,EMA34);DRAWTEXT(MKED,L-0.1,'梅开二度'),COLOR0044FF;{一阳三线}YY1:=CEMA13ANDOEMA13;YY2:=CEMA34ANDOEMA34;YY3:=CEMA55ANDOEMA55;YYSX:=YY1ANDYY2ANDYY3;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.03ANDCMAX3;{阳线3%}JG4:=OMIN3ANDOMAX3;JG5:=CREF(H,5);JG6:=(C-EMA34)/EMA34=0.15;{控制价高}JG7:=VMA(V,5)ANDMA(V,10);JGEQ:=JG1ANDJG2ANDJG3ANDJG4ANDJG5ANDJG6ANDJG7;DRAWTEXT(JGEQ,H+0.1,'揭竿而起'),COLORGREEN;{三线推进}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:=SXTJ3AND(YYSXORJGEQ);DRAWTEXT(SXTJANDFILTER(SXTJ,10),H+0.25,'三线推进'),COLOR00C5FF;{浪子回头}LZ1:=REF(C,2)REF(O,2)ANDREF(C,1)REF(O,1)ANDCO;LZ2:=C=REF(C,1)ANDREF(C,1)=REF(C,2);LZ3:=MA(V,3)REF(V,3);LZ4:=REF(C,3)EMA13AND(CEMA55ORABS(1-C/EMA55)0.01);LZHT:=LZ1ANDLZ2ANDLZ3ANDLZ4;DRAWTEXT(LZHTANDFILTER(LZHT,5),L-0.1,'浪子回头'),COLOR00FF99;{走四方}ZSF1:=REF(C,4)REF(O,4)AND(REF(C,4)EMA13ORREF(C,4)EMA34)AND(ABS(1-REF(EMA55,4)/EMA55)0.01ORMA(EMA55,4)REF(EMA55,5));ZSF2:=COUNT(ABS((1-REF(C,1)/C)*100)3,4)=4ANDMA(V,4)REF(V,4)*0.8;ZSF:=ZSF1ANDZSF2;DRAWTEXT(ZSFANDFILTER(ZSF,4),L-0.1,'走四方'),COLORBLUE;{一枝独秀}YZ1:=C/O1.01ANDH/C1.025;{收阳有上影}YZ2:=EMA13MAX(EMA34,EMA55)ANDC1.05*EMA13ANDOMA(C,11);{昨收阳今大于均线}YZDX:=YZ1ANDYZ2;DRAWTEXT(YZDX,(H+C)/2,'一枝独秀'),COLORF00FF0;{独上高楼}DSGL1:=REF(C,1)=REF(O,1);DSGL2:=O/REF(C,1)1.029ANDO/C1.03ANDO/MAX(EMA13,EMA55)1.03;DSGL:=DSGL1ANDDSGL2;DRAWTEXT(DSGL,(O+C)/2,'独上高楼'),COLORF00FF0;{金屋藏娇}JWCJ1:=COANDREF(C,1)REF(O,1);JWCJ2:=O=REF(C,1)ANDL=REF(L,1);JWCJ3:=REF(C,1)/REF(L,1)1.02;JWCJ4:=EMA13EMA34OREMA13EMA55;JWCJ:=JWCJ1ANDJWCJ2ANDJWCJ3ANDJWCJ4;DRAWTEXT(JWCJ,LOW-0.2,'金屋藏娇'),COLORYELLOW;{日月合璧}RYHB1:=REF(O,1)=REF(C,2)ANDREF(C,1)REF(O,1)ANDABS(1-REF(C,1)/REF(L,1))0.02;RYHB2:=COANDABS(1-C/REF(O,1))0.025ANDABS(1-O/REF(C,1))0.025;RYHB3:=EMA13REF(EMA13,1)ORABS(1-EMA13/REF(EMA13,1))0.01AND(EMA13EMA34OREMA13EMA55);RYHB4:=REF(L,1)=LLV(REF(L,1),10);RYHB:=RYHB1ANDRYHB2ANDRYHB3ANDRYHB4;DRAWTEXT(RYHB,LOW,'日月合璧'),COLORYELLOW;{投石问路}TSWL1:=CROSS(EMA13,EMA34)ANDEMA13EMA55;DRAWTEXT(TSWL1,L-0.1,'投石问路'),COLOR0044FF;{分道扬镳}FDYB:=CROSS(EMA34,EMA13)ANDEMA34EMA55;DRAWTEXT(FDYB,L-0.1,'分道扬镳'),COLOR0044FF;{三军集结}SJJJ3:=REF(EMA55,1)REF(EMA13,1);SJJJ4:=ABS(1-(MAX(MAX(EMA34,EMA55),EMA13)/MIN(MIN(EMA13,EMA34),EMA55)))0.005;SJJJ:=SJJJ3ANDSJJJ4;DRAWTEXT(SJJJANDFILTER(SJJJ,5),L-0.1,'三军集结'),COLOR0044FF;{突出重围}TCCW1:=REF(EMA55,1)REF(EMA13,1);TCCW2:=EMA13LLV(REF(EMA13,1),5)ANDABS(1-(MAX(MAX(EMA34,EMA55),EMA13)/MIN(MIN(EMA13,EMA34),EMA55)))0.008;TCCW:=TCCW1ANDTCCW2;DRAWTEXT(TCCWANDFILTER(TCCW,5),H+0.01,'突出重围'),COLORF00FF0;{明修栈道}MXZD1:=C/O1.07;MXZD2:=EMA13HHV(REF(EMA13,1),5)ANDVHHV(REF(V,1),10)ANDV/MA(REF(V,1),5)2;MXZD:=MXZD1ANDMXZD2;DRAWTEXT(MXZD,H+0.01,'明修栈道'),COLORF00FF0;{暗度陈仓}ADCC1:=O/C1.05ANDEMA13/EMA551.1ANDEMA13MA(EMA13,5);ADCC2:=O/REF(C,1)1.03;{VHHV(REF(V,1),5)ANDV/MA(REF(V,1),5)2};ADCC:=ADCC1ANDADCC2;DRAWTEXT(ADCC,(C+O)/2,'暗度陈仓'),COLOR00C5FF;{破镜重圆}PJCY1:=REF(O,1)/REF(C,1)1.02;PJCY2:=O=REF

1 / 20
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功