哈喽大家周末好,牛二给大家带来本周的指标源码分享,绝对给大家粘贴完整,大家直接在文章里面复制使用就可以了,手机电脑都可以导入。话不多说,给大家粘贴源码!
选股器源码公式通达信注意进半仓选股器 YS1:=(HIGH+LOW+CLOSE*2)/4; RK3:=EMA(YS1,10); RK4:=STD(YS1,10); RK5:=(YS1-RK3)*100/RK4; RK6:=EMA(RK5,5); 涨:=EMA(RK6,10)+100/2-5; 跌:=EMA(涨,4); VAR11:=SUMBARS(VOL,FINANCE(7)*100); VAR22:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL); VAR3:=(CLOSE-VAR22)/VAR22*100; VAR4:=HHV(VAR3,VAR11); VAR5:=LLV(VAR3,VAR11); VAR6:=(VAR3-VAR5)/(VAR4-VAR5)*100; K:=SMA(VAR6,3,1); D:=SMA(K,3,1); J:=3*K-2*D; MA1:=MA(J,3); 注意进半仓:FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0; 通达信底部黑马之追涨选股器 A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1); 黑马线:=EMA(A1,5); A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100; 趋势线:=(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)); A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100; 追涨:CROSS(黑马线,A5)AND 趋势线<80; 通达信CCI反转向上选股器 TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); XG:REF(BETWEEN(CCI,-200,-300),1) AND CCI>REF(CCI,1); 通达信追涨停板强势选股器
通达信副图指标源码公式通达信底部黑马副图指标 A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1); 黑马线:EMA(A1,5),LINETHICK2,COLOR6600FF; A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100; A3:=EMA(C,5); A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100; 趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW; A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100; DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A2<0,7),黑马线,'跑'),COLOR00FF00; DRAWTEXT(CROSS(A1,黑马线)AND 黑马线DRAWTEXT(CROSS(黑马线,A5)AND 趋势线<80,黑马线,'追涨'); DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大黑马'); 底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED; DRAWICON(底部 AND A3>REF(A3,1),25,4); 机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0; 大势已去:IF(CROSS(黑马线,A1)AND 黑马线>70 AND 趋势线>80,90,100),COLORFF9900; 通达信快速买卖副图指标 P1:=5; P2:=4; 80, POINTDOT; 20, POINTDOT; VAR1:=LLV(LOW,P1); VAR2:=HHV(HIGH,P1); K: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,P2),COLORFF9900 , ; D: EMA(0.667*REF(K,1)+0.333*K,2), ,; VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1); VARD:=EMA(IF(C< EMA(C,250),VARC*1000,VARC*10),3); 火焰山:EMA(IF(L<=LLV(L,30),VARD/2+HHV(VARD,30),0),3)/618; STICKLINE(火焰山>100,0,火焰山*1.2,8,0); STICKLINE(火焰山>100,0,火焰山,4,1); 通达信珍藏超跌副图指标 BIAS1:=(C-MA(C,6))/MA(C,6)*100; BIAS2:=(C-MA(C,12))/MA(C,12)*100; BIAS3:=(C-MA(C,24))/MA(C,24)*100; 0,LINETHICK5; 1.25,LINETHICK5; TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); CCI修正1:=EMA(EMA(EMA(CCI,2),2),2); CCI修正2:=EMA(EMA(EMA(CCI,3),2),2); X:=(CROSS(CCI修正1,CCI修正2) OR (CCI修正1 >=CCI修正2)) AND CCI修正1>=-101 AND CCI修正1>=REF(CCI修正1,1) AND REF(CCI修正1,1)<-101 ; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; K1:= EMA(EMA(EMA(K,2),2),2); D1:= EMA(EMA(EMA(D,2),2),2); J1:= EMA(EMA(EMA(J,2),2),2); Y:= J1 > REF(J1,1) ; DIFF:= EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK0; DEA:=EMA(DIFF,9),LINETHICK0; MACD:= 3*(DIFF-DEA); CD:=(DIFF>-0.15 AND DIFF>REF(DIFF,2)); T超短: X AND Y AND CD STICK,COLORLIRED,LINETHICK3; ; 短:IF(BIAS1<=-6,1,0)AND C>REF(C,1),STICK,COLORRED,LINETHICK3; 中买:IF(BIAS2<=-10,1,0)AND C>REF(LLV(L,1),1),COLORYELLOW,LINETHICK3; 长买:IF(BIAS3<=-16,1,0),COLORBLUE,LINETHICK3; 通达信盯盘分时主图指标源码公式MA30:=EMA(CLOSE,30); 强弱:=EMA(CLOSE,900); {-------------------------------------------------------------------------------------} H1:=MAX(DYNAINFO(3),DYNAINFO(5)); L1:=MIN(DYNAINFO(3),DYNAINFO(6)); P1:=H1-L1; 阻力:L1+P1*7/8,COLORLIMAGENTA,DOTLINE; 支撑:L1+P1*0.5/8,COLORCYAN,DOTLINE; 中:(支撑+阻力)/2,COLORLIGRAY,POINTDOT; 均价:=SUM(V*C,0)/SUM(V,0),COLORYELLOW,DOTLINE; 现价:=CLOSE,COLORWHITE,LINETHICK1; DRAWTEXT(ISLASTBAR AND 现价,现价,STRCAT('←',CON2STR(现价,2))),COLORYELLOW; STICKLINE(CROSS(支撑,现价),支撑,中,0,-1),COLORYELLOW; STICKLINE(CROSS(现价,阻力),阻力,中,0,-1),COLORGREEN; DRAWTEXT(LONGCROSS(支撑,现价,2),C*0.9982,' 买'),COLORYELLOW; DRAWTEXT(LONGCROSS(现价,阻力,2),C*1.0018,' 卖'),COLORCYAN; STICKLINE(C<支撑,支撑,C,1,0),COLORYELLOW; DRAWICON(CROSS(支撑,现价),(支撑-中)/5+支撑,26); {DRAWICON(CROSS(现价,阻力),阻力-(支撑-中)/5,15);} DRAWTEXT(CURRBARSCOUNT=8,阻力+0.003,'顶'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=8,支撑-0.003,'底'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=8,(支撑+阻力)/2,'中'),COLORLIRED; {--------------------} 量价:=(VOL/CLOSE)/3; A2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0); A3:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0); A6:=A2+A3;DD1:=1;比:=A2/A3; AAA1:=STRCAT(STRCAT('买= ',CON2STR((100*A2)/A6,0)),'%'); AAA2:=STRCAT(STRCAT('卖= ',CON2STR((100*A3)/A6,0)),'%'); AAA3:=STRCAT(STRCAT('差= ',CON2STR((100*(A2-A3))/A6,0)),'%'); 中期线:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100; DRAWTEXT(比<1.1,中,'O'),COLORGREEN; DRAWTEXT(比>1.5,中,'O'),COLORCYAN; DRAWTEXT(比>2,中,'O'),COLORMAGENTA; DRAWTEXT(比>2.5,中,'O'),COLORRED; DRAWTEXT((比>1.1 AND 中期线<5),中,'O'),COLORWHITE; DRAWTEXT((比<1.1 AND 中期线>98.0),中,'O'),COLORWHITE; DRAWTEXT((比>1.1 AND 中期线<5),C,'-买'),COLORYELLOW; DRAWTEXT((比<1.1 AND 中期线>98.0),C,'-卖'),COLORYELLOW; {-------------------------------------------------------------------------------------} 均价1:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1; TT:=BARSCOUNT(C);均:=MA(C,TT); 上均线:=均+2*STD(C,3);下均线:=均-2*STD(C,3); 时长:=TIME>93000;涨幅:=C/REF(C,1)>1.02;跌幅:=C/REF(C,1)<0.98; 横盘:=((HHV(C,TT)-LLV(C,TT))/C)<0.05;YY:=SMA(VOL,30,1); 放量:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(LLV(YY,1),30))>0.95; 涨跌幅:=涨幅 OR 跌幅; 横涨1:=涨跌幅=0 AND 横盘 AND 放量 AND CROSS(均价1,均); DRAWTEXT(FILTER(横涨1,10),均价1,'--突破'),COLORCYAN; DRAWICON(FILTER(横涨1,10),均价1,1); XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE)); 主力:=EXPMA(CLOSE/XX,20);大户:=EXPMA(CLOSE/XX,60);散户:=EXPMA(CLOSE/XX,120); 底:=1;1.02,NODRAW;高:=1.03; AA:=主力>大户 AND 主力>1.003 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60); DRAWICON(主力>大户 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 主力=HHV(主力,30) AND CROSS(主力,1.003),C,25); DRAWTEXT(主力>大户 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 主力=HHV(主力,30) AND CROSS(主力,1.003),C*0.999,'-主力'),COLORYELLOW; DRAWICON(CROSS(主力,1.02),C,26); DRAWTEXT(CROSS(主力,1.02),C*0.999,'-拉升'),COLORCYAN; DRAWICON(CROSS(主力,1.04),C,24); DRAWTEXT(CROSS(主力,1.04),C*0.999,'-冲涨停'),COLORLIMAGENTA; DRAWICON(CROSS(散户,主力),C,6); DRAWTEXT(CROSS(散户,主力),C*0.9995,'-小心'),COLORGREEN; DRAWICON(CROSS(散户,大户),C,6); DRAWTEXT(CROSS(散户,大户),C*0.9995,'-走弱'),COLORGREEN; {-------------------------------------------------------------------------------------} 现手买:BUYVOL*DYNAINFO(7)*100/10000 COLOR0000FF,NODRAW; 现手卖:SELLVOL*DYNAINFO(7)*100/10000 COLOR00FF00,NODRAW; 合:=ABS(现手买)+ABS(现手卖)COLOR80FFFF,NODRAW; 差:=ABS(现手买)-ABS(现手卖)COLOR80FFFF,NODRAW; MPB1:=ABS(现手买)/合*100; MPB2:=ABS(现手卖)/合*100; TESTSKIP(NOT(现手买 OR 现手卖 OR 合 OR 差 OR MPB1 OR MPB2)!=0); DRAWRECTREL(595,1000,795,940,RGB(0,128,0)); DRAWRECTREL(595,995,795,945,RGB(0,148,0)); DRAWRECTREL(595,990,795,950,RGB(0,168,0)); DRAWRECTREL(595,985,795,955,RGB(0,188,0)); DRAWRECTREL(595,980,795,960,RGB(0,208,0)); DRAWRECTREL(595,975,795,965,RGB(0,228,0)); DRAWRECTREL(595,970,795,970,RGB(0,248,0)); DRAWRECTREL(595,1000,595+现手买*210/合,940,RGB(128,0,0)); DRAWRECTREL(595,995,595+现手买*210/合,945,RGB(148,0,0)); DRAWRECTREL(595,990,595+现手买*210/合,950,RGB(168,0,0)); DRAWRECTREL(595,985,595+现手买*210/合,955,RGB(188,0,0)); DRAWRECTREL(595,980,595+现手买*210/合,960,RGB(208,0,0)); DRAWRECTREL(595,975,595+现手买*210/合,965,RGB(228,0,0)); DRAWRECTREL(595,970,595+现手买*210/合,970,RGB(248,0,0)); DRAWRECTREL(595+现手买*210/合,940,595+现手买*210/合,1000,RGB(128,0,0)); DRAWRECTREL(795,940,795,1000,RGB(0,0.0,10)); DRAWRECTREL(594.8,939.8,594.8,1000,RGB(0,0,10)); DRAWRECTREL(594.8,939.8,594.8,939.8,RGB(0,0,10)); DRAWRECTREL(594.8,1000,594.8,1000,RGB(0,0,10)); DRAWTEXT_FIX(1,0.560,0.89,0,STRCAT(STRCAT('',CON2STR(现手买,1)),'万')),COLORRED; DRAWTEXT_FIX(1,0.800,0.89,0,STRCAT(STRCAT('',CON2STR(现售卖,1)),'万')),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(差)>0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(差)<0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(差)=0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLOR80FFFF; DRAWTEXT_FIX(1,0.800,0.98,0,STRCAT(STRCAT(' ',CON2STR(MPB2,1)),'%')),COLORGREEN; DRAWTEXT_FIX(1,0.560,0.98,0,STRCAT(STRCAT('',CON2STR(MPB1,1)),'%')),COLORRED; {-------------------------------------------------------------------------------------} D1:=YEAR AND MONTH AND DAY; AA1:=STRCAT(CON2STR(YEAR,0),'年'); AA2:=STRCAT(CON2STR(MONTH,0),'月'); AA3:=STRCAT(CON2STR(DAY,0),'日'); AA4:=STRCAT('星期',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日'))))))); AAC:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),''); DRAWTEXT_FIX(D1,0.888,0.001,0,AAC),COLORLIGRAY; {-------------------------------------------------------------------------------------} MZ0:=(BARSLAST(((HOUR=9) AND (MINUTE=31)))+1); 上穿分时:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=1000),1,0)*HHV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORLIRED; 底支:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=1000),1,0)*LLV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORLIGREEN; STICKLINE(TIME=931 OR TIME=1000,上穿分时,底支,0,-1),COLORLIBLUE; 分时上突:=CROSS(C,上穿分时); 上突:=C<上穿分时 AND 上穿分时>底支; 股价支撑线:=MA(CLOSE,20); 底价线:=股价支撑线-2*STD(CLOSE,20),COLORMAGENTA,LINETHICK2; VAR106:=BARSCOUNT(CLOSE); VAR107:=MAX(DYNAINFO(3),DYNAINFO(5)); VAR108:=MIN(DYNAINFO(3),DYNAINFO(6)); VAR109:=VAR107-VAR108; VAR110:=VAR108+VAR109*7/8; VAR111:=VAR108+VAR109*0.5/8; DRAWICON(LONGCROSS(VAR111,CLOSE,2),CLOSE,1); DRAWICON(LONGCROSS(CLOSE,VAR110,2),CLOSE,2); 自用指标组合(长短线皆可使用)主图是波段短线,短买离场信号都很清晰。副图大鱼吃小鱼,在鱼嘴处是买入提示点,另外翻天印是很强烈的买入信号。我自己经过测试是很准确的,大家可放心买入。
指标并非万能,但是指标的导向作用不言自明,因此拥有一个好指标,将为你判断个股走势起大作用,并助力盈利!如对文中指标感谢的可以“私信”我发送关键字“指标”,找我免费领取! |