通达信成交量VOL抓牛突破抄底买入幅图指标源码:
趋势:= 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 底部:=10,COLORRED,LINETHICK2;底部1:=CROSS(趋势,底部);A1:=(2*CLOSE+HIGH+LOW)/4;A2:=LLV(LOW,27);A3:=HHV(HIGH,27);A4:=EMA((A1-A2)/(A3-A2)*100,13);A5:=EMA(0.618*REF(A4,1)+0.382*A4,3);底部2:=CROSS(A4,A5) AND A4 低位:=底部1 AND 底部2;GUYI2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;GUYI3:=SMA(SMA(GUYI2,3,1),3,1)/28.57;GUYI4:=EMA(GUYI3,5);GUYI5:=3*GUYI3-2*GUYI4;走牛:=CROSS(GUYI5,GUYI3) AND GUYI3 2.1 AND C GUYIA2:=LLV(LOW,10);GUYIA3:=HHV(HIGH,25);给力线:= EMA((CLOSE-GUYIA2)/(GUYIA3-GUYIA2)*4,4);N:=19;GUYIB1:=HHV(HIGH,N); GUYIB2:=LLV(LOW,N); 阻力:=EMA((CLOSE-GUYIB2)/(GUYIB1-GUYIB2),21)-0.5;操作:=EMA((CLOSE-GUYIB2)/(GUYIB1-GUYIB2),5)-0.5;要突破:=CROSS(操作,阻力) AND 阻力 要破位:=CROSS(阻力,操作) AND 阻力 0.25;{立桩成立判断}V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);T12:=V2 T0:=BARSLAST(T12);L1:=REF(L,T0);H1:=REF(H,T0);L11:=MIN(REF(L,1),L);L10:=MIN(L11,REF(L,2));L21:=MAX(REF(L,1),L);L20:=MAX(L21,REF(L,2));T111:=(REF(V2 =1,3) OR REF(V2 =1,2) OR REF(V2 =1,1)) AND ((L10 L1 AND L20 H1) OR (L11 L1 AND L21 H1) OR (L H1));T11:=T111 AND REF(T111,1)=0;C3:=REF(C,1);涨停板:=IF((C-C3)*100/C3 =(10-0.01*100/C3),1,0);跌停板:=IF((C3-C)*100/C3 =(10-0.01*100/C3),1,0);{顶部背离与底部背离}LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);顶部背离:=CROSS(88,RSI);底部背离:=CROSS(FF,MA15);{45度攻击}X1:=(3*C+L+H+O)/6;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);T1:=FILTER(BB13 1 AND EMA(X1,13) REF(EMA(X1,8),1),10);获利:=WINNER(C)*100;VOLUME:VOL,VOLSTICK;MAVOL1:MA(VOLUME,5),COLORWHITE;MAVOL2:MA(VOLUME,35),COLORYELLOW;MAVOL3:MA(VOLUME,135),COLORGREEN;{V2:IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NODRAW,COLORRED;}STICKLINE(V2 =1,0,VOL*0.5,2,0),COLORYELLOW;STICKLINE(给力线 =3.2,0,VOL,1,0),COLOR238E23;STICKLINE(低位,0,VOL,2,0),COLORMAGENTA;DRAWTEXT(低位,VOL*0.8, 底 ),COLORWHITE;DRAWICON(低位,VOL*1.1,5);STICKLINE(走牛,0,VOL,2,0),COLORRED;DRAWTEXT(走牛,VOL*1.15, 走牛 ),COLORWHITE;STICKLINE(要突破,0,VOL,1,0),COLORBLUE;DRAWTEXT(要突破,VOL*0.5, 要突破 ),COLORWHITE;DRAWICON(要突破,VOL*1.2,1);STICKLINE(要破位,0,VOL,0.5,0),COLORBROWN;DRAWTEXT(要破位,VOL*0.5, 要破位 ),COLORWHITE;DRAWICON(要破位,VOL*1.05,2);STICKLINE(T11,O,VOL,2,0),COLORFF00FF;STICKLINE(涨停板,VOL*0.5,VOL,2.5,0),COLORLIRED;STICKLINE(涨停板,VOL*0.5,VOL,0,0),COLORRED;STICKLINE(跌停板,VOL*0.5,VOL,2.5,0),COLOR2F4F2F;STICKLINE(跌停板,VOL*0.5,VOL,0,0),COLORBLACK;STICKLINE(顶部背离,VOL*0.8,VOL,2.5,0),COLORGREEN;STICKLINE(底部背离,0,VOL*0.2,3,0),COLOR7F017F;DRAWTEXT(T1,VOL*1.1, ∠45 ),COLOR00F3F5;DRAWTEXT(获利 =90 AND 给力线 =3.2,VOL*1.1, 获利90● ),COLORRED;DRAWTEXT(获利 75 AND 给力线 =3.2,VOL*1.1, ● ),COLORGREEN;GUYI1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;GUYIR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;DRAWTEXT(CROSS(82,GUYIR1) OR CROSS(82,RSI),VOL*1.2, 逃 ),COLOR22FF33;F:=(EMA(CLOSE,5)-EMA(CLOSE,21))*4;A:=EMA(F,5);MMD:=2*(F-A);{STICKLINE(MMD 0,0,MMD,1,1),COLOR0000FF;STICKLINE(MMD 0,0,MMD,1,1),COLOR00FF00;}DIF:F,COLORFFFFFF;DEA:A,COLOR00FFFF;DRAWICON(CROSS(DIF,DEA) AND DIF =0.08,DIF,1);DRAWICON(CROSS(DEA,DIF) AND DIF =0.09,DEA*1.05,2);MA13:MA(C,4),COLOR0000FF,LINETHICK3;GUYI10:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);GUYI20:=C=LLV(C,4) AND (REF(C,1) REF(C,2) OR REF(C,1) REF(C,3)) OR REF(C,1)=LLV(C,4) AND C REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND C REF(C,1) OR REF(C,3)=LLV(C,4) AND C REF(C,1) AND C REF(C,2);GUYI30:=REF(C,1)=LLV(C,4) AND C =REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1) =REF(C,3) AND REF(C,2) REF(C,4) AND C =REF(C,1);GUYI40:=(20*X1+19*REF(X1,1)+18*REF(X1,2)+17*REF(X1,3)+16*REF(X1,4)+15*REF(X1,5)+14*REF(X1,6)+13*REF(X1,7)+12*REF(X1,8)+11*REF(X1,9)+10*REF(X1,10)+9*REF(X1,11)+8*REF(X1,12)+7*REF(X1,13)+6*REF(X1,14)+5*REF(X1,15)+4*REF(X1,16)+3*REF(X1,17)+2*REF(X1,18)+REF(X1,20))/210;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);CB:=EMA(GUYI40,13); {GUYI5:=C REF(C,1)*1.08;}MA130:MA(VOL,13),COLORE011FF,LINETHICK3;变盘:IF(MA(X1,13) MA(X1,5),MA(VOL,13),DRAWNULL),COLOR00FF00,LINETHICK3;卖:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX 50,2) AND CROSS(MA(DX,2),DX);DRAWTEXT(FILTER(卖=1,1),VOL*1.02, 卖 ),COLORGREEN;买入:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX 0,2) AND CROSS(DX,MA(DX,2));DRAWTEXT(FILTER(买入=1,5),VOL*1.13, 买入 ),COLORRED;再加仓:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;DRAWTEXT(FILTER((CROSS(再加仓,0) OR CROSS(CLOSE,CB)) AND 买入=1,3),VOL*1.05, 加 ),COLORWHITE;跟仓:=MA(X1,18) =REF(MA(X1,18),3) AND CROSS(CLOSE,MA(X1,18));DRAWTEXT(跟仓,VOL*1.06, 跟仓 ),COLORCC66FF;