您好,欢迎访问三七文档
当前位置:首页 > 金融/证券 > 股票中长线技巧 > 通达信综合选股指标组合
通达信指标综合选股指标组合源码奉上供大家共同研究,这不一定是最好的但个人认为挺实用的。1、极品DDX(监测主力动向为主,以30/15分钟线为强项)。AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买量:=IF(CLOSEOPEN,AA*(HIGH-LOW),IF(CLOSEOPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;卖量:=IF(CLOSEOPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEOPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;进出量:=买量+卖量,COLOR00FFFF;STICKLINE(进出量0,0,进出量,4,0),COLORFF6600;STICKLINE(进出量0,0,进出量,3,0),COLORFF9900;STICKLINE(进出量0,0,进出量,1.5,0),COLORFFCC00;STICKLINE(进出量0,0,进出量,0.5,0),COLORCYAN;STICKLINE(进出量0,0,进出量,4,0),COLOR000099;STICKLINE(进出量0,0,进出量,3,0),COLOR0000CC;STICKLINE(进出量0,0,进出量,1.5,0),COLOR0000FF;STICKLINE(进出量0,0,进出量,0.5,0),COLORCC66FF;N:=5;M:=13;N日内净流入:SUM(进出量,N),LINETHICK2,COLORGREEN;流入:IF(N日内净流入REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORRED,LINETHICK2;连红天:BARSLASTCOUNT(进出量0);M日内翻红天:COUNT(进出量0,M),COLORRED;走熊天:BARSLASTCOUNT(N日内净流入0),COLORCYAN;走牛天:BARSLASTCOUNT(N日内净流入0),COLORRED;强势天:BARSLASTCOUNT((N日内净流入REF(N日内净流入,1))0ANDN日内净流入0);弱势天:BARSLASTCOUNT((N日内净流入REF(N日内净流入,1))0ANDN日内净流入0);2、跟庄建仓(另一监测主力动向的指标,其系以精确买卖提示为特点,有相当高的参考价值)。A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE/HHV(HIGH,120)),3,1)*100);A05:=IF((A0320),A04,0);A06:=IF((LOWA01),0,IF((HIGHA01),1,(((A01-LOW)+0.009)/((HIGH-LOW)+0.009))));A07:=DMA(A06,(VOL/CAPITAL))*60;A09:=IF((((A070)AND(A07REF(A07,1)))AND(A05=88)),A07,0);VAR1:=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);VAR2:=EMA(VAR1,8);VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(VAR3,3)-10;DRAWICON(CROSS(趋势,0),0,1);机构建仓区:0,LINETHICK0,COLORFFFF00;VAR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;STICKLINE(趋势=13,0,20,5,0),COLORCC9900;DRAWTEXT(FILTER(趋势=13,15),30,'准备现金'),COLORCC9900;STICKLINE(趋势=13ANDVAR413,0,50,5,0),COLOR0099FF;VAR5:=FILTER((趋势=13ANDVAR413),10);DRAWTEXT(VAR5,60,'买入'),COLOR0099FF;STICKLINE(趋势=90ANDVAR4,0,30,5,0),COLORGRAY;VAR6:=FILTER((趋势=90ANDVAR4),10);DRAWTEXT(VAR6,40,'清仓'),COLORGRAY;VAR7:=LLV(LOW,30);VAR8:=HHV(HIGH,30);VAR9:=EMA((CLOSE-VAR7)/(VAR8-VAR7)*4,4)*25;STICKLINE(VAR990,100,105,10,2),COLORRED;VAR10:=(VAR9-LLV(VAR9,4))/(HHV(VAR9,4)-LLV(VAR9,4))*100;VAR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;VAR12:=HHV(VAR11,30)*8;火焰山:EMA(IF(LOW=VAR7AND趋势40,(VAR11+VAR12),0),3)/618,COLORRED,LINETHICK2;STICKLINE(火焰山0,0,火焰山*1.2,8,0),COLORRED;VAR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;VAR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趋势线:趋势,COLORFF0000,LINETHICK2;VAR16:=MAX(EMA(VAR13,2)-EMA(VAR14,5),0)*200;VAR17:=EMA(VAR16,5);波浪峰:VAR17,STICK,COLORFF00FF;STICKLINE(VAR17REF(VAR17,1),0,VAR17,1,0),COLOR00FF00;VAR18:=MA(趋势线,8);IF(CROSS(VAR2,VAR18)ANDVAR215,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,VAR2)AND趋势线REF(趋势线,1)AND趋势线50,50,'追涨'),COLORFF0000;3、深度精选(该公式为在本论坛搜索到的,本人最推崇是它的监测大资金活动能力,通常出现大资金活动提示后,个股表现起码有几天是涨的)。VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3;VAR7:=EMA(VAR6,5);指标:EMA(EMA(VAR3,5),5)*3,COLORSTICK;VAR8:=IF(VAR6=-20,10,0);VAR9:=HHV(VAR8,10);STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF;VARA:=IF(VAR9ANDCROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:EMA(VAR7,5)*2,,COLORFF00FF;D:EMA(K,5),,COLORWHITE;J:K*3-D*2,,COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5))ANDJ10;换手:=VOL/CAPITAL*100,,COLORYELLOW;成交〖万手〗:=VOL/10000,,COLORWHITE;DRAWTEXT(VAR8=10ANDFILTER(VAR8=10,5),-10{15},'近底部'),LINETHICK1,COLORYELLOW;STICKLINE(VAR8=10ANDFILTER(VAR8=10,5),-1.6{20},-10,5,0),COLORYELLOW;DRAWTEXT(VARA=20,15,'底部'),LINETHICK1,COLORWHITE;STICKLINE((VARA=20),0,10,5,0),COLORWHITE;VARC:=(ZIG(3,5)REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1)=REF(ZIG(3,5),2))AND(REF(ZIG(3,5),2)=REF(ZIG(3,5),3));VARD:=(ZIG(3,5)REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1)=REF(ZIG(3,5),2))AND(REF(ZIG(3,5),2)=REF(ZIG(3,5),3));STICKLINE((VARC=1),(-14),0,4,0),COLOR0000FF;DRAWTEXT((VARC=1),(-14),'买'),COLOR0000FF;STICKLINE((VARD=1),14,0,4,0),COLOR00FF00;DRAWTEXT((VARD=1),18,'卖'),COLOR00FF00;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR11:=VARFREF(VAR10,1)ANDVOLREF(VOL,1)ANDCLOSEREF(CLOSE,1);DRAWTEXT(VAR11ANDCOUNT(VAR11,30)=1,15,'大资金活动'),LINETHICK1,COLORFF00FF;{STICKLINE(VAR11ANDCOUNT(VAR11,30)=1,1,10,5,0),COLORFF00FF;}VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13=150ANDVAR13200ANDVAR14=150ANDVAR14200,10,0);VAR16:=IF(VAR13=-150ANDVAR13-200ANDVAR14=-150ANDVAR14-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR1890,VAR18,100);VAR1A:=IF(VARE0,VARE,0);VAR1B:=IF(VAR14
本文标题:通达信综合选股指标组合
链接地址:https://www.777doc.com/doc-4581845 .html