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