今天是五一假第二天,接昨天的文章,繼續(xù)給大家分享通達(dá)信的指標(biāo)源碼公式,一整套包括選股器、主圖指標(biāo)以及副圖指標(biāo)。一起來看看吧!選股器公式源碼通達(dá)信龍騰四海選股器 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));
通達(dá)信五日乖離率選股器 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)<AA30; 乖離強(qiáng)勢:IF(FILTER(MR,10),1,0),LINETHICK2;
通達(dá)信狙擊主升浪選股器 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;
通達(dá)信真底淘金選股器 強(qiáng)度:=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 CLOSE<REF(CLOSE,1)); X_7:=CLOSE<OPEN; X_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<REF(CLOSE,1) OR (CLOSE>OPEN AND CLOSE<REF(X_14,1))) AND HIGH>LOW; 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; 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; 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<REF(VOL,1) AND REF(VOL,1)<REF(VOL,2) AND HIGH>LOW; 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; X_30:=VOL<REF(LLV(VOL,100),1) AND HIGH>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 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; 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; 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>=強(qiáng)度 OR X_5>=強(qiáng)度) 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>=強(qiáng)度 OR X_5>=強(qiáng)度),CLOSE>REF(OPEN,1) AND X_4>3 OR (OPEN>REF(OPEN,1) AND X_5>1)) AND REF(CLOSE<OPEN,1);
通達(dá)信震蕩換手選股器 D3:=REF(C,2)<ZTPRICE(REF(C,3),0.1); 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;
通達(dá)信牛股強(qiáng)勢起爆選股器副圖指標(biāo)公式源碼通達(dá)信金牛上漲副圖指標(biāo) 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); 領(lǐng)先: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:=A1<EMA(CLOSE,120); STICKLINE((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; 低位轉(zhuǎn)強(qiáng):IF(CROSS(A5,安全位),50,0),STICK,COLORMAGENTA,LINETHICK2; 開始拉升:IF(CROSS(VARC,生命線) AND VARC>VARD AND VARC<55 AND C>O,50,0), COLORLIRED,POINTDOT;{股旁網(wǎng) WWW.GUPANG.COM} A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100); 極地上漲:IF(A6,領(lǐng)先,0),COLORGREEN,LINETHICK2; STICKLINE(開始拉升>0,15,開始拉升*1.01,1,0),COLORBLUE; STICKLINE((開始拉升>0 AND 開始拉升<400) OR (極地上漲>0 AND 極地上漲<400) OR (低位轉(zhuǎn)強(qiáng)>0 AND 低位轉(zhuǎn)強(qiáng)<400) OR (低位轉(zhuǎn)強(qiáng)>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(低位轉(zhuǎn)強(qiáng)>0,15,低位轉(zhuǎn)強(qiáng)*1.01,1,0),COLORMAGENTA; STICKLINE((低位轉(zhuǎn)強(qiáng)>0)OR(極地上漲>0),15,低位轉(zhuǎn)強(qiáng)*0.4,3,0),COLORYELLOW; STICKLINE(低位轉(zhuǎn)強(qiáng)>0,15,低位轉(zhuǎn)強(qiáng)*0.2,3,0),COLORFFCC66; STICKLINE(極地上漲>0,15,極地上漲*1.01,1,0),COLORYELLOW;
通達(dá)信量能飽和副圖指標(biāo) 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<REF(A03,1),0,A03, 2,1),COLORRED;
通達(dá)信突破牛股主圖指標(biāo)公式源碼短: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(V<MA(V,277),TT+1) ; BL:=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 CURRBARSCOUNT<CONST(TT)+1,L,23); DRAWTEXT(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(C<AA1,AA1,DRAWNULL),LINETHICK2,COLORGREEN; IF(C<AA1,AA1,DRAWNULL),DOTLINE,COLORRED; {小牛} 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 L<A); TA:=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; 強(qiáng)龍介入選股: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;
自用搭配指標(biāo)組合(長短線均可)圖中應(yīng)用的指標(biāo)組合是——【絕密抓牛主圖+漲勢跌勢確立副圖+金牛出現(xiàn)副圖】三個(gè)指標(biāo)的買點(diǎn)同時(shí)出現(xiàn),圖中紅圈做為標(biāo)記。 今天的分享就到這里,大家有什么問題都可以留言給我,領(lǐng)取指標(biāo)也是,全都分享給大家!祝大家假期愉快!出行注意安全哦!敬請期待明天的分享!
|