通达信选股器+主图+副图指标源码大放送——速速收藏
<h2 data-first-child>今天继续给大家分享通达信的指标源码公式,一整套包括选股器、主图指标以及副图指标。一起来看看吧!</h2><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><h2>选股器公式源码</h2><p ><b>通达信龙腾四海选股器</b></p><blockquote >X1:=MA(CLOSE,5);<br/>X2:=MA(CLOSE,10);<br/>XG:CROSS(MACD.DIF,MACD.DEA) AND CROSS(KDJ.K,KDJ.D) AND CROSS(X1,X2) AND CROSS(MA(VOL,5),MA(VOL,10));</blockquote><p ><b>通达信五日乖离率选股器</b></p><blockquote >AA05:=MA(C,5);<br/>五日乖离率:=(C-AA05)/AA05*100;<br/>AA30:=MA(C,30);<br/>三拾日乖离率:=(C-AA30)/AA30*100;<br/>MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND<br/>三拾日乖离率>REF(三拾日乖离率,1)<br/>AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;<br/>乖离强势:IF(FILTER(MR,10),1,0),LINETHICK2;</blockquote><p ><b>通达信狙击主升浪选股器</b></p><blockquote >A:=IF((CLOSE>REF(CLOSE,1)),88,0);<br/>AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (A>0),91,0);<br/>AA1:="MACD.MACD">0.4;<br/>狙击:FILTER((AA>90),35) AND AA1,LINETHICK2,COLORRED;</blockquote><p ><b>通达信真底淘金选股器</b></p><blockquote >强度:=2;<br/>X_1:=VOL/REF(VOL,1);<br/>X_2:=VOL/REF(LLV(VOL,100),1);<br/>X_3:=VOL/REF(HHV(VOL,55),1);<br/>X_4:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;<br/>X_5:=(CLOSE-OPEN)/OPEN*100;<br/>X_6:=CLOSE>OPEN OR (CLOSE>OPEN AND CLOSE<REF(CLOSE,1));<br/>X_7:=CLOSE<OPEN;<br/>X_8:=MIN(CLOSE,OPEN)<=LLV(MIN(CLOSE,OPEN),3);<br/>X_9:=(HIGH-MAX(CLOSE,OPEN))/MAX(CLOSE,OPEN)*100;<br/>X_10:=MAX(CLOSE,MAX(OPEN,REF(CLOSE,1)));<br/>X_11:=MIN(CLOSE,MIN(OPEN,REF(CLOSE,1)));<br/>X_12:=(X_10-X_11)*2/3+X_11;<br/>X_13:=(X_10+X_11)/2;<br/>X_14:=(X_10-X_11)/3+X_11;<br/>X_15:=(MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))/3+MIN(CLOSE,OPEN);<br/>X_16:=VOL/REF(VOL,1)>1.95 AND VOL/REF(VOL,1)<2.02 AND CLOSE>OPEN;<br/>X_17:=VOL/REF(VOL,1)>2.02 AND VOL/REF(VOL,1)<3;<br/>X_18:=VOL/REF(VOL,1)>3 AND VOL/REF(VOL,1)<4;<br/>X_19:=VOL/REF(VOL,1)>4 AND VOL/REF(VOL,1)<5;<br/>X_20:=VOL/REF(VOL,1)>5 AND REF(HIGH>LOW,1);<br/>X_21:=X_1<=0.52 AND (CLOSE<REF(CLOSE,1) OR (CLOSE>OPEN AND CLOSE<REF(X_14,1))) AND HIGH>LOW;<br/>X_22:=X_1<=0.67 AND X_1>0.52 AND (CLOSE<REF(CLOSE,1) OR (CLOSE>OPEN AND CLOSE<REF(X_14,1))) AND HIGH>LOW;<br/>X_23:=X_1>0.67 AND X_1<0.76 AND (CLOSE<REF(CLOSE,1) OR (CLOSE>OPEN AND CLOSE<REF(X_14,1))) AND HIGH>LOW;<br/>X_24:=VOL/REF(VOL,1)>=0.98 AND VOL/REF(VOL,1)<=1.02;<br/>X_25:=CLOSE=REF(CLOSE,1);<br/>X_26:=REF(X_7,1) AND REF(X_8,1) AND OPEN>REF(CLOSE,1) AND CLOSE>OPEN;<br/>X_27:=REF(X_7,1) AND REF(X_8,1) AND OPEN<=REF(CLOSE,1) AND CLOSE>REF(OPEN,1);<br/>X_28:=VOL<REF(VOL,1) AND REF(VOL,1)<REF(VOL,2) AND HIGH>LOW;<br/>X_29:=REF(CLOSE<OPEN,2) AND (REF(CLOSE<OPEN,1) OR (REF(CLOSE>=OPEN,1) AND REF(CLOSE,1)<REF(MIN(CLOSE,OPEN),2))) AND (CLOSE<OPEN OR (CLOSE>=OPEN AND CLOSE<REF(MIN(CLOSE,OPEN),1))) AND CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2) AND VOL<=REF(VOL,1)*1.01 AND REF(VOL,1)<=REF(VOL,2)*1.01;<br/>X_30:=VOL<REF(LLV(VOL,100),1) AND HIGH>LOW AND NOT(DATE=1160107) AND BARSCOUNT(CLOSE)>100;<br/>X_31:=VOL>REF(HHV(VOL,55),1) AND BARSCOUNT(CLOSE)>55;<br/>X_32:=OPEN/CLOSE>=1.04 OR (REF(CLOSE,1)/CLOSE>=1.03 AND CLOSE<OPEN) AND IF(REF(X_4>1.095,1),VOL/REF(VOL,1)<=1.1,VOL/MA(VOL,60)<=2/3 OR VOL/REF(VOL,1)<=1.36 OR VOL<=REF(HHV(VOL,5),1)*0.75) AND BARSCOUNT(CLOSE)>=2;<br/>X_33:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.03 AND CLOSE>OPEN OR (CLOSE-OPEN)/OPEN>=0.04 AND (VOL<=MA(VOL,60) OR IF(X_4>5.5,X_1<=2.2,VOL/REF(VOL,1)<=1.2) OR (VOL<HHV(VOL,5) AND VOL/REF(HHV(VOL,5),1)<=0.75)) AND IF(REF(HIGH=LOW,1),VOL/REF(VOL,1)<16,VOL/REF(VOL,1)<=1.35) AND X_5>3 AND BARSCOUNT(CLOSE)>=2;<br/>X_34:=X_26 AND (REF(X_28,1) OR X_28) AND CLOSE>REF(OPEN,1);<br/>X_35:=X_26 AND OPEN>REF(OPEN,1);<br/>X_36:=X_26 AND X_33;<br/>X_37:=REF(X_29,1) AND X_26 AND CLOSE>REF(X_14,1);<br/>X_38:=REF(X_32,2) AND (REF(X_22,1) OR REF(X_22,1) OR REF(X_21,1)) OR (REF(X_22,1) OR REF(X_22,2) OR REF(X_21,2) AND REF(X_32,1)) OR (REF(X_32,1) AND (REF(X_22,1) OR REF(X_22,1) OR REF(X_21,1))) AND X_26;<br/>X_39:=X_34 OR X_35 OR X_36 OR X_37 OR X_38 AND X_9<=2.6 AND (X_4>=强度 OR X_5>=强度) AND CLOSE>=REF(X_15-0.01,1) AND REF(DOWNNDAY(CLOSE,3),1);<br/>捞金:X_34 OR X_35 OR X_36 OR X_37 OR X_38 AND X_9<=2.6 AND IF(REF(DOWNNDAY(CLOSE,3),1),CLOSE>=REF(X_15-0.01,1) AND (X_4>=强度 OR X_5>=强度),CLOSE>REF(OPEN,1) AND X_4>3 OR (OPEN>REF(OPEN,1) AND X_5>1)) AND REF(CLOSE<OPEN,1);</blockquote><p ><b>通达信震荡换手选股器</b></p><blockquote >D3:=REF(C,2)<ZTPRICE(REF(C,3),0.1);<br/>D2:=RANGE(REF(O,1)/REF(C,2),0.96,1.04) AND REF(C,1)=ZTPRICE(REF(C,2),0.1) AND<br/>RANGE((REF(H,1)-REF(L,1))/REF(L,1),0.1,0.15) AND V>REF(V,1);<br/>D1:=C=ZTPRICE(REF(C,1),0.1);<br/>D1 AND D2 AND D3;</blockquote><h2>通达信牛股强势起爆选股器</h2><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><h2>副图指标公式源码</h2><p ><b>通达信金牛上涨副图指标</b></p><blockquote >DRAWGBK(CURRBARSCOUNT=1, RGB(110,108,108),RGB(88,30,0),0,'',0);<br/>VA1:=HHV(HIGH,9)-LLV(LOW,9);<br/>VA2:=HHV(HIGH,9)-CLOSE;<br/>VA3:=CLOSE-LLV(LOW,9);<br/>VA4:=VA2/VA1*100-70;<br/>VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;<br/>VA6:=(CLOSE+HIGH+LOW)/3;<br/>VA7:=SMA(VA3/VA1*100,3,1);<br/>VA8:=LLV(LOW,34);<br/>VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);<br/>VARA:=IF(VA9>100,VA9-100,0);<br/>VARB:=HHV(HIGH,34);<br/>VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);<br/>VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);<br/>VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;<br/>VARF:=MA(VARE,3);<br/>VAR1:=HHV(HIGH,9)-LLV(LOW,9);<br/>VAR2:=HHV(HIGH,9)-CLOSE;<br/>VAR3:=CLOSE-LLV(LOW,9);<br/>VAR4:=((VAR2)/(VAR1))*(100)-70;<br/>VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);<br/>VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);<br/>VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);<br/>VAR8:=LLV(LOW,34);<br/>VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);<br/>VAR10:=IF((VAR9>100),VAR9-100,0);<br/>VAR11:=HHV(HIGH,34);<br/>B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);<br/>DRAWKLINE(EMA(B1,5),EMA(B1,5),B1+1,B1);<br/>领先:EMA(B1,5),COLORCYAN;<br/>生命线:EMA(VARD,1),COLORYELLOW;<br/>V1:=MA(C,5)=HHV(MA(C,5),20);<br/>V2:=MA(C,5)>MA(C,10);<br/>V3:=MA(V,5)>MA(V,40)*1.01;<br/>V4:=COUNT(MA(C,1)>REF(C,1),2)=2;<br/>VV:=V1 AND V2 AND V3 AND V4;<br/>A1:=EMA(CLOSE,8);<br/>A2:=EMA(A1,20);<br/>A3:=CROSS(A1,A2);<br/>A4:=A1<EMA(CLOSE,120);<br/>STICKLINE((A3 AND A4)OR(V1 AND V2 AND V3 AND V4),B1*1.03,B1*1.120,1,0),COLORYELLOW;<br/>A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*<br/>SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1),CIRCLEDOT ,COLORFF9900 ;<br/>安全位:=20;<br/>低位转强:IF(CROSS(A5,安全位),50,0),STICK,COLORMAGENTA,LINETHICK2;<br/>开始拉升:IF(CROSS(VARC,生命线) AND VARC>VARD AND VARC<55 AND C>O,50,0),<br/>COLORLIRED,POINTDOT;{股旁网 <a href="https://link.zhihu.com/?target=http%3A//WWW.GUPANG.COM" class=" external" target="_blank" rel="nofollow noreferrer"><span class="invisible">http://</span><span class="visible">WWW.GUPANG.COM</span><span class="invisible"></span></a>}<br/>A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100);<br/>极地上涨:IF(A6,领先,0),COLORGREEN,LINETHICK2;<br/>STICKLINE(开始拉升>0,15,开始拉升*1.01,1,0),COLORBLUE;<br/>STICKLINE((开始拉升>0 AND 开始拉升<400) OR (极地上涨>0 AND 极地上涨<400)<br/>OR (低位转强>0 AND 低位转强<400) OR (低位转强>0),30,开始拉升,1,0),COLORRED;<br/>STICKLINE(开始拉升>0,15,开始拉升*0.6,3,0),COLORBLUE;<br/>STICKLINE(开始拉升>0,15,开始拉升*0.4,3,0),COLOR00FF00;<br/>STICKLINE(开始拉升>0,15,开始拉升*0.2,3,0),COLOR0099CC;<br/>STICKLINE(低位转强>0,15,低位转强*1.01,1,0),COLORMAGENTA;<br/>STICKLINE((低位转强>0)OR(极地上涨>0),15,低位转强*0.4,3,0),COLORYELLOW;<br/>STICKLINE(低位转强>0,15,低位转强*0.2,3,0),COLORFFCC66;<br/>STICKLINE(极地上涨>0,15,极地上涨*1.01,1,0),COLORYELLOW;</blockquote><p ><b>通达信量能饱和副图指标</b></p><blockquote >A01:=(WINNER((CLOSE*1))*100.000);<br/>A02:=(WINNER((CLOSE*1.1))*100.000);<br/>A03:=(WINNER((CLOSE*0.9))*100.000);<br/>A04:=MA(A03,5);<br/>A06:=(100-MA(A02,5));<br/>{STICKLINE(1,A06,MA(A02,5),2,1),COLORGREEN;}<br/>A08:=(MA(A02,5)-MA(A03,5));<br/>{STICKLINE(1,A04,MA(A02,5),2,1),COLORYELLOW;}<br/>A0A:=(((((HHV(A04,15)-A03)/A03)*100)>30) AND (HHV(A04,15)>50));<br/>STICKLINE(A0A,(0-2), 2, 2,1);<br/>STICKLINE(NOT(A0A),(0-2), 2, 2,1),COLORBLUE;<br/>STICKLINE(A03>REF(A03,1),0,A03, 2,0),COLORRED;<br/>STICKLINE(A03<REF(A03,1),0,A03, 2,1),COLORRED;</blockquote><h2>通达信突破牛股主图指标公式源码</h2><blockquote >短:MA(CLOSE,13),LINETHICK2,COLORYELLOW;<br/>中:MA(CLOSE,55),COLORMAGENTA;<br/>界:MA(CLOSE,144),COLORGREEN;<br/>长:MA(CLOSE,377),COLORLIMAGENTA;<br/>超:MA(CLOSE,453),COLORRED,LINETHICK2;<br/>DRAWTEXT(ISLASTBAR,短,' 短13'),COLORYELLOW;<br/>DRAWTEXT(ISLASTBAR,中,' 中55'),COLORMAGENTA;<br/>DRAWTEXT(ISLASTBAR,界,' 界144'),COLORGREEN;<br/>DRAWTEXT(ISLASTBAR,长,' 长377'),COLORLIMAGENTA;<br/>DRAWTEXT(ISLASTBAR,超,' 超453'),COLORRED,LINETHICK2;<br/>{牛线等突破}<br/>LT:=LLVBARS(L,60);<br/>LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);<br/>HT:=FINDHIGHBARS(H,LT+1,60,1);<br/>AA1:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLORYELLOW,LINETHICK2;<br/>TT:=BARSLAST(CURRBARSCOUNT=CONST(HT)+1);<br/>AA:=CROSS(C,CONST(AA1));<br/>TJAA:=COUNT(AA,TT+1)=1 AND AA;<br/>TJ1AA:=COUNT(V<MA(V,277),TT+1) ;<br/>BL:=TJ1AA/(TT+1)*100;<br/>XG:=TJAA AND TT>40 AND BL>70;<br/>XGT:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(XG))+1);<br/>ZH:=REF(H,TT);<br/>YL:=REF(L,LTT);<br/>XC:=REF(C,XGT);<br/>YZ:=(XC-YL)/YL*100;<br/>ZBL:=YZ/REF(LTT,XGT);<br/>XGA:=XG AND ZBL<2.95;<br/>DRAWICON(XGA,L*0.95,9);<br/>DRAWTEXT(CURRBARSCOUNT=1,AA1*0.999,STRCAT('------------牛线',CON2STR(AA1,2))),COLORYELLOW;<br/>DRAWTEXT(TT=0,REF(H,TT)*1.0007,VARCAT(VARCAT('牛线等突破 : ',VAR2STR(REF(H,TT),2)),'元'))COLORWHITE;<br/>XG11:=COUNT(CROSS(C>=AA1,0.5),TT+1)=1 AND CROSS(C>=AA1,0.5) AND LT>1.5;<br/>DRAWICON(CROSS(C,AA1) AND CURRBARSCOUNT<CONST(TT)+1,L,23);<br/>DRAWTEXT(XG11,(H* 0.999),'过牛线'),COLORYELLOW;<br/>STICKLINE( XG11,C,O,5,1)COLOR8080FF;<br/>STICKLINE( XG11,C,O,0.7,1)COLORYELLOW;<br/>ZNOTEXT1:IF(C>=AA1,AA1,DRAWNULL),LINETHICK5,COLOR8000FF;<br/>IF(C>=AA1,AA1,DRAWNULL),DOTLINE,COLORFFFFFF;<br/>ZNOTEXT2:IF(C<AA1,AA1,DRAWNULL),LINETHICK2,COLORGREEN;<br/>IF(C<AA1,AA1,DRAWNULL),DOTLINE,COLORRED;<br/>{小牛}<br/>T:=FINDHIGHBARS(H,60,30,1);<br/>A:DRAWLINE(CURRBARSCOUNT=CONST(T)+1,H,ISLASTBAR,REF(H,T),0),COLORMAGENTA;<br/>TT1:=BARSLAST(C>A*1.014 AND L<A);<br/>TA:=BARSLAST(CROSS(A!=DRAWNULL,0.5));<br/>TJ:=VOL=HHV(VOL,T+1) AND TA>28;<br/>TJ1:=COUNT(EXPMA(C,2)>=A,TA+1)=1 AND EXPMA(C,2)>=A*1.01;<br/>E13:=EXPMA(C,TA+1);<br/>CJ:=(A/E13-1) *100 ;<br/>HH:=HHV(CJ,10);<br/>JXG:=COUNT(TT=0,T+1)=1 AND TT1=0 AND TJ AND TJ1 AND HH<20;<br/>STICKLINE(JXG,H,L,0,0),COLORFF00FF;<br/>STICKLINE(JXG,C,O,3,0),COLOR990099;<br/>STICKLINE(JXG,C,O,2,0),COLORBB00BB;<br/>STICKLINE(JXG,C,O,1,0),COLORDD00DD;<br/>STICKLINE(JXG,C,O,0.3,0),COLORFF00FF;<br/>DRAWICON(JXG,L*0.99,25);<br/>DRAWTEXT(TA=0,A*1.01,STRCAT(STRCAT('小牛等突破:',VAR2STR(REF(A,TA),2)),'元')),COLORMAGENTA;<br/>X_1:=MA(CLOSE,5);<br/>X_2:=MA(CLOSE,10);<br/>X_3:=EMA(CLOSE,14);<br/>X_4:=EXPMA(EXPMA(CLOSE,50),1);<br/>X_5:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;<br/>X_6:=OPEN/REF(CLOSE,1)<1.098;<br/>X_7:=X_1>X_2 AND X_3>X_4;<br/>X_8:=CROSS(MA(CLOSE,5),MA(CLOSE,30)) AND X_5>1.8;<br/>X_9:=IF(CLOSE>REF(CLOSE,1),88,0);<br/>X_10:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE<1.01 AND X_9>0,91,0);<br/>X_11:=FILTER(X_10>1,5);<br/>X_12:=CLOSE=HHV(CLOSE,20);<br/>X_13:=BARSLAST(X_12);<br/>X_14:=IF(X_13>0,REF(CLOSE,X_13),REF(CLOSE,X_13));<br/>X_15:=CROSS(CLOSE,REF(X_14,1));<br/>X_16:=X_15 AND COUNT(X_15,5)=1;<br/>强龙介入选股:X_16 AND X_11 AND X_7 AND X_8 AND X_6;<br/>{涨跌停K线}<br/>STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORRED;<br/>STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORGREEN;</blockquote><h2>自用搭配指标组合(长短线均可)</h2><p >图中应用的指标组合是——【绝密抓牛主图+涨势跌势确立副图+金牛出现副图】三个指标的买点同时出现,图中红圈做为标记。</p><p class="ztext-empty-paragraph"><br/></p><p ><b>指标并非万能,但是指标的导向作用不言自明,因此拥有一个好指标,将为你判断个股走势起大作用,并助力盈利!如对文中指标感谢的可以“私信”我发送关键字“指标”,找我免费领取!</b></p> 点赞楼主! 真是 收益 匪浅
页:
[1]