通达信指标——顶底K线(副图)
通达信指标逃顶抓底副图,操作简单,易上手一看就懂
通达信指标逃顶抓底副图,操作简单,易上手一看就懂
本人收藏的逃顶抓底指标,经过本人改良加入一些条件,对个股大盘顶底趋势把握更精准,牛股抄底比较准,震荡市逃顶比较准。
分享给大家。
大顶小顶一览无余
1.白色线是精准短线运行趋势,结合大盘的走势和个股的成交量跟踪观察,即可判定顶部即将形成,如果当天股票下跌即将收阴且成交量萎缩就应该果断卖出.
2.青色柱线,在青色线是中期精准趋势线.
3.用该指标可波段操作,如果手中的股票严重被套,用上述方法操作在顶部卖出80%,底部补进,几个来回就有可能解套.可随时比照主图K 线方便观察趋势,
{N1(2,250,5)}{N2(2,150,10)}
SHI:=REF(CLOSE,1);
SHOU:SMA(MAX(CLOSE-SHI,0),N1,1)/SMA(ABS(CLOSE-SHI),N1,1)*100;
MAZL:MA(SHOU,N2)*1.2,COLORBROWN;
AA:95,COLORGREEN;
BB:90,COLORCYAN;
CC:45,COLORYELLOW;
DD:80,COLORMAGENTA;
EE:10,COLORRED;
DRAWTEXT(ISLASTBAR,AA,'清仓');
DRAWTEXT(ISLASTBAR,BB,'减仓');
DRAWTEXT(ISLASTBAR,DD,'警觉');。
通达信超级抄底逃顶大全副图指标
TT:=(2*CLOSE+OPEN+HIGH+LOW);主导动能:TT/EMA(TT,4)-1;FF:=(主导动能*500)+50;STICKLINE(FF,50,FF,3.2,0),COLOR33CFDD;STICKLINE(FF,50,FF,2.8,0),COLOR33DFDD;STICKLINE(FF,50,FF,2,0),COLOR33EFDD;STICKLINE(FF,50,FF,1,0),COLOR33FFDD;STICKLINE(FF<50,50,FF,3.2,0),COLOR00CC00;STICKLINE(FF<50,50,FF,2.8,0),COLOR00DD00;STICKLINE(FF<50,50,FF,2,0),COLOR00EE00;STICKLINE(FF<50,50,FF,1,0),COLOR00FF00;STICKLINE(FF>REF(FF,1)AND FF<50,50,FF,3.2,0),COLORFF9900;STICKLINE(FF>REF(FF,1)AND FF<50,50,FF,2.8,0),COLORFFAA00;STICKLINE(FF>REF(FF,1)AND FF<50,50,FF,2,0),COLORFFBB00;STICKLINE(FF>REF(FF,1)AND FF<50,50,FF,1,0),COLORFFCC00;STICKLINE(FF>REF(FF,1)AND FF>50,50,FF,3.2,0),COLOR0000CC;STICKLINE(FF>REF(FF,1)AND FF>50,50,FF,2.8,0),COLOR0000DD;STICKLINE(FF>REF(FF,1)AND FF>50,50,FF,2,0),COLOR0000EE;STICKLINE(FF>REF(FF,1)AND FF>50,50,FF,1,0),COLOR0000FF;{黑马一号}AHC1:=CLOSE*VOL;AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);通道:=1.0668*AHC22;起爆:=CROSS(C,通道) AND REF(C,1)*1.05-C<0.008 AND C>O*0.5;黑马一号:IF(起爆,40,0);{黑马启动}AC1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));AC2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),AC1);金线王:=EMA(AC2,200)*1.118;条件:=(C-REF(C,1))/REF(C,1)*100>8;黑马启动:IF(CROSS(C,金线王) AND 条件,39,0);{黑马必抓}AA05:=MA(C,5);AA30:=MA(C,30);MA05:=MA(C,5);MA10:=MA(C,13);MAC30:=MA(C,34);速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);五日乖离率:=(C-AA05)/AA05*100;三拾日乖离率:=(C-MAC30)/MAC30*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;黑马必抓:IF(FILTER(MR,10),38,0);{拉升}LS:=C/REF(C,1)>1.048 AND C=H ANDBETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));拉升:IF(FILTER(LS,28),37,0);{粉量}VOLUME := VOL;MAVOL1 := MA(VOLUME,5);MAVOL2 := MA(VOLUME,34);MAVOL3 := MA(VOLUME,135);XG := IF(CROSS(0.6,((((1 / VOL) * 3000) > 0.01) AND (KDJ.J < 0)) AND (I < -100)),VOLUME * 5,0);XGG := XG > 0;ABC := (VOL >= (REF(V,1) * 1.91)) AND (C > (REF(C,1) * 1.01));ABC1 := VOL < REF(LLV(VOL,13),1);ABC2 := VOL < REF(LLV(VOL,55),1);ABC3 := ((ABS(VOL - REF(VOL,1))) / REF(VOL,1)) <= 0.05;ABB1:= STICKLINE(ABC1,0,V,1,0);BBB1:= STICKLINE(ABC2,0,V,1,0);绿量:= (ABB1 = 1) AND (COUNT(OPEN < CLOSE,1));粉量:= BBB1 = 1;地量: IF((XGG AND 绿量) OR (XGG AND 粉量),36,0);{趋势线}趋势: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),COLORWHITE;IF(趋势>=REF(趋势,1),趋势,DRAWNULL),COLORRED;IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN;{长期趋势金叉}P1:=5;P2:=4;VARRA:=LLV(LOW,P1);VARRB:=HHV(HIGH,P1);涨停动力线:=EMA((CLOSE-VARRA)/(VARRB-VARRA)*100,P2);涨停趋势线:=EMA(0.667*REF(涨停动力线,1)+0.333*涨停动力线,2);金叉:=CROSS(涨停动力线,涨停趋势线);钻石:IF(金叉AND 趋势<25,15,0);{与主力共生死}价量:=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);主线:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25);快线:=(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25);买入111:=快线>REF(快线,1) AND REF(快线,1)=0 AND REF(快线,2)=0 AND C>REF(O,1); 买入222:=快线>REF(快线,1) AND REF(快线,1)=0 AND REF(快线,1)<REF(快线,2) AND REF(快线,2)<40;卖出111:=快线<REF(快线,1) AND REF(快线,1)=100 AND REF(快线,2)<=100;快买:IF(买入111 OR 买入222,20,0);快卖:IF(卖出111,85,100);{超级支撑压力}短压:=HHV(LOW,20);中线:=MA(CLOSE,3);短期底部:=(LLV(HIGH,30) * 0.93);短期支撑:=LLV(CLOSE,13),COLOR6803C7;中期大底:=LLV(LOW,30);长期底部:=LLV(HIGH,30);MA30:=LLV(HIGH,30);短期底部二:=SMA(CLOSE,2,1);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);{//标注}上:=(SMA(LOW,5,2) * 0.96);AA1:=((((LOW <= 上) AND (HIGH >= 短期底部)) AND (CLOSE >= 长期底部)) AND ((CLOSE / OPEN) > 1.03));AA2:=FILTER(((((LOW <= MA30) AND (CLOSE > MA30)) AND (CLOSE > OPEN)) AND (短期底部二<= MA30)),8);超级组合1:IF(AA1 ,30,0);超级组合2:IF(AA2 ,30,0);{股价准备启动}VAR11:=3;VAR21:=(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)); 准备启动:IF(CROSS(VAR21,VAR11) ,55,0);{★底}VAR2W:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));MW:=EMA(VAR2W,3);VAR3W:=EMA(VAR2W,7);M1:=EMA(VAR3W,5);MB1:=CROSS(MW,M1) AND M1<20;TJ2:=IF((MB1),20,0),LINETHICK1,COLORRED;星底:IF(CROSS(MW,M1) AND M1<20 ,34,0);{反弹}A1:=HHV(HIGH,50)/LLV(LOW,100)>1.5;A2:=(HHV(HIGH,50)-LOW)/(HHV(HIGH,50)-LLV(LOW,100));A3:=(LOW-LLV(LOW,100))/(HHV(HIGH,50)-LLV(LOW,100));A4:=HHVBARS(HIGH,50)<LLVBARS(LOW,100);A5:=A1 AND A2>0.5 AND A3>0.3 AND A4;A6:=COUNT(A5,20)=1;反弹:=IF(A6 AND A5 ,33,0);{当心反弹}A:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;K:=SMA(A,2,1);Q:=A*1.03;反弹1: IF(CROSS(Q,15) AND K>REF(K,1),32,0) AND 趋势>REF(趋势,1),LINETHICK2,COLOR95FFCC;{反弹}VAR110:=(HIGH+LOW+OPEN+2*CLOSE)/5;VAR120:=REF(VAR110,1);VAR130:=SMA(MAX(VAR110-VAR120,0),10,1)/SMA(ABS(VAR110-VAR120),10,1)*100; 底部不远:=IF(COUNT(VAR130<=14,2),30,0),COLORMAGENTA,LINETHICK2;反弹2:IF(CROSS(VAR130,底部不远) AND VOL>1.5*MA(VOL,5),31,0);{黄金反弹}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K1:=SMA(RSV,3,1),COLORWHITE;D1:=SMA(K1,3,1),COLORYELLOW ;BIAS1:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;A11:=CROSS(K1,D1) AND CROSS(K1,D1)<16 AND BIAS1<-6;黄金反弹:IF(A11 AND 金叉,29,0),COLORFF00FF;AB1:=C-REF(C,1);AB2:=100*EMA(EMA(AB1,6),6)/EMA(EMA(ABS(AB1),6),6);买进1:=(LLV(AB2,2)=LLV(AB2,7) AND COUNT(AB2<0,2) AND CROSS(AB2,MA(AB2,2))); 买进:IF(买进1,10,0);A7:=REF(C,1)-C;A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);卖出1:=(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)));卖出:IF(卖出1,90,100);{低吸}VARJ1:=LLV(LOW,21);VARJ2:=HHV(HIGH,21);AKJ1:=EMA((((CLOSE - VARJ1) / (VARJ2 - VARJ1)) * 100),5);AKJ:=EMA((((CLOSE - VARJ1) / (VARJ2 - VARJ1)) * 50),13);低吸:IF(CROSS(AKJ1,AKJ),28,0);{买卖点}MVAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);MVAR2:=REF(MVAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); MVAR3:=REF(MVAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); MVAR4:=REF(MVAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); MVAR5:=REF(MVAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); MVAR6:=REF(MVAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); MVAR7:=REF(MVAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); MVAR8:=REF(MVAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); MVAR9:=REF(MVAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); MVARA:=REF(MVAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); MVARB:=REF(MVARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); MVARC:=REF(MVARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); MVARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);MVARE:=REF(MVARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); MVARF:=REF(MVARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); MVAR10:=REF(MVARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); MVAR11:=REF(MVAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); MVAR12:=REF(MVAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); MVAR13:=REF(MVAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); MVAR14:=REF(MVAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); MVAR15:=REF(MVAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); MVAR16:=REF(MVAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); MVAR17:=REF(MVAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); MVAR18:=REF(MVAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); MVAR19:=REF(MVARD OR MVARE OR MVARF OR MVAR10 OR MVAR11 OR MVAR12 OR MVAR13 OR MVAR14 OR MVAR15 OR MVAR16 OR MVAR17 OR MVAR18,1) AND MVAR1; MVAR1A:=REF(MVAR1 OR MVAR2 OR MVAR3 OR MVAR4 OR MVAR5 OR MVAR6 OR MVAR7 OR MVAR8 OR MVAR9 OR MVARA OR MVARB OR MVARC,1) AND MVARD;买:IF(FILTER(MVAR19=1,5) AND 金叉,15,0);逃:IF(FILTER(MVAR1A=1,5),90,100);{绝底介入}RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VARB2:=(RSV1/2+22)*1;资量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金/资量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯< (0)) AND ZXNH),COLORRED;底部:IF(黄金AND RSV<VARB2-2 ,50,0),COLORRED,LINETHICK2;{极品底}极品底A:=(MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04;极品底:IF(极品底A AND CROSS(趋势,REF(趋势,1)),35,0) ,LINETHICK2,COLORFF00FF; {底部买多}V1:=MA(C,3)=HHV(MA(C,3),7);V2:=MA(C,3)>MA(C,5);V3:=MA(V,5)>MA(V,10)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;LC20:=REF(CLOSE,1);RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;底部买多:IF(CROSS(RSI20,11)*1,55,0),COLORRED;{J抄底}BOLL20:=MA(CLOSE,20);LB20:=BOLL20-2*STD(CLOSE,20);BOLL10:=MA(CLOSE,10);LB10:=BOLL10-2*STD(CLOSE,10);J1:=IF(3*K1-2*D1>100,100,3*K1-2*D1);J抄底:IF(CROSS(J1,0) AND (COUNT(L<LB10,3)>0 ORCOUNT(L<LB20,3)>0),26,0),COLOR00FFFF;{黄金坑}VAR88:=MA(CLOSE,27);VAR98:=(CLOSE-VAR88)/VAR88*100;VARA8:=MA(VAR98,2);VARB8:=BARSLAST(CROSS(-10,VARA8)=1);VARC8:=BARSLAST(CROSS(VARA8,10)=1);VARD8:=VARA8<-10 AND VARB8>3;VARE8:=VARA8>10 AND VARC8>3;黄金坑: IF(VARD8,VARA8,0),LINESTICK ,LINETHICK2, COLORYELLOW;{仙人指路}皇榜公布:=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);仙人指路:IF(CROSS(皇榜公布,2),70,0), COLORRED;{发现牛股}MA1:=MA(C,5);MA2:=MA(C,10);MV1:=MA(V,5);MV2:=MA(V,10);AA:=CROSS(C,MA1) AND CROSS(C,MA2);BB:=CROSS(V,MV1) AND CROSS(V,MV2);发现牛股:IF(AA AND BB,61,0), COLORRED;{超级底部买进}VARK21:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SM A((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);买底:IF(CROSS(VARK21,8),85,0),COLORRED;{发现庄}VAR1:=EMA(HHV(HIGH,500),21);VAR2:=EMA(HHV(HIGH,250),21);VAR3:=EMA(HHV(HIGH,90),21);VAR4:=EMA(LLV(LOW,500),21);VAR5:=EMA(LLV(LOW,250),21);VAR6:=EMA(LLV(LOW,90),21);VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.5 58)/6,21);VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/ 6,21);VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,2 1);VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);VARB:=REF(LOW,1);VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);VARE:=LLV(LOW,30);VARF:=HHV(VARD,30);VAR10:=IF(MA(CLOSE,58),1,0);SS:=EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10;现庄:=(REF(SS,2)<REF(SS,1)AND SS>REF(SS,1))*SS;庄现:IF(现庄,60,0),COLORYELLOW,LINETHICK2;{CCI}N1:=84;TYP:=(HIGH+LOW+CLOSE)/3;CCI:EMA((TYP-MA(TYP,N1))/(0.1*AVEDEV(TYP,N1)),5)+30,COLORYELLOW;。
通达信指标公式源码SKDJ顶底副图
{主力筹码2}CVAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;CVAR9:=SMA(CVAR8,13,8);{ M}风险:CEILING(SMA(CVAR9,13,8)),LINETHICK3,COLORRED;涨跌:=MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA(( C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK3,COLORYEL LOW;DRAWTEXT(CROSS(风险,涨跌) && 风险<20,风险,'预'),COLORYELLOW; DRAWICON(风险>= REF(风险,1) && REF(风险,2) > REF(风险,1),风险,1); DRAWICON(风险<= REF(风险,1) && REF(风险,1) > REF(风险,2),风险,2); {SKDJ}SKDJN:=9;SKDJM:=3;SKDJ_LOWV:=LLV(LOW,SKDJN);SKDJ_HIGHV:=HHV(HIGH,SKDJN);SKDJ_RSV:=EMA((CLOSE-SKDJ_LOWV)/(SKDJ_HIGHV-SKDJ_LOWV)*100,SKD JM);K0:EMA(SKDJ_RSV,SKDJM),COLORWHITE;D0:MA(K0,SKDJM),COLORYELLOW;乖离率:K0/D0;DRAWICON(CROSS(D0,K0),(D0+K0)/2,37);DRAWICON(CROSS(K0,D0),(D0+K0)/2,1);{背离}A1:=BARSLAST(REF(CROSS(K0,D0),1));底背离:REF(CLOSE,A1+1)>CLOSE AND K0>REF(K0,A1+1) ANDCROSS(K0,D0);DRAWLINE(A1=0,D0,底背离,D0,0),COLORRED,DOTLINE;A2:=BARSLAST(REF(CROSS(D0,K0),1));顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(D0,A2+1)>D0 ANDCROSS(D0,K0);DRAWLINE(A2=0,D0,顶背离,D0,0),COLORGREEN,DOTLINE;DRAWTEXT(底背离>0,D0-5,'底背离'),COLORRED;DRAWTEXT(顶背离>0,D0-5,'顶背离'),COLORGREEN;K60:=K0#MIN60;D60:=D0#MIN60;XG:IF((CROSS(K60,D60)) || (K60>REF(K60,1)>REF(K60,2) && K60/D60 <=1) || (K60>REF(K60,1) && REF(K60,1)<=REF(K60,2)) ,15,0),COLORRED;{好} DBA:IF((CROSS(D60,K60)) || (K60>REF(K60,1)>REF(K60,2) && K60/D60 >=1) || (K60<REF(K60,1) && REF(K60,1)>=REF(K60,2)) ,90,100),COLORYELLOW; DBS:IF((风险<= REF(风险,1) && REF(风险,1) > REF(风险,2)) || 风险>95,85,100),COLORGREEN;预警:IF((K0/D0 > REF(K0,1)/REF(D0,1)),10,0),COLORYELLOW;{(K0>=REF(K0,1) || K0 < REF(K0,1)) &&REF(K0,1) < REF(K0,2)};{(K0/D0 < REF(K0,1)/REF(D0,1)) || (K0/D0 > REF(K0,1)/REF(D0,1) &&REF(K0,1)/REF(D0,1) > REF(K0,2)/REF(D0,2)) || (CROSS(K0,D0) &&REF(K0,1)/REF(D0,1) > REF(K0,2)/REF(D0,2))};。
通达信指标公式源码超级组合顶底副图,抄底逃顶不是梦,适合做波段或者趋势交易。
VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);阶段卖: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00; 底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓,动力线),20),动力线+0.02,2);DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖,动力线),20),动力线+0.02,2);界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:=动力线,COLORA8A8A8;{希望之星买点}A3:=ABS(REF(C,2)-REF(O,2))/REF(O,2)<0.012;{前天星形}A2:=(REF(O,1)-REF(C,1))/REF(O,1)<0.008;{昨天星形}B1:=IF(REF(C,2)>REF(O,2),REF(O,2),REF(C,2));B2:=IF(REF(C,1)<REF(O,1),REF(O,1),REF(C,1));B3:=IF(C>O,O,C);B4:=B1>B2 AND B3>B2 AND REF(C,1)<MA(C,5);A1:=ABS(C-O)/O<0.012;{今天星形}星K:A3 AND A2 AND A1 AND B4;{准备上买点}VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区:=VARO7<10;TJ:=COUNT(建仓区,3);VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);上升:=CROSS(VAR1,8);准备上:(建仓区OR REF(建仓区,0.5)) AND 上升;{出手买点}出手:FILTER((CROSS((EMA(CLOSE,2)-EMA(CLOSE,10)),EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2))AND EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)<0 AND CROSS(C,MA(C,20))),90);{强势买点}D1:="WR.WR1"<5;D2:=CROSS("KDJ.K","KDJ.D") AND "KDJ.K"<50;D3:=CROSS("MACD.DIF","MACD.DEA");D4:="I">-100 AND "I"<-90;D5:=CROSS("RSI.RSI1","RSI.RSI2")AND "RSI.RSI1"<50;S1:=20;M2:=40;L1:=60;AAA:=CLOSE>OPEN;BBB:=AAA&&CLOSE>MA(CLOSE,S1)&&CLOSE>MA(CLOSE,M2)&&CLOSE>MA(CLOSE,L1); CCC:=BBB&&OPEN<MA(CLOSE,M2)&&OPEN<MA(CLOSE,L1);XG1:=CCC&&(CLOSE-OPEN)>0.0618*CLOSE;AA1:=D1 AND D2;AA2:=D2 AND D3;AA3:=D1 AND D3;XG2:=AA1 OR AA2 OR AA3;强势:IF(XG1 AND XG2,1,0),COLORRED;{底部买点}WW:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);MM:=DMA(CLOSE,WW);{好}通道4:= (1-7/100)*MM;VAR4:=EXPMA(CLOSE,9);LDN:=EXPMA(VAR4*0.86,5);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));TTRR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))), ABS(REF(CLOSE,1)-LOW)),14);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);PDI:=DMP*100/TTRR;MDI:=DMM*100/TTRR;ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);买底: C<=通道4 AND C<=LDN AND CCI<-100AND ADX>=60 AND MDI >= PDI AND CLOSE>OPEN;。
通达信顶底先知副图指标、源码、说明
通达信顶底先知副图指标、源码、说明股票公式不明白请查阅:股票公式文件使用以及说明!通达信顶底先知副图指标、源码、说明说明:很久没有发指标了,适逢抗日战争胜利70周年把顶底先知指标奉献给坛友们。
只有经过长期实践和在牛、熊市中经得起时间考验的指标才是好指标,该指标是本人珍藏的短线擒牛指标,可以成功率极高的抓到短线启爆大牛股。
当红色箭头上穿-90虚线时积极买入短线做多,当绿色箭头下穿90虚线时短线卖出做空。
此指标个股和大盘都适用,其它的提示还请坛友们慢慢揣摩,必有收获……。
{指标公式往下拉就能看到}{N:2.00 100.00 18.00}以上参数,请自行设定{涨跌提示}TYP1:=(HIGH+LOW+CLOSE)/3;顶底1:=(TYP1-MA(TYP1,N))/(0.015*AVEDEV(TYP1,N));DRAWICON(CROSS(顶底1,-90),-90,1);DRAWICON(CROSS(顶底1,90),90,15);DRAWICON(CROSS(90,顶底1),90,2);DRAWICON(CROSS(-90,顶底1),-90,8);DRAWICON(CROSS(-160,顶底1),-160,27);{顶底线变色}TYP:=(HIGH+LOW+CLOSE)/3;顶底:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),COLORRED,LINETHICK1;IF(顶底<=REF(顶底,1),顶底,DRAWNULL),COLOR00FF00,LINETHICK1;0,COLOR00FFFF,DOTLINE;-160,COLORRED,DOTLINE;{额外Y轴分界值1:-90 值2:90};涨家数:INDEXADV,NODRAW,COLOR3333CD; 跌家数:INDEXDEC,NODRAW,COLORCBCBC0;。
通达信超级顶底副图指标
通达信超级顶底副图指标通达信超级顶底副图指标{超级顶底优化副图)}VARV:=(2*C+H+L)/4;VARU:=LLV(LOW,30);VARA1:=HHV(HIGH,30);B:=EMA((VARV-VARU)/(VARA1-VARU)*100,8);B1:=EMA(B,5);STICKLINE(B-B1>0,B,B1,8,1),COLORRED;STICKLINE(B-B1<0,B,B1,8,1),COLOR00FF00;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;低吸:IF(CROSS(RSI,11),70,0),COLORWHITE,POINTDOT;STICKLINE(低吸,70,0,4,0),COLORWHITE;VAR7:=EMA(AMOUNT/VOL/100,3);VAR8:=EMA(VAR7,88);VAR9:=EMA(VAR7,88)*0.85;VARA:=VAR9*0.87;VARB:=LOW<VARA AND CLOSE>REF(CLOSE,1)*1.02;STICKLINE(FILTER(VARB,6),65,0,4,0),COLORFF00FF;坚决买进:IF(FILTER(VARB,6),65,0),COLORFF00FF,POINTDOT;VARF:=(2*CLOSE+HIGH+LOW)/4;VA4:=LLV(LOW,34);VA5:=HHV(HIGH,34);VA6:=EMA((VARF-VA4)/(VA5-VA4)*100,6);VA7:=EMA(0.667*REF(VA6,1)+0.333*VA6,4);出击:IF(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) ANDCLOSE>OPEN,1,0),60,0),COLORYELLOW,POINTDOT;STICKLINE(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) ANDREF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),60,0,4,0),COLORYELLOW;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF( A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*R EF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE F(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);波段买入:IF(CROSS(D1,K1),55,0),COLOR0099FF,POINTDOT;STICKLINE(CROSS(D1,K1),55,0,4,0),COLOR0099FF;多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);天线:=78.89;STICKLINE(CROSS(天线,多方趋势),90,95,6,0),COLOR00FF00;STICKLINE(B>0 AND B-B1>=0,79,80,6,0),COLORRED;STICKLINE(B>0 AND B-B1<0,79,80,6,0),COLOR00FF00;STICKLINE(B>0 AND B-B1>=0,49,50,6,0),COLORRED;STICKLINE(B>0 AND B-B1<0,49,50,6,0),COLORFF8899;STICKLINE(B>0 AND B-B1>=0,19,20,6,0),COLORRED;STICKLINE(B>0 AND B-B1<0,19,20,6,0),COLOR00FF00;STICKLINE(B-B1>0,B,B1,8,1),COLORRED;STICKLINE(B-B1<0,B,B1,8,1),COLOR00FF00;地量:DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*1,'地量'),COLOR00FFFF;STICKLINE(地量>0,0,30,2,0),COLOR008888;STICKLINE(地量>0,0,30,1.5,0),COLOR00AAAA;STICKLINE(地量>0,0,30,0.8,0),COLOR00DDDD;STICKLINE(地量>0,0,30,0.3,0),COLOR00FFFF;VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;DRAWICON(CROSS(82,VARR1),10,15);VAR10:=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);VAR11:=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);VAR12:=VAR10<REF(VAR11,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR12 AND COUNT(VAR12,30)=1,40,'有大资金进场迹象,关注!');。
通达信指标公式源码SKDJ顶底副图
{主力筹码2}CVAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;CVAR9:=SMA(CVAR8,13,8);{ M}风险:CEILING(SMA(CVAR9,13,8)),LINETHICK3,COLORRED;涨跌:=MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA(( C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK3,COLORYEL LOW;DRAWTEXT(CROSS(风险,涨跌) && 风险<20,风险,'预'),COLORYELLOW; DRAWICON(风险>= REF(风险,1) && REF(风险,2) > REF(风险,1),风险,1); DRAWICON(风险<= REF(风险,1) && REF(风险,1) > REF(风险,2),风险,2); {SKDJ}SKDJN:=9;SKDJM:=3;SKDJ_LOWV:=LLV(LOW,SKDJN);SKDJ_HIGHV:=HHV(HIGH,SKDJN);SKDJ_RSV:=EMA((CLOSE-SKDJ_LOWV)/(SKDJ_HIGHV-SKDJ_LOWV)*100,SKD JM);K0:EMA(SKDJ_RSV,SKDJM),COLORWHITE;D0:MA(K0,SKDJM),COLORYELLOW;乖离率:K0/D0;DRAWICON(CROSS(D0,K0),(D0+K0)/2,37);DRAWICON(CROSS(K0,D0),(D0+K0)/2,1);{背离}A1:=BARSLAST(REF(CROSS(K0,D0),1));底背离:REF(CLOSE,A1+1)>CLOSE AND K0>REF(K0,A1+1) ANDCROSS(K0,D0);DRAWLINE(A1=0,D0,底背离,D0,0),COLORRED,DOTLINE;A2:=BARSLAST(REF(CROSS(D0,K0),1));顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(D0,A2+1)>D0 ANDCROSS(D0,K0);DRAWLINE(A2=0,D0,顶背离,D0,0),COLORGREEN,DOTLINE;DRAWTEXT(底背离>0,D0-5,'底背离'),COLORRED;DRAWTEXT(顶背离>0,D0-5,'顶背离'),COLORGREEN;K60:=K0#MIN60;D60:=D0#MIN60;XG:IF((CROSS(K60,D60)) || (K60>REF(K60,1)>REF(K60,2) && K60/D60 <=1) || (K60>REF(K60,1) && REF(K60,1)<=REF(K60,2)) ,15,0),COLORRED;{好} DBA:IF((CROSS(D60,K60)) || (K60>REF(K60,1)>REF(K60,2) && K60/D60 >=1) || (K60<REF(K60,1) && REF(K60,1)>=REF(K60,2)) ,90,100),COLORYELLOW; DBS:IF((风险<= REF(风险,1) && REF(风险,1) > REF(风险,2)) || 风险>95,85,100),COLORGREEN;预警:IF((K0/D0 > REF(K0,1)/REF(D0,1)),10,0),COLORYELLOW;{(K0>=REF(K0,1) || K0 < REF(K0,1)) &&REF(K0,1) < REF(K0,2)};{(K0/D0 < REF(K0,1)/REF(D0,1)) || (K0/D0 > REF(K0,1)/REF(D0,1) &&REF(K0,1)/REF(D0,1) > REF(K0,2)/REF(D0,2)) || (CROSS(K0,D0) &&REF(K0,1)/REF(D0,1) > REF(K0,2)/REF(D0,2))};。
【通达信】顶底分型副图指标
【通达信】顶底分型副图指标底分型、选股、预警、源码:V00:= HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);V01:= HIGH<REF(HIGH,1) AND LOW>REF(LOW,1);V02:= HIGH>REF(HIGH,1) AND LOW<REF(LOW,1);V03:= HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);V04:= REF(HIGH,2) < HIGH AND REF(LOW,2) < LOW AND REF(HIGH,2) > REF(HIGH,1) AND REF(LOW,2) < REF(LOW,1);V1:= COUNT(V00,3)>=1 AND LLVBARS(LOW,3) = 1 AND V03;V2:= COUNT(V00,4)>=1 AND LLVBARS(LOW,4) = 2 AND V04;V3:= COUNT(V00,4)>=1 AND COUNT(V01 OR V02,4)=1 AND LLVBARS(LOW,4) = 1 AND V03;V4:= COUNT(V00,5)>=1 AND COUNT(V01 OR V02,5)=2 AND LLVBARS(LOW,5) = 2 AND V04;XG: V1 OR V2 OR V3 OR V4;(底分型选股预警)动态翻译:V00赋值: 最高价<昨日最高价 AND 最低价<昨日最低价V01赋值: 最高价<昨日最高价 AND 最低价>昨日最低价V02赋值: 最高价>昨日最高价 AND 最低价<昨日最低价V03赋值: 最高价>昨日最高价 AND 最低价>昨日最低价V04赋值: 2日前的最高价 < 最高价 AND 2日前的最低价 < 最低价 AND 2日前的最高价 > 昨日最高价 AND 2日前的最低价 < 昨日最低价V1赋值: 统计3日中满足V00的天数>=1 AND 3日内最低价距今天数 = 1 AND V03V2赋值: 统计4日中满足V00的天数>=1 AND 4日内最低价距今天数 = 2 AND V04V3赋值: 统计4日中满足V00的天数>=1 AND 统计4日中满足V01ORV02的天数=1 AND 4日内最低价距今天数 = 1 AND V03V01ORV02的天数=2 AND 5日内最低价距今天数 = 2 AND V04 输出XG:(V1 OR V2 OR V3 OR V4)顶分型、预警、源码:V00:= HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);V01:= HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);V02:= REF(HIGH,2) > HIGH AND REF(LOW,2) > LOW AND REF(HIGH,2) > REF(HIGH,1) AND REF(LOW,2) < REF(LOW,1);V1:= COUNT(V00,4)>=2 AND HHVBARS(HIGH,4) = 1 AND V01;V2:= COUNT(V00,5)>=2 AND HHVBARS(HIGH,5) = 2 AND V02;V3:= COUNT(V00,5)>=2 AND HHVBARS(HIGH,5) = 1 AND V01;V4:= COUNT(V00,6)>=2 AND HHVBARS(HIGH,6) = 2 AND V02;XG: V1 OR V2 OR V3 OR V4;(顶分型预警)动态翻译:提醒已形成顶分型,注意卖出。
最牛底顶指标 副图源码 通达信 贴图
最牛底顶指标副图源码通达信贴图{通达信附图指标:顶底指标}VARV:=(2*C+H+L)/4;VARU:=LLV(LOW,30);VARA1:=HHV(HIGH,30);B:=EMA((VARV-VARU)/(VARA1-VARU)*100,8);B1:=EMA(B,5);STICKLINE(B-B1>0,B,B1,8,1),COLORRED;STICKLINE(B-B1<0,B,B1,8,1),COLOR00FF00;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;低吸:IF(CROSS(RSI,11),70,0),COLORWHITE,POINTDOT;STICKLINE(低吸,70,0,4,0),COLORWHITE;VAR7:=EMA(AMOUNT/VOL/100,3);VAR8:=EMA(VAR7,88);VAR9:=EMA(VAR7,88)*0.85;VARA:=VAR9*0.87;VARB:=LOW<VARA AND CLOSE>REF(CLOSE,1)*1.02;STICKLINE(FILTER(VARB,6),65,0,4,0),COLORFF00FF;坚决买进:IF(FILTER(VARB,6),65,0),COLORFF00FF,POINTDOT;VARF:=(2*CLOSE+HIGH+LOW)/4;VA4:=LLV(LOW,34);VA5:=HHV(HIGH,34);VA6:=EMA((VARF-VA4)/(VA5-VA4)*100,6);VA7:=EMA(0.667*REF(VA6,1)+0.333*VA6,4);出击:IF(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) ANDCLOSE>OPEN,1,0),60,0),COLORYELLOW,POINTDOT;STICKLINE(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 ANDCOUNT(VA6>VA7,3) ANDREF(LOW,1)=LLV(LOW,120) ANDCLOSE>OPEN,1,0),60,0,4,0),COLORYELLOW;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF( A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*R EF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*RE F(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);波段买入:IF(CROSS(D1,K1),55,0),COLOR0099FF,POINTDOT;STICKLINE(CROSS(D1,K1),55,0,4,0),COLOR0099FF;多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3 ,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1) ,3,1),2,1);天线:=78.89;STICKLINE(CROSS(天线,多方趋势),90,95,6,0),COLOR00FF00;STICKLINE(B>0 AND B-B1>=0,79,80,6,0),COLORRED;STICKLINE(B>0 AND B-B1<0,79,80,6,0),COLOR00FF00;STICKLINE(B>0 AND B-B1>=0,49,50,6,0),COLORRED;STICKLINE(B>0 AND B-B1<0,49,50,6,0),COLORFF8899;STICKLINE(B>0 AND B-B1>=0,19,20,6,0),COLORRED;STICKLINE(B>0 AND B-B1<0,19,20,6,0),COLOR00FF00;STICKLINE(B-B1>0,B,B1,8,1),COLORRED;STICKLINE(B-B1<0,B,B1,8,1),COLOR00FF00;地量:DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*1,'地量'),COLOR00FFFF;STICKLINE(地量>0,0,30,2,0),COLOR008888;STICKLINE(地量>0,0,30,1.5,0),COLOR00AAAA;STICKLINE(地量>0,0,30,0.8,0),COLOR00DDDD;STICKLINE(地量>0,0,30,0.3,0),COLOR00FFFF;VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)* 100;DRAWICON(CROSS(82,VARR1),10,15);VAR10:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*1 00,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))* 100,20,1),15,1);VAR11:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1),15,1);VAR12:=VAR10<REF(VAR11,1) AND VOL>REF(VOL,1) ANDCLOSE>REF(CLOSE,1);DRAWTEXT(VAR12 AND COUNT(VAR12,30)=1,40,'有大资金进场迹象,关注!');。
通达信指标公式源码 顶底背离MACD副图指标
VAR1:=EMA(SLOPE(C,21)+C,55);VAR2:=EMA(SLOPE(O,21)+O,55);VAR3:=EMA(SLOPE(H,21)+H,55);VAR4:=EMA(SLOPE(L,21)+L,55);VAR5:=EMA(C,3);VAR6:=EMA(O,3);VAR7:=EMA(H,3);VAR8:=EMA(L,3);VAR9:=VAR1-VAR5,LINETHICK2;VAR10:=VAR2-VAR6,LINETHICK2;VAR11:=VAR3-VAR7,LINETHICK2;VAR12:=VAR4-VAR8,LINETHICK2;ZJC:=REVERSE(VAR9);ZJO:=REVERSE(VAR10);ZJH:=REVERSE(VAR11);ZJL:=REVERSE(VAR12);DIF:EMA(ZJC*5,12)-EMA(ZJC*5,26);DEA:EMA(DIF,9);MACD:(DIF-DEA)*2,COLORSTICK;STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED; STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORMAGENTA;STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORYELLOW;STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORLIGREEN; STICKLINE(ZJC> ZJO,ZJH,ZJL,0.0,0),COLORFF66FF;STICKLINE(ZJC> ZJO,ZJC,ZJO,2.1,0),COLORAA00AA;STICKLINE(ZJC> ZJO,ZJC,ZJO,1.9,0),COLORCC11CC;STICKLINE(ZJC> ZJO,ZJC,ZJO,1.6,0),COLORFF22FF;STICKLINE(ZJC> ZJO,ZJC,ZJO,1.2,0),COLORFF44FF;STICKLINE(ZJC> ZJO,ZJC,ZJO,0.7,0),COLORFF66FF;STICKLINE(ZJC> ZJO,ZJC,ZJO,0.2,0),COLORFF99FF;STICKLINE(ZJC<=ZJO,ZJL,ZJC,0.0,0),COLORGREEN;STICKLINE(ZJC<=ZJO,ZJO,ZJC,2.1,0),COLOR005500;STICKLINE(ZJC<=ZJO,ZJO,ZJC,1.9,0),COLOR007700;STICKLINE(ZJC<=ZJO,ZJO,ZJC,1.6,0),COLOR009900;STICKLINE(ZJC<=ZJO,ZJO,ZJC,1.2,0),COLOR00BB00;STICKLINE(ZJC<=ZJO,ZJO,ZJC,0.7,0),COLOR00DD00;STICKLINE(ZJC<=ZJO,ZJO,ZJC,0.2,0),COLOR44FF00;ZTB:=(C-REF(C,1))/REF(C,1)*100>9.9;DRAWTEXT(ZTB,IF(ZJC<0,ZJC*0.9,ZJC*1.1),'涨停板')COLORYELLOW; STICKLINE(ZTB,ZJC,ZJO,2.1,0),COLOR006666;STICKLINE(ZTB,ZJC,ZJO,1.9,0),COLOR008888;STICKLINE(ZTB,ZJC,ZJO,1.6,0),COLOR00AAAA;STICKLINE(ZTB,ZJC,ZJO,1.2,0),COLOR00CCCC;STICKLINE(ZTB,ZJC,ZJO,0.7,0),COLOR00EEEE;STICKLINE(ZTB,ZJC,ZJO,0.2,0),COLOR33FFFF;DTB:=(C-REF(C,1))/REF(C,1)*100<-9.9;DRAWTEXT(DTB,IF(ZJC>0,ZJC*0.9,ZJC*1.1),'跌停板')COLORFF8800; STICKLINE(DTB,ZJO,ZJC,2.1,0),COLORFF0000;{蓝色}STICKLINE(DTB,ZJO,ZJC,1.9,0),COLORFF2200;STICKLINE(DTB,ZJO,ZJC,1.6,0),COLORFF4400;STICKLINE(DTB,ZJO,ZJC,1.2,0),COLORFF6600;STICKLINE(DTB,ZJO,ZJC,0.7,0),COLORFF8800;STICKLINE(DTB,ZJO,ZJC,0.2,0),COLORFFAA00;。
通达信筹码研判顶底副图公式
通达信筹码研判顶底副图公式通达信筹码研判顶底副图公式DRAWGBK(C>0, RGB(0,0,00),RGB(0,0,0),0,'1',0);锁定因子:MA(LFS,1),COLORWHITE;换手:100*VOL/CAPITAL,NODRAW,COLORLIGREEN;主流资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)), 3), COLORRED,LINETHICK2;非主流资金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,3 4)-LLV(INDEXL,34)),3),COLORGREEN,LINETHICK1;收盘价获利比例:WINNER(C)*100,LINETHICK0;V ARF:=TROUGHBARS( 3,15,1)<4;DRAWTEXT( FILTER(V ARF=1,5),主流资金*0.90,'★底'),COLORYELLOW;明天见底:FILTER(V ARF=1,5) ,COLORFF00FF,LINETHICK0;主力筹码估算:=EMA(WINNER(CLOSE)*70,3),NODRAW;散户筹码估算:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*8 0,3),NODRAW;散户套牢比率:散户筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW;主力控盘比率:主力筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW;市场总量:MA(主力筹码估算+散户筹码估算,13),COLORGREEN,LINETHICK2;散户警戒:=EMA(散户套牢比率,89),NODRAW;主力警戒:=EMA(主力控盘比率,89),NODRAW;{散户坑}STICKLINE(REF(散户套牢比率,1)>90 AND 散户套牢比率<90,30,0,1,0),COLOR0000FF;{筹码总量}筹码总量:IF(市场总量>REF(市场总量,1),市场总量,DRAWNULL),COLOR0066FF,LINETHICK2;DRAWRECT REL(0,60,240,950,RGB(80,00,100));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.10,0,'■主力筹码估算:'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.14,0.10,0,' %'),COLORFFCC99;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.10,0.10,0,主力筹码估算),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0 .01,0.20,0,'■主力控盘比率:'),COLORYELLOW;'),COLORFFCC99;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.10,0.20,0,主力控盘比率),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0 .01,0.30,0,'■散户套牢比率:'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.14,0.30,0,' %'),COLORFFCC99;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.10,0.30,0,散户套牢比率),COLORRED;DRAWTEXT_FIX(收盘价获利比例>=0,0.0,1-0.61,0,STRCAT(' ■收盘价获利比:',CON2STR(收盘价获利比例,2))),COLORLIGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.00,0.45,0,'■锁定因子:锁定筹码和解锁筹码的相对速度'),COLORFFCC99;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.00,0.50,0,' 不直接监测锁定筹码多少,但可监测筹码。
顶底背离指标副图通达信指标公式源码
KDJ,RSI,MACD,DMI等指标集成,在一张副图上显示,看盘非常方便明了,可以看出股票下一步的趋势。
底:-50;顶:50;TRR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14); HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;PDM:= SUM(IF(HD>0 AND HD>LD,HD,0),14);MDM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);PDI:= PDM*100/TRR;MDI:= MDM*100/TRR;A1:=BARSLAST(REF(CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9)),1));B1:=REF(C,A1+1)>C AND REF("MACD.DIF"(12,26,9),A1+1)<"MACD.DIF"(12,26,9) AND CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9));A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));{理}A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));C1:=BARSLAST(REF(CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9)),1));D1:=REF(C,C1+1)<C AND REF("MACD.DIF"(12,26,9),C1+1)>"MACD.DIF"(12,26,9) AND CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9));C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));C4:=BARSLAST(REF(CROSS(MDI,PDI),1));D4:=REF(C,C+1)<C AND REF(MDI,C4+1)>MDI AND CROSS(MDI,PDI);A4:=BARSLAST(REF(CROSS(PDI,MDI),1));B4:=REF(C,A4+1)>C AND REF(PDI,A4+1)<PDI AND CROSS(PDI,MDI);DMI底背:IF(B4>0,-50,0),COLOR0099FF,POINTDOT;DRAWTEXT(B4>0,-5,'DMI底背'),COLOR0099FF;DMI顶背:IF(D4>0,50,0),COLORBLUE,POINTDOT;DRAWTEXT(D4>0,15,'DMI顶背'),COLORBLUE;MACD底背:IF(B1>0,-50,0),COLORRED,POINTDOT;DRAWTEXT(B1>0,-15,'MACD底背'),COLORRED;KDJ底背:IF(B2>0,-50,0),COLORFF00FF,POINTDOT;DRAWTEXT(B2>0,-25,'KDJ底背'),COLORFF00FF;RSI底背:IF(B3>0,-50,0),COLORYELLOW,POINTDOT;DRAWTEXT(B3>0,-35,'RSI底背'),COLORYELLOW;MACD顶背:IF(D1>0,50,0),COLOR00FF00,POINTDOT;DRAWTEXT(D1>0,25,'MACD顶背'),COLOR00FF00;KDJ顶背:IF(D2>0,50,0),COLORFFCC66,POINTDOT;DRAWTEXT(D2>0,35,'KDJ顶背'),COLORFFCC66;RSI顶背:IF(D3>0,50,0),COLORFFFFFF,POINTDOT;DRAWTEXT(D3>0,45,'RSI顶背'),COLORFFFFFF;STICKLINE(B1>0,-50,0,0,0),COLORRED;STICKLINE(B2>0,-50,0,0,0),COLORFF00FF;STICKLINE(B3>0,-50,0,0,0),COLORYELLOW;STICKLINE(D1>0,50,0,0,0),COLOR00FF00;STICKLINE(D2>0,50,0,0,0),COLORFFCC66;STICKLINE(D3>0,50,0,0,0),COLORWHITE;STICKLINE(B4>0,-50,0,0,0),COLOR0099FF;STICKLINE(D4>0,50,0,0,0),COLORBLUE;。
通达信指标——顶底K线(副图)
{顶底K线+KDJ}K短:"KDJ.K"(9,3,3),COLORYELLOW;D短:"KDJ.D"(9,3,3),COLORYELLOW;J短:"KDJ.J"(9,3,3),COLORYELLOW;K45:"KDJ.K"(15,8,3),COLORGRAY,LINETHICK2;STICKLINE(K45>REF(K45,1),80,100,1,0),COLORGRAY,LINETHICK1;V AR1 := REF(OPEN,1);V AR2:=SMA(MAX(OPEN-V AR1,0),6,1)/SMA(ABS(OPEN-V AR1),6,1)*100;V AR3:= REF(CLOSE,1);V AR4:=SMA(MAX(CLOSE-V AR3,0),6,1)/SMA(ABS(CLOSE-V AR3),6,1)*100;V AR5:= REF(HIGH,1);V AR6:=SMA(MAX(HIGH-V AR5,0),6,1)/SMA(ABS(HIGH-V AR5),6,1)*100;V AR7:= REF(LOW,1);V AR9:=SMA(MAX(LOW-V AR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100;V AR8:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001 ;V AR10:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;V AR11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;V AR12:=EMA(V AR11,8)*10<-26;V AR13:=IF(VAR8 AND MA(V AR10,5)<50 AND V AR12,30,0);开盘值:V AR2,POINTDOT, LINETHICK0 ;收盘值:V AR4,POINTDOT, LINETHICK0 ;最高值:V AR6,POINTDOT, LINETHICK0 ;最低值:V AR9,POINTDOT, LINETHICK0 ;STICKLINE(收盘值>开盘值,开盘值,最低值,0.5,1),COLORRED;STICKLINE(收盘值>开盘值,最高值,收盘值,0.5,1),COLORRED;STICKLINE(收盘值>开盘值,收盘值,开盘值,5,1),COLORRED;STICKLINE(收盘值<开盘值,最高值,开盘值,0.5,1),COLORFFFF00;STICKLINE(收盘值<开盘值,最低值,收盘值,0.5,0),COLORFFFF00;STICKLINE(收盘值<开盘值,收盘值,开盘值,5,0),COLORFFFF00;入顶:80,POINTDOT,LINETHICK1,COLORGREEN;入底:20,POINTDOT, LINETHICK1 ,COLORFF00FF;0,COLORGRAY; 20,COLORGRAY; 50,COLORGRAY; 80,COLORGRAY; 100,COLORGRAY;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
{顶底K线+KDJ}
K短:"KDJ.K"(9,3,3),COLORYELLOW;
D短:"KDJ.D"(9,3,3),COLORYELLOW;
J短:"KDJ.J"(9,3,3),COLORYELLOW;
K45:"KDJ.K"(15,8,3),COLORGRAY,LINETHICK2;
STICKLINE(K45>REF(K45,1),80,100,1,0),COLORGRAY,LINETHICK1;
V AR1 := REF(OPEN,1);
V AR2:=SMA(MAX(OPEN-V AR1,0),6,1)/SMA(ABS(OPEN-V AR1),6,1)*100;
V AR3:= REF(CLOSE,1);
V AR4:=SMA(MAX(CLOSE-V AR3,0),6,1)/SMA(ABS(CLOSE-V AR3),6,1)*100;
V AR5:= REF(HIGH,1);
V AR6:=SMA(MAX(HIGH-V AR5,0),6,1)/SMA(ABS(HIGH-V AR5),6,1)*100;
V AR7:= REF(LOW,1);
V AR9:=SMA(MAX(LOW-V AR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100;
V AR8:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001 ;
V AR10:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;
V AR11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
V AR12:=EMA(V AR11,8)*10<-26;
V AR13:=IF(VAR8 AND MA(V AR10,5)<50 AND V AR12,30,0);
开盘值:V AR2,POINTDOT, LINETHICK0 ;
收盘值:V AR4,POINTDOT, LINETHICK0 ;
最高值:V AR6,POINTDOT, LINETHICK0 ;
最低值:V AR9,POINTDOT, LINETHICK0 ;
STICKLINE(收盘值>开盘值,开盘值,最低值,0.5,1),COLORRED;
STICKLINE(收盘值>开盘值,最高值,收盘值,0.5,1),COLORRED;
STICKLINE(收盘值>开盘值,收盘值,开盘值,5,1),COLORRED;
STICKLINE(收盘值<开盘值,最高值,开盘值,0.5,1),COLORFFFF00;
STICKLINE(收盘值<开盘值,最低值,收盘值,0.5,0),COLORFFFF00;
STICKLINE(收盘值<开盘值,收盘值,开盘值,5,0),COLORFFFF00;
入顶:80,POINTDOT,LINETHICK1,COLORGREEN;
入底:20,POINTDOT, LINETHICK1 ,COLORFF00FF;
0,COLORGRAY; 20,COLORGRAY; 50,COLORGRAY; 80,COLORGRAY; 100,COLORGRAY;。