《股票-135战法中的走四方和三剑客 选股公式怎么写.docx》由会员分享,可在线阅读,更多相关《股票-135战法中的走四方和三剑客 选股公式怎么写.docx(22页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、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)<=10ANDY>10;DRAWICON(JHJX,H,1);DRAWTEXT(JHJX,H,见好就收),COLORF00FF0;红杏出墙HX1:=EMA13<EMA34ANDEMA34<EMA55;股价长期下跌,并且远离长期均线HX2:=BARSLAST(C-
2、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.004ANDC<EMA34;HX5:=REF(C,1)<EMA13ANDC>EMA13ANDC>O;HX7:=HX1ANDHX3ANDHX4ANDHX5;HX8:=HX7ANDFILTER(HX7,10);知足后10天内不标记DRAWTEXT(HX8,L-
3、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>EMA55ANDCOUNT(L<EMA55,5)>=1;股价送上55日均线MYSS:=BR1ANDBR2ANDBR3;DRAWTEXT(MYSSANDFILTER(MYSS,5),H,蚂蚁上树),COLOR00C5FF;黑客点击DJ1:=EMA13>EMA34ANDEMA3
4、4<EMA55;13日均线大于34日均线,34日均线小于55日均线DJ2:=O>EMA55;开盘价大于55日均线DJ3:=CROSS(EMA13,EMA55)ORABS(1-EMA13/EMA55)<0.002;DJ4:=O>CANDC<REF(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(
5、1-EMA13/EMA55)<0.002;XN3:=C>OANDV>REF(V,1)ANDC>EMA55;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
6、:=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);DRAWT
7、EXT(MKED,L-0.1,梅开二度),COLOR0044FF;一阳三线YY1:=C>EMA13ANDO<EMA13;YY2:=C>EMA34ANDO<EMA34;YY3:=C>EMA55ANDO<EMA55;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:
8、=ABS(EMA34-EMA55)<C*0.05;JG3:=C>=O*1.03ANDC>MAX3;阳线3JG4:=O>MIN3ANDO<MAX3;JG5:=C>REF(H,5);JG6:=(C-EMA34)/EMA34<=0.15;控制价高JG7:=V>MA(V,5)ANDMA(V,10);JGEQ:=JG1ANDJG2ANDJG3ANDJG4ANDJG5ANDJG6ANDJG7;DRAWTEXT(JGEQ,H+0.1,揭竿而起),COLORGREEN;三线推进MAX4:=MAX(MAX(MAX(EMA13,EMA34),EMA55),H);MI
9、N4:=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)ANDC<O;LZ2:=C<=REF(C,1)ANDREF(C,1)&l
10、t;=REF(C,2);LZ3:=MA(V,3)<REF(V,3);LZ4:=REF(C,3)>EMA13AND(C>EMA55ORABS(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,
11、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/O>1.01ANDH/C>1.025;收阳有上影YZ2:=EMA13>MAX(EMA34,EMA55)ANDC>1.05*EMA13ANDO>MA(C,11);昨收阳今大于均线YZDX:=YZ1ANDYZ2;DRAWTEXT(YZDX
12、,(H+C)/2,一枝独秀),COLORF00FF0;独上高楼DSGL1:=REF(C,1)>=REF(O,1);DSGL2:=O/REF(C,1)>1.029ANDO/C>1.03ANDO/MAX(EMA13,EMA55)>1.03;DSGL:=DSGL1ANDDSGL2;DRAWTEXT(DSGL,(O+C)/2,独上高楼),COLORF00FF0;金屋藏娇JWCJ1:=C<OANDREF(C,1)<REF(O,1);JWCJ2:=O<=REF(C,1)ANDL>=REF(L,1);JWCJ3:=REF(C,1)/REF(L,1)>1.
13、02;JWCJ4:=EMA13<EMA34OREMA13<EMA55;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:=C>OANDABS(1-C/REF(O,1)<0.025ANDABS(1-O/REF(C,1)<0.025;RYHB3:=EMA13<REF(EMA
14、13,1)ORABS(1-EMA13/REF(EMA13,1)<0.01AND(EMA13<EMA34OREMA13<EMA55);RYHB4:=REF(L,1)<=LLV(REF(L,1),10);RYHB:=RYHB1ANDRYHB2ANDRYHB3ANDRYHB4;DRAWTEXT(RYHB,LOW,日月合璧),COLORYELLOW;投石问路TSWL1:=CROSS(EMA13,EMA34)ANDEMA13<EMA55;DRAWTEXT(TSWL1,L-0.1,投石问路),COLOR0044FF;分道扬镳FDYB:=CROSS(EMA34,EMA13)AN
15、DEMA34>EMA55;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:=EMA13
16、<LLV(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/O>1.07;MXZD2:=EMA13>HHV(REF(EMA13,1),5)ANDV>HHV(REF(V,1),10)ANDV/MA(REF(V,1),5)>2;MXZD:=MXZD1ANDMXZD2
17、;DRAWTEXT(MXZD,H+0.01,明修栈道),COLORF00FF0;暗度陈仓ADCC1:=O/C>1.05ANDEMA13/EMA55<1.1ANDEMA13>MA(EMA13,5);ADCC2:=O/REF(C,1)<1.03;V<HHV(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(C,1)ANDC
18、>=REF(O,1);PJCY3:=(ABS(1-REF(C,1)/EMA55)<0.05ORABS(1-C/EMA55)<0.05ORABS(1-MA(C,2)/EMA55)<0.05);PJCY4:=EMA13>EMA55OREMA13>MA(EMA13,5);PJCY:=PJCY1ANDPJCY2ANDPJCY3ANDPJCY4;DRAWTEXT(PJCY,LOW,破镜重圆),COLORYELLOW;一石二鸟YSEN1:=REF(C,2)>REF(O,2)ANDREF(C,1)<REF(O,1)ANDC<O;YSEN2:=REF(C,
19、2)>EMA55ANDEMA13>EMA55ANDEMA13>=MA(EMA13,5);YSEN3:=REF(V,2)>REF(V,1)ANDREF(V,2)>V;YSEN:=YSEN1ANDYSEN2ANDYSEN3;DRAWTEXT(YSEN,H+0.01,一石二鸟),COLORBLUE;拖泥带水TNDS1:=O/REF(C,1)>1.05ANDMIN(C,O)/L>1.03;TNDS2:=C/MAX(EMA13,EMA55)>1.03ANDC>REF(C,1);TNDS:=TNDS1ANDTNDS2;DRAWTEXT(TNDS,(O+
20、C)/2,拖泥带水),COLORF00FF0;金蝉脱壳JCTQ1:=C<OAND(EMA13/EMA55>1.1OR(C/MIN(EMA13,EMA55)>1.1)ANDEMA13>MA(EMA13,5);JCTQ2:=REF(O,1)>=REF(C,2)ANDREF(C,1)>REF(O,1)ANDO<=REF(C,1)ANDC>REF(O,1);JCTQ:=JCTQ1ANDJCTQ2;DRAWTEXT(JCTQ,(O+C)/2,金蝉脱壳),COLORF00FF0;一箭穿心YJCX:=CROSS(EMA55,EMA13);DRAWTEXT(YJ
21、CX,L-0.1,一箭穿心),COLOR0044FF;步步高BBG1:=C>=REF(C,1)ANDREF(C,1)>=REF(C,2);3日内收盘价都比前日收盘价高BBG2:=V>=REF(V,1)ANDREF(V,1)>=REF(V,2);3日内量都比前日量高BBG3:=COUNT(C>=O,3)=3;BBG:=BBG1ANDBBG2ANDBBG3;DRAWTEXT(BBGANDFILTER(BBG,3),(C+O)/2,步步高),COLORFF00FF;双飞燕SFY1:=EMA13>EMA34ANDEMA34>EMA55;SFY2:=REF(O,
22、1)>=REF(C,2)ANDO>=REF(C,1)ANDREF(C,2)>=REF(O,2);SFY3:=COUNT(C>OANDC/O<1.02,2)=2ORCOUNT(C<OANDO/C<1.02,2)=2;SFY4:=V<REF(V,1);SFY:=SFY1ANDSFY2ANDSFY3ANDSFY4;DRAWTEXT(SFYANDFILTER(SFY,2),L,双飞燕),COLORYELLOW;三剑客SJK1:=EMA13>EMA34ANDEMA34>EMA55;SJK2:=COUNT(C<=OANDO/C<1.0
23、3,3)=3ANDCOUNT(ABS(1-REF(C,1)/C)<1.03,2)=2;SJK:=SJK1ANDSJK2;DRAWTEXT(SJKANDFILTER(SJK,3),L,三剑客),COLORYELLOW;四星望月SXWY1:=COUNT(C>=OANDC/O<1.03,4)=4;SXWY2:=(ABS(EMA13-EMA34)+ABS(EMA34-EMA55)/C<0.1;主均线相距很近或者根本持平SXWY3:=EMA13<EMA55;SXWY:=SXWY1ANDSXWY2ANDSXWY3;DRAWTEXT(SXWYANDFILTER(SXWY,5),
24、H,四星望月),COLOR00C5FF;星星点灯XXDD1:=ABS(1-C/O)*100<=2.5ANDH/MAX(C,O)>1.03ANDREF(C,1)/REF(O,1)>1.05;XXDD2:=O>=REF(C,1)ANDABS(1-REF(EMA13,1)/EMA55)<0.1;XXDD:=XXDD1ANDXXDD2;DRAWTEXT(XXDD,(O+C)/2,星星点灯),COLORGREEN;过河拆桥GHCQ1:=C<OANDO/C>=1.04;GHCQ2:=O>EMA13ANDC<EMA13;GHCQ3:=EMA13/EMA5
25、5>1.1ANDABS(1-EMA13/MA(EMA13,3)<0.02;GHCQ:=GHCQ1ANDGHCQ2ANDGHCQ3;DRAWTEXT(GHCQ,(O+C)/2,过河拆桥),COLORF00FF0;狗急跳墙GJTQ1:=O/REF(C,1)>1.02ANDL>REF(C,1);GJTQ2:=V>MA(V,5);GJTQ3:=EMA13/EMA55>1.1;GJTQ:=GJTQ1ANDGJTQ2ANDGJTQ3;DRAWTEXT(GJTQ,(O+C)/2,狗急跳墙),COLORF00FF0;双蹄并进STBJ1:=CROSS(DMI.PDI,DMI.
26、MDI);STBJ2:=ABS(1-DMI.ADX/DMI.ADXR)<0.1;STBJ:=STBJ1ANDSTBJ2;DRAWTEXT(STBJ,(O+C)/2,双蹄并进),COLORGREEN;一剑封喉YJFH1:=REF(C,1)>=REF(O,1);YJFH2:=H/MAX(C,O)>=1.035;YJFH3:=V/MA(REF(V,1),11)>3ANDEMA13/EMA55>1.05;YJFH:=YJFH1ANDYJFH2ANDYJFH3;DRAWTEXT(YJFH,(H+L)/2,一剑封喉),COLORF00FF0;小鸟依人XNYR1:=REF(C,
27、1)/REF(O,1)>1.05;XNYR2:=O<=REF(C,1)ANDABS(1-C/O)<0.02;XNYR3:=COUNT(JGEQORYYSXORHYXN,10)>=1ANDCOUNT(JGEQORYYSXORHYXN,2)=0;XNYR:=XNYR1ANDXNYR2ANDXNYR3;DRAWTEXT(XNYR,H+0.01,小鸟依人),COLORBLUE;立竿见影LGJY1:=O<=REF(C,1)ANDV<REF(V,1)ANDC<O;LGJY2:=COUNT(JGEQORYYSXORHYXN,2)=1;LGJY:=LGJY1ANDLG
28、JY2;DRAWTEXT(LGJY,H+0.1,立竿见影),COLORBLUE;节外生枝JWSZ1:=EMA13>MAX(EMA34,EMA55)ANDEMA13/EMA55>1.1ANDREF(C,1)>1.04*EMA13ANDREF(C,1)/REF(O,1)>1.04;JWSZ2:=ABS(1-C/O)<0.015ANDABS(1-REF(C,1)/C)<0.02;JWSZ:=JWSZ1ANDJWSZ2;DRAWTEXT(JWSZ,(H+C)/2,节外生枝),COLORF00FF0;笑里藏刀XLCD1:=REF(H,1)/MAX(REF(C,1),R
29、EF(O,1)>1.04;XLCD2:=H<REF(H,1)ANDO>=REF(C,1);XLCD3:=EMA13/EMA55>1.05ANDC/EMA13>1.03;XLCD:=XLCD1ANDXLCD2ANDXLCD3;DRAWTEXT(XLCD,(O+C)/2,笑里藏刀),COLORF00FF0;马失前蹄MSQT1:=EMA55/EMA13>1.04ANDEMA13/C>1.03;MSQT2:=O<=REF(L,1)ANDREF(O,1)/REF(C,1)>1.03;MSQT:=MSQT1ANDMSQT2;DRAWTEXT(MSQT,
30、(O+C)/2,马失前蹄),COLORYELLOW;绝处逢生JCFS1:=EMA55>EMA13ANDEMA13>C;JCFS2:=O<=REF(L,1)ANDC/O>1.05;JCFS:=JCFS1ANDJCFS2;DRAWTEXT(JCFS,H,绝处逢生),COLORYELLOW;一阴三线YYSX1:=C<EMA13ANDO>EMA13;一阴三线YYSX2:=C<EMA34ANDO>EMA34;YYSX3:=C<EMA55ANDO>EMA55;YYYSX:=YYSX1ANDYYSX2ANDYYSX3;DRAWTEXT(YYYSX,
31、H+0.1,一阴三线),COLORF00FF0;落井下石LJXS1:=O<REF(L,1)ANDEMA13/EMA55>1.05ANDC<O;DRAWTEXT(LJXS1,H+0.01,落井下石),COLOR00C5FF;晨钟暮鼓CZMG1:=REF(C,1)/REF(O,1)>1.05ANDREF(V,1)/REF(V,2)>2ANDHSL>3;CZMG2:=C>OANDV<REF(V,1);CZMG:=CZMG1ANDCZMG2;DRAWTEXT(CZMG,H,晨钟暮鼓),COLORF00FF0;135战法中走四方ZSF1:=REF(C,4)
32、>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;改成选股公式135战法中三剑客SJK1:=EMA13>EMA34ANDEMA34>EMA55;SJK2:=COUNT(C<=OANDO/C<1.03,3)=3ANDCOUNT(ABS(1-REF(C,1)/C)<1.03,2)=2;SJK:=SJK1ANDSJK2;DRAWTEXT(SJKANDFILTER(SJK,3),L,三剑客),COLORYELLOW;改成选股公式假如互助答疑不能解决需求,可以到?威客任务?发布有偿悬赏。