135均线战法的主图(主图、源码、贴图)介绍
135均线战法的主图(主图、源码、贴图)
DRAWGBKLAST((CLOSE>0),STRIP(RGB(70,70,70),RGB(60,60,60),1));
EMA1:=EMA(C,1);
ema13:EMA(C,13),COLORFF8080;
ema34:EMA(C,34),colorFFFF00;
ema55:EMA(C,55),colorff00ff;
ema120:EMA(C,120),colorgreen;
MA30:MA(C,30),coloryellow,POINTDOT,LINETHICK2;
生命线:EMA(CLOSE,453),colorff00ff,POINTDOT,LINETHICK2;
LOCK:=1;
M8:=EMA(CLOSE,8);
M13:=EMA(M8,13);
VAR1:=EMA(M13,62);
VAR2:=(CLOSE+HIGH+LOW)/3;
VAR3:=EMA(VAR2,10)*LOCK;
VAR4:=REF(VAR3,1)*LOCK;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,8,0),COLORFF5B00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,10,0),COLOR000000;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,7,0),COLORFF6C00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,6,0),COLORFF7B00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,5,0),COLORFF9C00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,4,0),COLORFFBE00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFFCC00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),COLORFFee00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),COLORFFFF00;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,8,0),COLOR070084;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,10,0),COLOR000000;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7,0),COLOR0000A3;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,6,0),COLOR0000B7;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,5,0),COLOR0000CD;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,4,0),COLOR0000E9;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3,0),COLOR0754E9;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2,0),COLOR076EF3;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1,0),COLOR077BF3;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0),COLOR0726CA;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5,0),COLOR0726CA;
STICKLINE(OPEN>CLOSE,CLOSE,LOW,0.5,0),COLORDE9100;
STICKLINE(OPEN>CLOSE,OPEN,HIGH,0.5,0),COLORDE9100;
x1:=(C+L+H)/3;
bb13:=ATAN(EMA(x1,13)-REF(EMA(x1,13),1))*3.1416*10;
ema8:=EMA(C,8);
DRAWTEXT(FILTER(bb13>1 AND EMA(x1,13)>REF(EMA(x1,8),1),10),ema8,'∠45上升'),colorbbbbbb;
ar1:=ema55>ema34 AND ema34>ema13;
ar2:=BARSLAST((C-ema13)/ema13*100<-6);
ar3:=ema13>=REF(ema13,2);
ar4:=COUNT(CROSS(C,ema13),ar2)=1;
ar5:=ar1 AND ar2 AND ar3 AND ar4;
ar6:=ar5 AND FILTER(ar5,10);
DRAWTEXT(ar6,L-0.15,'红杏出墙'),COLOR00ccff;
STICKLINE(ar6,O,(O+C)/2,7,0),COLOR00ccff;
br1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;
br2:=ABS((ema13-ema34)+(ema34-ema55))/C<0.2;
br3:=C>ema55 AND (REF(C,1)<REF(ema55,1) OR REF(C,2)<REF(ema55,2) OR REF(C,3)<REF(ema55,3) OR REF(C,4)<REF(ema55,4) OR REF(C,5)<REF(ema55,5));
br4:=br1 AND br2 AND br3;
DRAWTEXT(br4 AND FILTER(br4,10),L-0.11,'蚂蚁上树'),color00C5FF;
STICKLINE(br4 AND FILTER(br4,10),O,(C+C)/2,7,0),color00C5FF;
cr1:=(C-REF(C,1))/REF(C,1)*100>0.5;
cr2:=V>MA(V,5)*0.6;
cr3:=COUNT(CROSS(ema13,ema55),3)=1;
cr4:=ABS(ema34-ema55)/ema55<0.03;
cr5:=ema55<=ema120 AND ema55>=REF(ema55,1);
cr6:=FILTER(cr1 AND cr2 AND cr3 AND cr4 AND cr5,2);
STICKLINE(cr6,O,(O+C)/2,7,0),colorf00ff0;
DRAWTEXT(cr6,L-0.09,'红衣侠女'),colorf00ff0;
dr1:=ema13>ema34 AND ema34<ema55;
dr2:=BARSLAST(CROSS(C,ema55) );
dr3:=H=HHV(H,dr2);
dr4:=BARSLAST(dr3);
dr5:=COUNT(O>C AND C<REF(C,1) AND C>ema55 AND BETWEEN((C-ema55)/ema55,0,0.02),dr4)=1;
dr6:=C>REF(C,1) ;
dr7:= dr1 AND dr5 AND dr6 ;
dr8:=dr7 AND FILTER(dr7 ,10);
DRAWTEXT(dr8,L-0.09,'黑客点击'),colord6ba63;
STICKLINE(dr8,O,(C+O)/2,7,0),colord6ba63;
er:=BARSLAST(REF(CROSS(ema55,ema34),1)) AND CROSS(ema34,ema55);
DRAWTEXT(er,L-0.09,'均线互换'),color0099ff;
STICKLINE(er,O,(C+O)/2,7,0),color0099ff;
fr:=BARSLAST(REF(CROSS(ema34,ema13),1)) AND CROSS(ema13,ema34);
DRAWTEXT(fr,L-0.09,'梅开二度'),colorwhite;
STICKLINE(fr,O,(C+O)/2,7,0),colorwhite;
gr1:=BARSLAST(BETWEEN("bias.bias2"(6,13,24),0,5) );
gr2:=ema13>ema34 AND ema34>ema55 AND ema13>REF(ema13,1);
gr3:=COUNT("bias.bias2"(6,13,24)>10 AND H=HHV(H,gr1),gr1);
gr4:=H=HHV(H,gr1);
gr5:="macd.macd"(12,26,9)<REF("macd.macd"(12,26,9),1);
gr6:=gr2 AND gr3 AND gr4;
gr7:=gr2 AND gr3 AND gr4 AND gr5;
DRAWTEXT(gr6 AND gr7,H*1.05,'见好就收!'),colorffffff;
hr2:=ema13>=REF(ema13,3) AND ema34>=REF(ema34,1) AND ema55>=REF(ema55,1) AND CROSS(C,ema13) AND CROSS(C,ema34) AND CROSS(C,ema55);
DRAWTEXT(hr2 AND FILTER(hr2,10),H+0.5,'揭竿而起'),color9900cc;
DRAWTEXT(hr2 AND FILTER(hr2,10),L-0.09,'三线推进'),coloryellow;
STICKLINE(hr2 AND FILTER(hr2,10),O,(C+O)/2,7,0),coloryellow;
SK:= EMA(Var1,13)-EMA(Var1,73);
SD:= EMA(SK,2);
DRAWTEXT((CROSS(sk,sd) AND sk<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(sk,sd) AND sk<=-0.14 )
OR (CROSS(sk,sd) AND sk<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短'),COLOR0000cc;
STICKLINE((CROSS(sk,sd) AND sk<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(sk,sd) AND sk<=-0.14 )
OR (CROSS(sk,sd) AND sk<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,(C+O)/2,0),COLOR0000cc;
MA1:=MA(((HIGH + LOW) / 2),5);MA2:=MA(((HIGH + LOW) / 2),35);x:=((MA1 - MA2) * 100);
均势一:=(((((((((CLOSE + REF(CLOSE,1)) + REF(CLOSE,2)) + REF(CLOSE,3)) + REF(CLOSE,4)) + REF(CLOSE,5)) + REF(CLOSE,6)) + REF(CLOSE,7)) + REF(CLOSE,8)) / 9);
均势二:=((((CLOSE + REF(CLOSE,1)) + REF(CLOSE,2)) + REF(CLOSE,3)) / 4);
趋势一:=((((均势一 - REF(均势一,1)) / REF(均势一,1)) * 1000) + 50);
趋势二:=((((均势二 - REF(均势二,1)) / REF(均势二,1)) * 1000) + 50);
波段高位:=(CROSS(趋势一,趋势二) AND (COUNT((CLOSE > REF(HIGH,1)),12) > 5));
LC:=REF(CLOSE,1);
方向值:=((SMA(MAX((CLOSE - LC),0),6,1) / SMA(ABS((CLOSE - LC)),6,1)) * 100);
短抄一:=((CROSS(趋势二,(趋势一 + 2)) AND (x < 0)) AND ((方向值 < 10) OR (REF(方向值,1) < 10)));
短抄二:=((((CROSS(趋势二,MA1) AND (MA1 < 20)) AND (方向值 > 趋势二)) AND (x < 0)) AND(((趋势二 < 20) OR (REF(趋势二,1) < 15)) OR (REF(趋势二,2) < 15)));
DRAWTEXT((短抄一 OR 短抄二),(LOW * 0.99),'短底'),Color0000FF;
DRAWTEXT(波段高位,(HIGH * 1.03),'卖出'),color00ffff;
V5:=EMA(CLOSE,1);主线:=EMA(V5,5) ;
本:=EMA(HHV(主线,5),1);
急进:=EMA(HHV(本,17),1);
稳健:=EMA(HHV(急进,17),2);
投资:EMA(HHV(稳健,17),3),linethick2, colorgray;
Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;
YY1:=C>MA(C,13) AND OPEN<MA(C,13);//{一阳三线}
YY3:=C>MA(C,34) AND OPEN<MA(C,34);
YY5:=C>MA(C,55) AND OPEN<MA(C,55);
DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.1,'一阳三线'),colorred;
SJ1:=ABS(MA(CLOSE,13)-MA(CLOSE,34))<C*0.01;//{13线34线55线接近}
SJ2:=ABS(MA(CLOSE,34)-MA(CLOSE,55))<C*0.01;
SJ3:=CROSS(MA(CLOSE,13),MA(CLOSE,55));//{13线上穿55线}
DRAWTEXT(SJ1 AND SJ2 AND SJ3,HIGH*1.05,'三军集结'),colorred;
RY1:=C/OPEN>1.04;//{阳线4%}
RY2:=REF(OPEN,1)/REF(CLOSE,1)>1.04;//{阴线4%}
RY3:=ABS(OPEN-REF(C,1))<C*0.02 AND ABS(C-REF(OPEN,1))<C*0.02;//{两线相等}
DRAWTEXT(RY1 AND RY2 AND RY3 ,LOW,'日月合璧'),coloryellow;
JW1:=C<OPEN AND REF(C,1)<REF(OPEN,1);
JW2:=OPEN<REF(C,1) AND C>REF(L,1);
JW3:=O<MA(C,13) AND O<MA(C,34) AND O<MA(C,55);
JW:=JW1 AND JW2 AND JW3;
DRAWTEXT(JW,LOW-0.2,'金屋藏娇'),coloryellow;
TS1:=CROSS(MA(C,13),MA(C,34));//{13线上穿34线}
TS2:=MA(C,13)<MA(C,55);
TS:=TS1 AND TS2;
DRAWTEXT(TS,LOW-0.2,'投石问路'),COLORF00FF0;
YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02;//{收阳有上影}
YZ2:=REF(C,1)>REF(O,1) AND O>MA(C,11);//{昨收阳 今大于均线}
YZ:=YZ1 AND YZ2 AND Y>10;
DRAWTEXT(YZ,HIGH+0.2,'一枝独秀'),COLORF00FF0;
DS1:=OPEN/C>1.04 AND O/REF(C,1)>1.03;//{高开收阴}
DS2:=V*100/FINANCE(7)>0.08 AND Y>8;//{换手高涨幅大}
DS:=DS1 AND DS2;
DRAWTEXT(DS,HIGH*1.01,'独上高楼'),colorgreen;
YJ1:=H/O>1.04;
YJ2:=ABS(C-O)<C*0.03;
YJ3:=C/MA(C,13)>1.1;
YJ:=YJ1 AND YJ2 AND DS2 AND YJ3 AND YZ2;
DRAWTEXT(YJ,HIGH+0.3,'一剑封喉'),colorred;
T:=(MA(C,13)-MA(C,55))/MA(C,13)*100;
TT1:=C<MA(C,13) AND OPEN>MA(C,13);//{断头铡刀}
TT3:=C<MA(C,34) AND OPEN>MA(C,34);
TT5:=C<MA(C,55) AND OPEN>MA(C,55);
DRAWTEXT(TT1 AND TT5 AND TT3,H*1.05,'断头铡刀'),colorred;
DRAWTEXT(CROSS(eMA34,eMA13),eMA34*1.01,'S分道扬镳'), COLOR00FF00;
VAR10:=MA(CLOSE,80)-MA(CLOSE,10)/3;
VAR11:=REF(CLOSE,1);
VAR12:=(SMA(MAX(CLOSE-VAR11,0),N,1))/(SMA(ABS(CLOSE-VAR11),N,1))*100;
DRAWTEXT(IF(CLOSE<VAR10 AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW-0.7,'进场'),colorred;
DRAWTEXT(CROSS(m,VAR12),HIGH*1.04,'获利减仓');
DRAWTEXT(CROSS(VAR3,VAR4),L-0.3,'买');
FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'←底背'),COLORA6E500;
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.04),'←顶背'),COLOR1880FF;
gd13040