16日内曾经涨停,并回调到位选股通达信指标式源码
通达信指标公式源码 涨停后缩量板副图主图选股指标
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=9.90,1,0);缩量涨停:=EVERY(涨停,2);DRAWTEXT(缩量涨停,H*1.03,'缩量涨停'),COLORGREEN;UU:=3;A88:=SUM(C*V,UU);B88:=SUM(V,UU);市场价值线:MA(A88/B88,7)COLORYELLOW,LINETHICK3;VAR41:=REF(CLOSE,1);VAR42:=((SMA(MAX((CLOSE - VAR41),0),7,1) / SMA(ABS((CLOSE -VAR41)),7,1)) * 100);VAR43:=((SMA(MAX((CLOSE - VAR41),0),13,1) / SMA(ABS((CLOSE -VAR41)),13,1)) * 100);VAR44:=((BARSLAST((VAR43 < 23)) <= 3) AND CROSS(VAR42,VAR43)); VAR45:=((((CLOSE - MA(CLOSE,23)) / MA(CLOSE,20)) * 100) < -12.5);VAR46:=LLV(LOW,5);VAR47:=HHV(HIGH,10);VAR48:=EMA((((CLOSE - VAR46) / (VAR47 - VAR46)) * 100),4);VAR49:=EMA(((0.667 * REF(VAR48,1)) + (0.333 * VAR48)),2);{VAR50:=1011131;VAR51:=(IF((DATE <= VAR50),VAR45,0) OR IF((DATE <= VAR50),VAR1,0));} DRAWTEXT((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <=25),LOW*1.008,'急跌后超级大黑马'),COLORMAGENTA;DRAWICON((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <=25),L-0.10,26);DRAWICON((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <=25),L-0.38,26);持股线1:MA(CLOSE,15),COLORMAGENTA,LINETHICK5;MA10:MA(CLOSE,50),COLORBB0000;DRAWKLINE(H,O,L,C);{筹码峰}时长:=120;换手次数:=2;选择方式:=1;统计时长:IF(选择方式=1,CONST(SUMBARS(V/FINANCE(7)*100,换手次数)),时长),NODRAW;KK:=统计时长;高:=CONST(HHV(H,KK));低:=CONST(LLV(L,KK));XX:=(高-低);均价:=AMOUNT/V/100,NODRAW;L0:=低+XX*0/9;L1:=低+XX*1/9;L2:=低+XX*2/9;L3:=低+XX*3/9;L4:=低+XX*4/9;L5:=低+XX*5/9;L6:=低+XX*6/9;L7:=低+XX*7/9;L8:=低+XX*8/9;L9:=低+XX*9/9;MLZ:=SUM((CURRBARSCOUNT<KK+1)*V,KK),COLORWHITE;ML1:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L0-0.001,L1+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML1*200)),(L0+L1*0.99)*0. 49,(L0+L1*0.99)*0.5,18,0),COLORFF5555;ML2:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L1,L2+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML2*200)),(L1+L2*0.99)*0. 4999,(L1+L2*0.99)*0.5,18,0),COLORFFAA55;ML3:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L2,L3+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML3*200)),(L2+L3*0.99)*0. 4999,(L2+L3*0.99)*0.5,18,0),COLORAAFF55;ML4:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L3,L4+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML4*200)),(L3+L4*0.99)*0.4999,(L3+L4*0.99)*0.5,18,0),COLOR5FFF00;ML5:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L4,L5+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML5*200)),(L4+L5*0.99)*0. 4999,(L4+L5*0.99)*0.5,18,0),COLORFFFFF0;ML6:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L5,L6+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML6*200)),(L5+L6*0.99)*0. 4999,(L5+L6*0.99)*0.5,18,0),COLORFF0FFF;ML7:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L6,L7+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML7*200)),(L6+L7*0.99)*0. 4999,(L6+L7*0.99)*0.5,18,0),COLOR509FDD;ML8:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L7,L8+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML8*200)),(L7+L8*0.99)*0. 4999,(L7+L8*0.99)*0.5,18,0),COLORAA5DDD;ML9:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L8,L9+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML9*200)),(L8+L9*0.99)*0. 4999,(L8+L9*0.99)*0.5,18,0),COLOR0055DD;STICKLINE(C/REF(C,1)>=1.096 AND H=C,O,C,2,0),COLORYELLOW;HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;HJ_9:=FILTER(HJ_8,10);HJ_10:=BARSLAST(HJ_9);HJ_11:=REF(HIGH,HJ_10+2);HJ_12:=REF(HIGH,HJ_10+1);HJ_13:=REF(HIGH,HJ_10);HJ_14:=MAX(HJ_11,HJ_12);HJ_15:=MAX(HJ_14,HJ_13);HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;HJ_17:=HJ_10<150;HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;HJ_21:=VOL/MA(VOL,5)<3.5;HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22;暴利:=FILTER(HJ_25,15);MA54:=MA(CLOSE,54)NODRAW;PL1:=(((CLOSE-MA54)/MA54)<0.1);PL2:=(((CLOSE-MA10)/MA10)<0.3);偏离率:=(((PL1=1) AND (PL2=1))*0.2);平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);妖股突破:=平台突破=-0.1;XDF:=(暴利OR 妖股突破);VARA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);VARAA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05); FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR(LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2); 妖股:=XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA;DRAWICON(妖股,H*1.0395,7);DRAWTEXT(XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA,L*0.975,' 妖股'),COLORYELLOW;DRAWTEXT(XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA,L*0.995,' 妖股'),COLORRED;DRAWTEXT_FIX(1,0.1,0.98,0,'艳红色线是持股线,黄线是反映市场价值线,接近收盘时股价上了黄色线就买进,股价在黄线之下的坚决不买,下黄线(收盘破红必跑) 毫不犹豫清仓,切记切记,做股票万万不要痴心妄想')COLORYELLOW; LC11:=REF(CLOSE,1),NODRAW;RSI11:=((SMA(MAX((CLOSE - LC11),0),3,1) / SMA(ABS((CLOSE - LC11)),3,1)) * 100);FF:=EMA(CLOSE,3);日:=150;昨前:=3;高1:=REF(HHV(H,日),昨前);低1:=REF(LLV(L,日),昨前);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;顶:REFDATE(高1,DATE),COLORRED;低点:REFDATE(低1,DATE),DOTLINE,COLORRED;收盘破红必跑:MA(CLOSE,7)COLORRED,LINETHICK3;CG:MA((LOW+HIGH+CLOSE*2)/4,10);FL:HHV(CG,3);FS:IF(CG<FL,(CG-(FL-CG)),FL);FL1:HHV(CG,5);FS1:IF(CG<FL1,(CG-(FL1-CG)),FL1);FL2:HHV(CG,7);FS2:IF(CG<FL2,(CG-(FL2-CG)),FL2);FL3:HHV(CG,9),COLORFFABA3,LINETHICK2;FS3:IF(CG<FL3,(CG-(FL3-CG)),FL3);ZLZC1:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.618));ZLZC2:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.5));ZLZC3:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.382));POLYLINE:(FS3>MA(FS3,5),FS3);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);MTM1:=C-REF(C,1);DX:=100*EMA(EMA(MTM1,6),6)/EMA(EMA(ABS(MTM1),6 ),6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(买=1,5),LOW-0.03,'拉升'),COLORGREEN; DRAWTEXT(FILTER(买=1,5),LOW-0.22,'拉升'),COLORWHITE;A63:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A64:=SMA(A63,3,1);A5:=SMA(A64,3,1);A6:=3*A64-2*A5;A76:=C-REF(C,1);A68:=100*EMA(EMA(A76,6),6)/EMA(EMA(ABS(A76),6),6);买88:=LLV(A68,2)=LLV(A68,7) AND COUNT(A68<0,2) ANDCROSS(A68,MA(A68,2));DRAWTEXT(FILTER(买88=1,5),H+0.05,'买进'),COLORYELLOW; DRAWTEXT(FILTER(买88=1,5),LOW-0.25,'买进'),COLORYELLOW; STICKLINE(买88,OPEN,CLOSE,2.5,0)COLORMAGENTA;STICKLINE(买88,OPEN,CLOSE,1,0),COLORWHITE;。
涨停的指标源码集合(大智慧、通达信)
涨停的指标源码集合(大智慧、通达信)千顶停板----又称千顶式涨停板可适用大智慧和通达信,可以作为预警和选股公式使用,源码如下;1.X5:=REF(C,1)< REF(O,1) AND REF(C,1)/ REF(C,2)<0.95 AND O< REF(C,1) AND C> REF(O,1) AND C> REF(H,1) AND C/ REF(C,1)>1.07;2.X5;复制代码虚拟量选股(抓涨停很厉害的哦)用法:开盘15分钟内使用,可以设为预警!虚拟量选股:1.万手:=VOL/10000;2.AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);3.虚拟量:=AA/10000;4.XG:虚拟量>REF(V,1)*2;复制代码下午涨停无敌选股公式大家都知道,下午拉涨停的PP很多都是上午横盘走势!小弟在这里发布自编的一个午盘横盘选股公式(也就是在上午收市的选股公式)!简单的说一下思路:上午收盘价在均价线的2%范围内AND上午收盘价在今天开盘价的2%范围内。
上午股价的振幅也在2%以内,并且今天的开盘价不低于昨天的收盘价(也就是说明今天是强势的走势)!好了~思路说到这里!另外在选出来的股票中还要择优选择(根据个人经验以及技术面和基本面的分析来选择股票)!这里就不多说了!这里发的是通达信的,其他的能不能用还不知道!选股公式源码:1.BETWEEN(ABS((C-DYNAINFO(11))/C),0,0.02) AND2.BETWEEN(ABS((C-DYNAINFO(4))/C),0,0.02) AND3.HIGH<=DYNAINFO(4)*1.02 AND4.LOW>=DYNAINFO(4)*0.98 AND5.DYNAINFO(4)>=DYNAINFO(3);复制代码补充:有人说选出来的股票太多,这里对不是太懂公式含义的朋友说明一下:首先这个是午盘选股公式,如果怕选出太多的股,可以改变源码中的0.02(这个意思是2%振幅的意思)。
通达信指标公式源码 涨停回调狙击
ZT1:=C/REF(C,1)>1.0975 AND C=H;TS:=BARSLAST(ZT1);AA:=REF((H+L)/2,TS);ZJ:IF(TS<=16,DRAWLINE(ZT1,(H+L)/2,ISLASTBAR,REF((H+L)/2,TS),1),DRAWNULL),LINETHICK2,COLORRED;DRAWTEXT(ISLASTBAR,ZJ,' %ZJ'),COLORYELLOW;MA30:MA(C,30);CPXA:=(3*CLOSE+OPEN+LOW+HIGH)/6;CPXB:(20*CPXA+19*REF(CPXA,1)+18*REF(CPXA,2)+17*REF(CPXA,3)+16*REF(CPXA,4) +15*REF(CPXA,5)+14*REF(CPXA,6)+13*REF(CPXA,7)+12*REF(CPXA,8)+11*REF(CPXA, 9)+10*REF(CPXA,10)+9*REF(CPXA,11)+8*REF(CPXA,12)+7*REF(CPXA,13)+6*REF(CPXA, 14)+5*REF(CPXA,15)+4*REF(CPXA,16)+3*REF(CPXA,17)+2*REF(CPXA,18)+1*REF(CPXA,1 9))/210;ZT:=IF(REF(C,1)*1.1-C<0.01 ,1,0);LC:=REF(CLOSE,1);CZX:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;ZCX:=45;ZCX2:=50;CDX:=20;PP2:=CZX<ZCX2 AND REF(CZX,1)>ZCX2 ;PP:=CZX<ZCX AND REF(CZX,1)>ZCX ;PP3:=CZX<CDX AND REF(CZX,1)>CDX;HH:=COUNT(ZT,9)>=1;DDDD:=(PP2 AND HH OR PP AND HH OR PP3 AND HH);A:=SMA(L,4,3) ;ZF:=(C-REF(C,1))/REF(C,1)*100;ZT9:=INTPART(SUM(ZF>9.9,9));LSMR:=IF (((A AND REF(PP,1) AND HH AND ZT9) OR (A AND REF(PP3,1)AND HH AND ZT9) OR (A AND REF(PP2,1) AND HH AND ZT9)),1,0 );LT:=(CAPITAL/100)/10000<=10;XG1:=LSMR AND REF(LSMR,1) AND CZX>REF(CZX,1) AND LT;XG2:=LSMR AND REF(LSMR,2) AND CZX>REF(CZX,1) AND LT;XG3:=REF(LSMR,1) AND CZX>REF(CZX,1) AND LT AND REF(CZX,1)<REF(CZX,2);JD30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.14159;AA30:=JD30>5;XG:XG1 OR XG2 OR XG3 AND C>MA30 AND C>CPXB AND C>AA,COLORRED,NODRAW; DRAWICON(XG,REF(CLOSE,1)*0.96,25);高:=REF(HHV(H,80),3);低:=REF(LLV(L,80),3);H18:=高-(高-低)*0.181;L19:=低+(高-低)*0.181;H中:=高-(高-低)*0.5;顶点:REFDATE(高,DATE),COLORWHITE;%18:REFDATE(H18,DATE),COLORYELLOW;%50:REFDATE(H中,DATE),COLORRED;%19:REFDATE(L19,DATE),COLORYELLOW;低点:REFDATE(低,DATE),COLORWHITE;DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE;DRAWTEXT(ISLASTBAR,%18,'%18'),COLORYELLOW;DRAWTEXT(ISLASTBAR,%50,'%50'),COLORRED;DRAWTEXT(ISLASTBAR,%19,'%19'),COLORYELLOW;DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;{回调狙击获利副图}ZT1:=C/REF(C,1)>1.0975 AND C=H;TS:=BARSLAST(ZT1);ZJ:=IF(TS<=16,DRAWLINE(ZT1,(H+L)/2,ISLASTBAR,REF((H+L)/2,TS),1),DRAWNULL); MA30:=MA(C,30);CPXA:=(3*CLOSE+OPEN+LOW+HIGH)/6;CPXB:=(20*CPXA+19*REF(CPXA,1)+18*REF(CPXA,2)+17*REF(CPXA,3)+16*REF(CPXA,4 )+15*REF(CPXA,5)+14*REF(CPXA,6)+13*REF(CPXA,7)+12*REF(CPXA,8)+11*REF(CPXA, 9)+10*REF(CPXA,10)+9*REF(CPXA,11)+8*REF(CPXA,12)+7*REF(CPXA,13)+6*REF(CPX A,14)+5*REF(CPXA,15)+4*REF(CPXA,16)+3*REF(CPXA,17)+2*REF(CPXA,18)+1*REF(CP XA,19))/210;ZT:=IF(REF(C,1)*1.1-C<0.01 ,1,0);LC:=REF(CLOSE,1);CZX:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;ZCX:=45;ZCX2:=50;CDX:=20;PP2:=CZX<ZCX2 AND REF(CZX,1)>ZCX2 ;PP:=CZX<ZCX AND REF(CZX,1)>ZCX ;PP3:=CZX<CDX AND REF(CZX,1)>CDX;HH:=COUNT(ZT,9)>=1;DDDD:=(PP2 AND HH OR PP AND HH OR PP3 AND HH);A:=SMA(L,4,3) ;ZF:=(C-REF(C,1))/REF(C,1)*100;ZT9:=INTPART(SUM(ZF>9.9,9));LSMR:=IF (((A AND REF(PP,1) AND HH AND ZT9) OR (A AND REF(PP3,1) AND HH AND ZT9) OR (A AND REF(PP2,1) AND HH AND ZT9)),1,0 );LT:=(CAPITAL/100)/10000<=10;XG1:LSMR AND REF(LSMR,1) AND CZX>REF(CZX,1) AND LT;XG2:LSMR AND REF(LSMR,2) AND CZX>REF(CZX,1) AND LT;XG3:REF(LSMR,1) AND CZX>REF(CZX,1) AND LT AND REF(CZX,1)<REF(CZX,2);JD30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.14159;AA30:=JD30>5;AA:=REF((H+L)/2,TS);XG:XG1 OR XG2 OR XG3 AND C>MA30 AND C>CPXB AND C>AA;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);第二波选股:COUNT(C/REF(C,1)>=1.09925,20)>=1AND REF(K,1)<16 AND K>=REF(K,1),COLORRED;。
通达信指标公式源码 回调K线 做强势回调必备 源码
{回调K线}涨幅:100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORWHITE;最大涨幅:100*(H-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORYELLOW; 最大跌幅:100*(L-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORYELLOW;实体幅:ABS(100*(CLOSE-OPEN)/OPEN),NODRAW,COLORRED;上影幅:IF(CLOSE>OPEN,100*(H-C)/C,100*(H-O)/O),NODRAW,COLORYELLOW; 下影幅:IF(CLOSE>OPEN,100*(O-L)/L,100*(C-L)/L),NODRAW,COLORWHITE; X:=(3*C+L+O+H)/6;AH1:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*RE F(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*R EF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*RE F(X,18)+REF(X,20))/210;CP:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/ 12);AH2:=EXPMEMA(CP,25);持股线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; VAR2M:=CLOSE*VOL;VAR3M:=EMA((EXPMA(VAR2M,3)/EXPMA(VOL,3)+EXPMA(VAR2M,6)/EXPMA(VOL,6)+EXPMA(VAR2M,12)/EXPMA(VOL,12)+EXPMA(VAR2M,24)/EXPMA(VOL,2 4))/4,13);SDN:=VAR3M*0.94;涨停B:=CLOSE>1.1*REF(CLOSE,1)-0.005 AND H>L;首个涨停:=BARSLAST(涨停B);大阳:=100*(H-REF(C,1))/REF(C,1)>7;DRAWICON((C>SDN AND 100*(L-持股线)/持股线<1.5 AND100*(L-((MIN(AH2,AH1)+MIN(持股线,AH2)+MIN(持股线,AH1))/2.95))/((MIN(AH2,AH1)+MIN(持股线,AH2)+MIN(持股线,AH1))/2.95)<1.5 AND (COUNT(大阳{ OR 倍量},13)>=2 OR 首个涨停<13) AND BARSLAST(大阳)>0 AND 涨幅<=2),L*0.98,1);DRAWTEXT(CLOSE>1.1*REF(CLOSE,1)-0.005,CLOSE*1.02,'停,'),COLORCYAN; DRAWTEXT(CLOSE<0.9*REF(CLOSE,1)+0.005,L*0.98,'停,'),COLORCCCCCC; VAR32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10;火:=BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1));CRXP:=((REF(上影幅,1)>3 AND REF(下影幅,1)<1.15))AND ((下影幅>3 AND 上影幅<1.55)) AND 涨幅<8;JM:=(3*SMA(SMA(VAR32,2,1),2,1)-2*SMA(SMA(SMA(VAR32,2,1),2,1),3,1)); 强势回调:=(首个涨停<14 OR (首个涨停<26 AND 首个涨停>19));搓揉:=((强势回调AND CRXP) OR (CRXP AND (JM>REF(JM,1) OR (火>0 AND JM<7))));DRAWTEXT_FIX(1,0.85,0,0,'~ 作者: 阿虎~'),COLORCYAN;DRAWTEXT(搓揉,L*0.98,'搓揉,'),COLORYELLOW;回调搓合承受价:(MIN(AH2,AH1)+MIN(BBI,AH2)+MIN(BBI,AH1))/2.95,NODRAW;大盘短期生命线:EMA(((SLOPE(INDEXC,22)*23)+INDEXC),48),COLORYELLOW,LINETHICK3, NODRAW;=============================================== =============================================== ==============={均线定势}日最大涨幅:100*(H-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORYELLOW; 日涨幅:100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1),NODRAW,COLORWHITE; M5:MA(C,5),COLORWHITE;M10:MA(C,10),COLORYELLOW;M20:MA(C,20),COLORBLUE;MA30:MA(C,30),COLORRED,LINETHICK2;M60:MA(C,60),COLORFFCC66;PMA:=MA(C,5);X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X, 5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*R EF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*RE F(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK2;DD:=多空线<REF(多空线,1);IF(DD,多空线,DRAWNULL),COLOR00FFFF,LINETHICK2;A:=(PMA>多空线);IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLO RGREEN,LINETHICK2;IF(MA(CLOSE,5)<=REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORGR EEN;IF(MA(CLOSE,10)<=REF(MA(CLOSE,10),1),MA(CLOSE,10),DRAWNULL),COLO RGREEN;DRAWTEXT(CLOSE>=1.094*REF(CLOSE,1),CLOSE*1.02,'停,'),COLORCYAN; VARZT:=BARSLAST(C/REF(C,1)>1.094);DRAWTEXT(VARZT=2,L*0.95,'3T'),COLORYELLOW;DRAWTEXT(VARZT=4,H*1.06,'5T'),COLORYELLOW;DRAWTEXT(VARZT=7,L*0.95,'8T'),COLORYELLOW;DRAWTEXT(VARZT=12,H*1.06,'13T'),COLORYELLOW;DRAWTEXT(VARZT=20,L*0.95,'21T'),COLORYELLOW;DRAWTEXT(VARZT=33,H*1.06,'34T'),COLORYELLOW;DRAWTEXT(VARZT=54,L*0.95,'55T'),COLORYELLOW;DRAWTEXT_FIX(1,0,0,0,'总股本(亿):'),COLORLIGRAY;DRAWNUMBER_FIX(1,0.06,0,0,CONST(FINANCE(1)/100000000)),COLORLIGR AY;DRAWTEXT_FIX(1,0.13,0,0,'流通股本(亿):'),COLORLIGRAY; DRAWNUMBER_FIX(1,0.2,0,0,CONST(CAPITAL/1000000)),COLORLIGRAY; DRAWTEXT_FIX(1,0.25,0,0,'所属板块:'),COLORLIGRAY;DRAWTEXT_FIX(1,0.302,0,0,HYBLOCK),COLORLIGRAY;DRAWTEXT_FIX(1,0.35,0,0,DYBLOCK),COLORLIGRAY;AL2:=ABS((REF(C,1)-(REF(O,1)))/(REF(O,1)));AL3:=ABS((REF(H,1)-(REF(O,1)))/(REF(O,1)));AL4:=ABS((REF(L,1)-(REF(O,1)))/(REF(O,1)));ELE:=(((REF(HIGH,1))+(REF(LOW,1))+(REF(OPEN,1))+2*(REF(CLOSE,1)))/5 );上升突破价:=(ELE+((REF(HIGH,1))-(REF(LOW,1))));上升阻力价:=(2*ELE-(REF(LOW,1)));下跌支撑价:=(2*ELE-(REF(HIGH,1)));下跌反转价:=(ELE-((REF(HIGH,1))-(REF(LOW,1))));预测低一:=O-(O*(ABS((AL2+AL3+AL4)/3)));预测低二:=(预测低一+((((ELE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5)+O)/2))/2;VARM:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买盘:=IF(CLOSE>OPEN,VARM*(HIGH-LOW),IF(CLOSE<OPEN,VARM*((HIGH-OP EN)+(CLOSE-LOW)),VOL/2));DRAWTEXT_FIX(1,0.85,0,0,'~ 作者: 阿虎~'),COLORCYAN;DRAWTEXT_FIX(1,0.78,0.9,0,'@别人贪婪时我恐惧,别人恐惧时我贪婪!'),COLORLIGRAY;DRAWTEXT_FIX(1,0,0.10,0,'预测低一:'),COLORLIGRAY;DRAWTEXT_FIX(1,0,0.18,0,'预测低二:'),COLORLIGRAY;DRAWTEXT_FIX(1,0.25,0.18,0,'系数:'),COLORLIGRAY;DRAWNUMBER_FIX(1,0.06,0.10,0,CONST(预测低一)),COLORLIGRAY; DRAWNUMBER_FIX(1,0.06,0.18,0,CONST(预测低二)),COLORLIGRAY; DRAWTEXT_FIX(1,0.13,0.10,0,'成交量比:'),COLORLIGRAY;DRAWTEXT_FIX(1,0.13,0.18,0,'涨停价★:'),COLORLIGRAY; DRAWNUMBER_FIX(1,0.19,0.18,0,CONST(REF(C,1)+(REF(C,1))/10)),COLORL IGRAY;DRAWTEXT_FIX(1,0.25,0.10,0,'量比:'),COLORLIGRAY;DRAWNUMBER_FIX(1,0.19,0.10,0,CONST(买盘/VOL*100)),COLORLIGRAY; DRAWNUMBER_FIX(1,0.28,0.10,0,CONST(DYNAINFO(17))),COLORLIGRAY; DRAWNUMBER_FIX(1,0.28,0.18,0,CONST(IF(CURRBARSCOUNT=1,VOL*240/F ROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1))),COLORLIGRAY;。
通达信指标公式源码 涨停板主图
支撑价:LLV(LOW,19) ,COLORGREEN,LINETHICK3;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK3;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);JL01:=MA(C,3);LJL07:=(3*C+L+O+H)/6;牛线:(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF (LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL 07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07, 12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16) +3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;马线:MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;等待:IF(JL01<=牛线,马线,DRAWNULL),COLORRED,LINETHICK4,POINTDOT; VAR1L:=(C>REF(C,1) AND C>REF(C,2));VAR2L:=(REF(VAR1L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR3L:=(REF(VAR2L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR4L:=(REF(VAR3L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR5L:=(REF(VAR4L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR6L:=(REF(VAR5L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR7L:=(REF(VAR6L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR8L:=(REF(VAR7L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR9L:=(REF(VAR8L,1) AND C>=REF(C,1) AND C<=REF(C,2));VARAL:=(REF(VAR9L,1) AND C<=REF(C,1) AND C>=REF(C,2));VARBL:=(REF(VARAL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARCL:=(REF(VARBL,1) AND C<=REF(C,1) AND C>=REF(C,2));持股:IF(VAR1L OR VAR2L OR VAR3L OR VAR4L OR VAR5L OR VAR6L OR VAR7L OR VAR8L OR VAR9L OR VARAL OR VARBL OR VARCL,牛线,DRAWNULL),COLORRED,LINETHICK1;VARDL:=(C<REF(C,1) AND C<REF(C,2));VAREL:=(REF(VARDL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARFL:=(REF(VAREL,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L0:=(REF(VARFL,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L1:=(REF(VAR1L0,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L2:=(REF(VAR1L1,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L3:=(REF(VAR1L2,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L4:=(REF(VAR1L3,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L5:=(REF(VAR1L4,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L6:=(REF(VAR1L5,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L7:=(REF(VAR1L6,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L8:=(REF(VAR1L7,1) AND C>=REF(C,1) AND C<=REF(C,2));持币:IF(VARDL OR VAREL OR VARFL OR VAR1L0 OR VAR1L1 OR VAR1L2 OR VAR1L3 OR VAR1L4 OR VAR1L5 OR VAR1L6 OR VAR1L7 OR VAR1L8,牛线,DRAWNULL),COLORGREEN,LINETHICK1;V5日涨跌%: (C-REF(CLOSE,5))/REF(CLOSE,5)*100,COLORWHITE,NODRAW; V10日涨跌%:(C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW;V30日涨跌%:(C-REF(CLOSE,30))/REF(CLOSE,30)*100,COLORMAGENTA,NODRAW; STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0),COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3), LINETHICK4,POINTDOT;VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100; VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100; VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5) /4;VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLO SE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLO SE,1)),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100; VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*10 0;VAR23:=BARSCOUNT(CLOSE);VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LO W),77)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 ANDCLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 ANDVOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'风险'), COLOR00FF00; DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'抄底'),COLORYELLOW; STICKLINE(VAR2D>0,O,C,10,0), COLORYELLOW;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 ANDVAR4>REF(VAR4,1),L*0.98,5);DRAWICON(FILTER(COUNT(VAR6<0,5)AND CROSS(VAR6,0)ANDVARF>REF(VARF,1)AND C>O,3),L,11);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)AND VAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,12);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)ANDC<O,H*1.02,6);Y:=CLOSE/REF(CLOSE,1)>1.07;X:=VOL>MA(VOL,5);A1:=Y AND X;DRAWTEXT(A1,MA(CLOSE,5),'攻涨停'),COLORMAGENTA;Z:=CLOSE/REF(CLOSE,1)<0.93;W:=VOL<MA(VOL,5);A2:=Z AND W;DRAWTEXT(A2,MA(CLOSE,5),'小心跌停'),COLORGREEN;。
分时涨停通达信指标公式源码
分时涨停通达信指标公式源码通达信指标公式源码是一种编写股票技术指标的代码,通常用于量化交易分析。
分时涨停是指当股价在一定时间内涨幅达到涨停板的情况。
下面是一个使用通达信公式语言编写的分时涨停指标示例源码:```c/*分时涨停指标公式*//*分时涨停=(当前价格-昨收价格)/昨收价格*100*//*若涨幅超过10%,则显示为1000*//*以一个交易日为周期计算涨停*/input n = 1; // 交易周期input limit_up = 10; // 涨停幅度//获取昨收价格prev_close = Ref(C, 1);//计算当前涨停幅度percent = (close - prev_close) / prev_close * 100;//若当前涨停幅度超过限制,则显示为1000if (percent >= limit_up)percent = 1000;//输出涨停幅度Plot(percent, "分时涨停", colorRed, styleLine, Null, Null, n);```上述代码中,`input`语句用于设置输入参数,包括交易周期和涨停幅度。
`prev_close`变量用于获取昨收价格,`percent`变量用于计算当前涨停幅度。
如果涨幅超过涨停幅度限制,将其显示为1000。
最后,使用`Plot`函数输出涨停幅度曲线,参数包括指标数值、指标名称、曲线颜色和样式等。
注意:以上代码仅为示例,具体的指标公式可能根据交易软件和数据源的不同而有所差异,需要根据实际需求进行相应的调整和修改。
用户可以根据自己的需求进行各种参数的设置和指标计算逻辑的编写。
通达信指标公式源码 涨停板主图
支撑价:LLV(LOW,19) ,COLORGREEN,LINETHICK3;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK3;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);JL01:=MA(C,3);LJL07:=(3*C+L+O+H)/6;牛线:(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF (LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL 07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07, 12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16) +3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;马线:MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;等待:IF(JL01<=牛线,马线,DRAWNULL),COLORRED,LINETHICK4,POINTDOT; VAR1L:=(C>REF(C,1) AND C>REF(C,2));VAR2L:=(REF(VAR1L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR3L:=(REF(VAR2L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR4L:=(REF(VAR3L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR5L:=(REF(VAR4L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR6L:=(REF(VAR5L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR7L:=(REF(VAR6L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR8L:=(REF(VAR7L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR9L:=(REF(VAR8L,1) AND C>=REF(C,1) AND C<=REF(C,2));VARAL:=(REF(VAR9L,1) AND C<=REF(C,1) AND C>=REF(C,2));VARBL:=(REF(VARAL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARCL:=(REF(VARBL,1) AND C<=REF(C,1) AND C>=REF(C,2));持股:IF(VAR1L OR VAR2L OR VAR3L OR VAR4L OR VAR5L OR VAR6L OR VAR7L OR VAR8L OR VAR9L OR VARAL OR VARBL OR VARCL,牛线,DRAWNULL),COLORRED,LINETHICK1;VARDL:=(C<REF(C,1) AND C<REF(C,2));VAREL:=(REF(VARDL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARFL:=(REF(VAREL,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L0:=(REF(VARFL,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L1:=(REF(VAR1L0,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L2:=(REF(VAR1L1,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L3:=(REF(VAR1L2,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L4:=(REF(VAR1L3,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L5:=(REF(VAR1L4,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L6:=(REF(VAR1L5,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L7:=(REF(VAR1L6,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L8:=(REF(VAR1L7,1) AND C>=REF(C,1) AND C<=REF(C,2));持币:IF(VARDL OR VAREL OR VARFL OR VAR1L0 OR VAR1L1 OR VAR1L2 OR VAR1L3 OR VAR1L4 OR VAR1L5 OR VAR1L6 OR VAR1L7 OR VAR1L8,牛线,DRAWNULL),COLORGREEN,LINETHICK1;V5日涨跌%: (C-REF(CLOSE,5))/REF(CLOSE,5)*100,COLORWHITE,NODRAW; V10日涨跌%:(C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW;V30日涨跌%:(C-REF(CLOSE,30))/REF(CLOSE,30)*100,COLORMAGENTA,NODRAW; STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0),COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3), LINETHICK4,POINTDOT;VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100; VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100; VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5) /4;VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLO SE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLO SE,1)),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100; VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*10 0;VAR23:=BARSCOUNT(CLOSE);VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LO W),77)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 ANDCLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 ANDVOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'风险'), COLOR00FF00; DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'抄底'),COLORYELLOW; STICKLINE(VAR2D>0,O,C,10,0), COLORYELLOW;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 ANDVAR4>REF(VAR4,1),L*0.98,5);DRAWICON(FILTER(COUNT(VAR6<0,5)AND CROSS(VAR6,0)ANDVARF>REF(VARF,1)AND C>O,3),L,11);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)AND VAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,12);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)ANDC<O,H*1.02,6);Y:=CLOSE/REF(CLOSE,1)>1.07;X:=VOL>MA(VOL,5);A1:=Y AND X;DRAWTEXT(A1,MA(CLOSE,5),'攻涨停'),COLORMAGENTA;Z:=CLOSE/REF(CLOSE,1)<0.93;W:=VOL<MA(VOL,5);A2:=Z AND W;DRAWTEXT(A2,MA(CLOSE,5),'小心跌停'),COLORGREEN;。
通达信指标公式源码 一技必杀之涨停出击,信号准确!
明涨停价:CLOSE * 1.1,NODRAW;ST涨停价:CLOSE * 1.05,NODRAW;获利1个点:REF(C,1)*1.01,COLORRED,NODRAW;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);短期底部:=LLV(OPEN,30);AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));VAR8:=(((CLOSE - VAR7) / VAR7) * 100);VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) < REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) >2.5));VARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),5,1) / SMA(ABS((CLOSE - VARD)),5,1)) * 100); VARF:=(((HIGH + LOW) + CLOSE) / 3);VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100))< (0 - 0.273));VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR13:=(VAR11 AND VAR12);VAR14:=((((VARA >= (0 - 45)) AND (VARA <= (0 - 10))) AND (VARB <= (0 - 15))) AND (VARC <= (0 - 20)));VAR15:=(COUNT(VAR14,1) >= 1);VAR16:=(VAR13 AND VAR15);VAR17:=1;VAB0:=531;VAB1:=1510000;VAB2:=VAB0 + VAB1; VAB3:=IF(DATE > VAB2,0,1); VARA12:=SMA(H,10,9)*VAB3; VARA13:=SMA(L,10,9)*VAB3; VAR18:=(CLOSE * VOL); VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1);VAR1A:=(1 * VAR19);VAR1B:=(VAR19 * 0.92);VAR1C:=EMA(CLOSE,34);VAR1D:=MA((VAR1C * 1.12),5);VAR1E:=MA((VAR1C * 0.82),5);VAR1F:=(CLOSE < VAR1E);VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17));VAR21:=HHV(HIGH,500);VAR22:=LLV(LOW,500);VAR23:=HHV(HIGH,250);VAR24:=LLV(LOW,250);VAR25:=HHV(HIGH,125);VAR26:=LLV(LOW,125);VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35); VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18);VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35);VAR2C:=VAR27;VAR2D:=VAR28;VAR2E:=VAR29;VAR2F:=VAR2A;VAR30:=VAR2B;VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));VAR32:=(INDEXA / 100000000);VAR33:=INDEXADV;VAR34:=INDEXDEC;VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);VAR37:=EMA(VAR35,10);VAR38:=EMA(VAR36,10);VAR39:=EMA(VAR37,10);VAR3A:=EMA(VAR38,20);VAR3B:=EMA(VAR37,3);VAR3C:=EMA(VAR39,6);VAR3D:=EMA(VAR3A,2);VAR3E:=(VAR3C - VAR3D);VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0)); VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);VAR41:=VAR40;VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);VAR44:=(CLOSE - REF(MA(CLOSE,20),11));VAR45:=(((((((((((((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE <VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE< VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR1E) AND VAR31));VAR46:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR47:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR48:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR49:=REF(CLOSE,1);VAR4A:=((SMA(MAX((CLOSE - VAR49),0),5,1) / SMA(ABS((CLOSE - VAR49)),5,1)) * 100); VAR4B:=(((HIGH + LOW) + CLOSE) / 3);VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100))< (0 - 0.273));VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR4F:=(VAR11 AND VAR12);VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));VAR51:=(COUNT(VAR50,1) >= 1);VAR52:=(VAR4F AND VAR51);VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);VAR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR57:=REF(CLOSE,1);VAR58:=((SMA(MAX((CLOSE - VAR57),0),5,1) / SMA(ABS((CLOSE - VAR57)),5,1)) * 100); VAR59:=(((HIGH + LOW) + CLOSE) / 3);VAR5A:=((VAR59 - MA(VAR59,14)) / (0.015 * AVEDEV(VAR59,14)));VAR5B:=((((((VAR54 >= (0 - 15.8)) AND (VAR54 <= (0 - 12.2))) AND (VAR55 <= (0 - 20.8))) AND (VAR56 <= (0 - 27.5))) AND (VAR58<= 11.7)) AND (VAR5A <= (0 - 145)));VAR5C:=9.999999884842+026;VAR5D:=(COST(10) * 0)*VAB3;VAR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));VAR61:=MA(CLOSE,3);VAR62:=(REF(CLOSE,2) * 0.865);VAR63:=(REF(CLOSE,13) * 0.772);VAR64:=MIN(VAR62,VAR63);VAR65:=((100 * VOL) / CAPITAL);VAR66:=MA(CLOSE,13);VAR67:=IF(((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8)),1,0); 开始控盘:=STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),5,0)*VAB3,COLORBROWN;出击:=IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) <0.03) AND ((SUM(VAR65,5) / 5) <1.8))),120,0),LINETHICK2,COLOR0000FF;VAR68:=0;VARQ:=MA(CLOSE,152);VARW:=MA(CLOSE,194.16);VAREE:=(VARW + (2 * STD(CLOSE,170)));VARR:=(VARQ + (2 * STD(CLOSE,170)));VART:=IF((DATE > 1080822),0,1);VAR611:=EMA(HHV(HIGH,500),21);VAR71:=EMA(HHV(HIGH,250),21);VAR81:=EMA(HHV(HIGH,90),21);VAR91:=EMA(LLV(LOW,500),21);VARA1:=EMA(LLV(LOW,250),21);VARB1:=EMA(LLV(LOW,90),21);VARC1:=EMA((((((((VAR91 * 0.96) + (VARA1 * 0.96)) + (VARB1 * 0.96)) + (VAR611 * 0.558)) + (VAR71 * 0.558)) + (VAR81 * 0.558))/ 6),21);VARD1:=EMA((((((((VAR91 * 1.25) + (VARA1 * 1.23)) + (VARB1 * 1.2)) + (VAR611 * 0.55)) + (VAR71 * 0.55)) + (VAR81 * 0.65)) /6),21);VARE1:=EMA((((((((VAR91 * 1.3) + (VARA1 * 1.3)) + (VARB1 * 1.3)) + (VAR611 * 0.68)) + (VAR71 * 0.68)) + (VAR81 * 0.68)) /6),21);VARF1:=EMA((((((VARC1 * 3) + (VARD1 * 2)) + VARE1) / 6) * 1.738),21)*VAB3;VAR101:=REF(LOW,1);VAR111:=((SMA(ABS((LOW - VAR101)),3,1) / SMA(MAX((LOW - VAR101),0),3,1)) * 100); VAR121:=EMA(IF(((CLOSE * 1.35) <= VARF1),(VAR111 * 10),(VAR111 / 10)),3)*VAB3; VAR131:=LLV(LOW,30);VAR141:=HHV(VAR121,30)*VAB3;VAR151:=IF(MA(CLOSE,58),1,0);VAR161:=((EMA(IF((LOW <= VAR131),((VAR121 + (VAR141 * 2)) / 2),0),3) / 618) * VAR151);VAR171:=(((IF((VAR161 > 50),50,VAR161) / 20) * 15) * VART)*VAB3;SG:=EMA(HHV(HIGH,1),8);X1:=EMA(CLOSE,8);X30:=((X1 < REF(X1,1)) AND (CLOSE < X1));X31:=IF(((SG < REF(SG,1)) OR X30),1,0);LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORRED,LINETHICK2; 趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,COLORGRAY;震仓线:=45,COLORMAGENTA;震仓线2:=50,COLORGRAY;逃命线:=80,COLORRED;抄底线:=20,COLORGREEN;绝底线:=5,COLORBLUE;PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;PP:=操作线<震仓线AND REF(操作线,1)>震仓线;PP3:=操作线<抄底线AND REF(操作线,1)>抄底线*VAB3;卖出价参考:VARA12,COLORRED,NODRAW;补仓价参考:VARA13,COLORGREEN,NODRAW;财主抓涨停:(((((COUNT((X31 = 1),4) = 3) AND (X31 = 0))AND O<C AND (((C-REF(C,1))/REF(C,1))>0.085))*89) >=89)OR((C-REF(C,1))/REF(C,1)>0.085 AND (REF(PP3,1) OR REF(PP,1))) AND VAB3=1,NODRAW;STICKLINE(财主抓涨停,0.1,0,2,0),COLORRED;STICKLINE(财主抓涨停,0.1,1,2,0),COLORBLUE;STICKLINE(财主抓涨停,0.2,1,2,0),COLORRED;STICKLINE(财主抓涨停,0.3,1,2,0),COLORBLUE;STICKLINE(财主抓涨停,0.4,1,2,0),COLORMAGENTA;STICKLINE(财主抓涨停,0.5,1,2,0),COLORBROWN;STICKLINE(财主抓涨停,0.6,1,2,0),COLORMAGENTA;STICKLINE(财主抓涨停,0.7,1,2,0),COLORYELLOW;STICKLINE(财主抓涨停,0.8,1,2,0),COLORLIRED;STICKLINE(财主抓涨停,0.9,1,2,0),COLORYELLOW;。
通达信指标公式源码 自用涨停主图指标
涨停:=BETWEEN(CLOSE/REF(CLOSE,1),1.0984,1.110) AND C=H AND C>O; MA5:MA(CLOSE,5),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,30),COLORGREEN;MA60:MA(CLOSE,60),COLORBROWN,DOTLINE;MA120:MA(CLOSE,120),COLORLIMAGENTA,DOTLINE;DRAWICON(CROSS(MA10,MA20),MA20,1);DRAWICON(CROSS(MA20,MA60),MA60,1);DRAWICON(CROSS(MA20,MA120),MA120,1);DRAWICON(CROSS(MA60,MA120),MA60,1);反弹托:=MA5>MA20 AND MA5>MA20 AND MA20<MA60 AND MA60<MA120 AND CROSS(MA10,MA20);月价托:=MA5>MA20 AND MA20>MA60 AND MA60>MA120 AND MA5>MA20 AND CROSS(MA10,MA20);季价托:=MA20>MA60 AND MA20>MA60 AND CROSS(MA20,MA60);短长价托:=MA5>MA60 AND MA5>MA10 AND CROSS(MA10,MA60);半年托:=MA60>MA120 AND MA60>MA120 AND CROSS(MA60,MA120);熊来:=MA60<MA120 AND MA60<MA120 AND CROSS(MA120,MA60);月蜘蛛:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20);DRAWTEXT(月蜘蛛,MA20-0.08,'△蜘'),COLORMAGENTA;DRAWTEXT(反弹托,MA20-0.08,'△反弹'),COLORMAGENTA;DRAWTEXT(月价托,MA20-0.1,'△月托'),COLORMAGENTA;DRAWTEXT(季价托,MA60-0.0.1,'△季托'),COLORMAGENTA;DRAWTEXT(短长价托,L+0.05,'△短长托'),COLOR36C0C1;DRAWTEXT(半年托,MA120-0.05,'△牛来'),COLORRED;DRAWTEXT(熊来,MA60+0.05,'▽熊来'),COLORGREEN;压:=MA10<MA20 AND MA20>MA10 AND CROSS(MA20,MA10); DRAWTEXT(压,MA20+0.012,'▽压'),COLORYELLOW;VOL5:=MA(VOL,5),COLORWHITE; {好}VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) ANDREF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托,L-0.012,'量'),COLORWHITE;AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND(C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.05,'△芙'),COLORFF00FF;STICKLINE(芙蓉出水,H+2,L-2,0.001,0),COLORYELLOW,DOTLINE;R1:=(C>REF(C,1) AND C>REF(C,2));R2:=(REF(R1,1) AND C<=REF(C,1) AND C>=REF(C,2));R3:=(REF(R2,1) AND C>=REF(C,1) AND C<=REF(C,2));R4:=(REF(R3,1) AND C<=REF(C,1) AND C>=REF(C,2));R5:=(REF(R4,1) AND C>=REF(C,1) AND C<=REF(C,2));R6:=(REF(R5,1) AND C<=REF(C,1) AND C>=REF(C,2));R7:=(REF(R6,1) AND C>=REF(C,1) AND C<=REF(C,2));R8:=(REF(R7,1) AND C<=REF(C,1) AND C>=REF(C,2));R9:=(REF(R8,1) AND C>=REF(C,1) AND C<=REF(C,2));RA:=(REF(R9,1) AND C<=REF(C,1) AND C>=REF(C,2));RB:=(REF(RA,1) AND C>=REF(C,1) AND C<=REF(C,2));RC:=(REF(RB,1) AND C<=REF(C,1) AND C>=REF(C,2));RD:=(C<REF(C,1) AND C<REF(C,2));RE:=(REF(RD,1) AND C>=REF(C,1) AND C<=REF(C,2));RF:=(REF(RE,1) AND C<=REF(C,1) AND C>=REF(C,2));R10:=(REF(RF,1) AND C>=REF(C,1) AND C<=REF(C,2));R11:=(REF(R10,1) AND C<=REF(C,1) AND C>=REF(C,2));R12:=(REF(R11,1) AND C>=REF(C,1) AND C<=REF(C,2));R13:=(REF(R12,1) AND C<=REF(C,1) AND C>=REF(C,2));R14:=(REF(R13,1) AND C>=REF(C,1) AND C<=REF(C,2));R15:=(REF(R14,1) AND C<=REF(C,1) AND C>=REF(C,2));R16:=(REF(R15,1) AND C>=REF(C,1) AND C<=REF(C,2));R17:=(REF(R16,1) AND C<=REF(C,1) AND C>=REF(C,2));R18:=(REF(R17,1) AND C>=REF(C,1) AND C<=REF(C,2));R19:=((REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15OR R16 OR R17 OR R18,1)) AND R1);R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);蓝心板:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,1);RSV9:=(C-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K1:=SMA(RSV9,3,1);DK1:=K1-REF(K1,1);出手就赢:=IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0);绿心板:=(出手就赢=50 OR REF("KDJ.J",1)<0) AND "KDJ.J">0;红心板:=蓝心板AND 绿心板;绿心过滤:=IF((蓝心板),DRAWNULL,绿心板);蓝心过滤:=IF((绿心板),DRAWNULL,蓝心板);STICKLINE(涨停,O,C,3.6,1),COLORYELLOW;STICKLINE(涨停AND 蓝心过滤,O,C,0.4,0),COLORBLUE;STICKLINE(涨停AND 绿心过滤,O,C,0.4,0),COLORGREEN;STICKLINE(涨停AND 红心板,O,C,0.4,0),COLORRED;AAA:=CONST(HHV(H,90));AA2:=AMOUNT/V;BB2:=L<AA1*0.9;CC2:=(C-REF(C,1))/REF(C,1)*100>1.2;DD2:=L<MA(C,5)*0.921;EE2:=V<MA(V,5)*1.5;老鼠仓:=BB2 AND CC2 AND DD2 AND EE2,LINETHICK0;DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10))) + IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10))); DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T2:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >=DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)) AND (DSLX < DSLX1)),1,0));T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T17:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 < V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)),1,0));T23:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0));T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0));T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)),1,0));DRAWTEXT(T1=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ;,'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORFF00FF ; DRAWTEXT(T3=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORFF00FF ; DRAWTEXT(T4=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORFF00FF ; DRAWTEXT(T5=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=70,AAA*0.98,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORFF00FF ; DRAWTEXT(T7=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望。
通达信涨停回调第二波启动+选股指标公式
XG1:LSMR AND REF(LSMR,1) AND CZX>REF(CZX,1) AND LT;
XG2:LSMR AND REF(LSMR,2) AND CZX>REF(CZX,1) AND LT;
XG3:REF(LSMR,1) AND CZX>REF(CZX,1) AND LT AND REF(CZX,1)<REF(CZX,2);
CPXB:=(20*CPXA+19*REF(CPXA,1)+18*REF(CPXA,2)+17*REF(CPXA,3)+16*REF(CPXA,4)+15*REF(CPXA,5)+14*REF(CPXA,6)+13*REF(CPXA,7)+12*REF(CPXA,8)+11*REF(CPXA,9)+10*REF(CPXA,10)+9*REF(CPXA,11)+8*REF(CPXA,12)+7*REF(CPXA,13)+6*REF(CPXA,14)+5*REF(CPXA,15)+4*REF(CPXA,16)+3*REF(CPXA,17)+2*REF(CPXA,18)+1*REF(CPXA,19))/210;
JD30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.14159;
AA30:=JD30>5;
AA:=REF((H+L)/2,TS);
XG:XG1 OR XG2 OR XG3 AND C>MA30 AND C>CPXB AND C>AA;
回踩趋势线 通达信指标公式源码
为方便捕捉回调到位的强势股,弄了个回踩支撑线的指标,请有缘人优化:m=14高:=MA(REF(HIGH,1)/REF(CLOSE,2),27)*REF(CLOSE,1);低:=MA(REF(LOW,1)/REF(CLOSE,2),27)*REF(CLOSE,1);预测高点:=高,COLORRED;预测低点:=低,COLOR00FF00;A:=HHV(H,M)=H AND H>REF(H,1);A1:=FILTER(A,M-1);B:=LLV(L,M)=L AND L<REF(L,1);B1:=FILTER(B,M-1);TS1:=BARSLAST(A1);箱顶:=REF(HIGH,TS1);TS11:=BARSLAST(B1);箱底:=REF(LOW,TS11);回踩箱顶:(L<=箱顶AND C>箱顶) OR CROSS(C,箱顶) ;回踩箱底:(L<=箱底AND C>箱底) OR CROSS(C,箱底);回踩箱体:回踩箱顶OR 回踩箱底;涨△边:=DRAWLINE(LOW<=LLV(LOW,14),LOW,HIGH>=HHV(HIGH,3),LLV(LOW,3),1),COLO RLIRED,DOTLINE;降△边:=IF(DRAWNULL,0,DRAWLINE(HIGH>=HHV(HIGH,14),HIGH,LOW<=LLV(LOW,3),HHV (HIGH,3),1)),COLORCYAN,DOTLINE;回踩支撑线:(L<=涨△边AND C>涨△边) OR CROSS(C,涨△边);回踩:回踩箱体OR 回踩支撑线;希望:1、选出附图标注为A的形态(回踩);2、过滤形态为附图标注为B的形态(伪信号);3、过滤形态为附图标注为C的形态(突破非回踩);4、使用该源码后,通达信崩溃了;。