抄底逃顶 副图源码通达信指标公式源码

合集下载

通达信副图抄底王(附源码)

通达信副图抄底王(附源码)

通达信副图抄底王(附源码)通达信副图抄底王(附源码)VAR1:=(HHV(HIGH,5)-LLV(LOW,5));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*C+H+L)/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);VARA:=HHV(HIGH,34);主力: 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),LINETHICK2,COLOR00FFFF;IF(主力>=REF(主力,1),主力,DRAWNULL),LINETHICK3,COLORRED;IF(主力<=REF(主力,1),主力,DRAWNULL),LINETHICK2,COLOR00FF00;见底信号: 10, LINETHICK2,COLORRED ;买入准备: IF(主力<=10,40,10), LINETHICK2;买入时机: IF(CROSS(主力,见底信号),100,10), LINETHICK2,COLORYELLOW;防线B:EMA((VAR6-VAR8)/(VARA-VAR8)*100,8),COLOR3366FF;B1:EMA(防线B,5);STICKLINE(防线B>0 AND 防线B-B1>0,11,4,2,0),COLORRED;STICKLINE(防线B>0 AND 防线B-B1<=0,11,4,2,0),COLOR00FF00;STICKLINE(防线B-B1>0,防线B,B1,8,1),LINETHICK2,COLORRED;STICKLINE(防线B>0 AND 防线B-B1<=0,98,100,6,0),COLOR00FF00;STICKLINE(防线B>0 AND 防线B-B1>0,98,100,6,0),COLORRED;STICKLINE(防线B>0 AND 防线B-B1<=0,49,50,6,0),COLOR3366FF;STICKLINE(防线B>0 AND 防线B-B1>0,49,50,6,0),COLRRED;STICKLINE(防线B-B1>0,防线B,B1,8,1),COLORRED;STICKLINE(防线B-B1<0,防线B,B1,8,1),COLOR00FF00;。

通达信超级抄底逃顶大全副图指标

通达信超级抄底逃顶大全副图指标

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;。

通达信指标公式源码 抄底逃顶副图指标

通达信指标公式源码 抄底逃顶副图指标

LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;卖点:=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2;卖:IF(卖点,6.5,0),STICK,colorgreen,LINETHICK4;洗钱A:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE; 量1:=EMA(洗钱A,3);量2:=EMA(洗钱A,5);量3:=EMA(洗钱A,7);STICKLINE(量1>量2,量3,量1,3,1),colorred;STICKLINE(量1<量2,量3,量1,2,0),colorcyan;T1:=量2>量3 AND 量1<REF(量1,1);T2:=量2<量3 AND 量1>REF(量1,1);STICKLINE(T1,量1,量3,2,0),coloryellow;STICKLINE(T2,量1,量3,3,1),COLORFF00FF;洗钱B:=SMA(洗钱A,13,1);分水岭:SMA(洗钱B,2.5,1.5),LINETHICK2,colorwhite;牛线:3*洗钱B-2*分水岭,LINETHICK2,COLORFF00FF ;DRAWTEXT_FIX(C>O,0.01,0.9,0,' W '),colorred;DRAWTEXT_FIX(C>O,1,1,0,' m '),colorred;熊线:4*分水岭-3*洗钱B,LINETHICK2,COLORFF6633;DIF1:=EMA(C,12)-EMA(C,26);DEA1:=EMA(DIF1,9);MACD1:=2*(DIF1-DEA1);QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);QM:=LLVBARS(MACD1,QZQ+20);MQDZ:=IF(QM>QZQ,REF(MACD1,QM),0);QF:=LLVBARS(DIF1,QZQ+20);DQDZ:=IF(QF>QZQ,REF(DIF1,QF),0);XG1:=MACD1<0 AND MACD1>MQDZ AND DIF1<0 AND DIF1>DQDZ AND C=LLV(C,QZQ+20) AND MQDZ<0 AND DQDZ<0;XG:REF(XG1,1)=1 AND MACD1>REF(MACD1,1);VAR21A:=(REF(HIGH,1)+REF(LOW,1))/2;VAR61:=REF(CLOSE,1);VAR70A:=SMA(MAX(CLOSE-VAR61,0),6,1)/SMA(ABS(CLOSE-VAR61),6,1)*100; DRAWICON(CROSS(90,VAR70A),H*0.8,9);MTM1:=C-REF(C,1);A013:=HHV(HIGH,34);A014:=(2*CLOSE+HIGH+LOW)/4;A015:=LLV(LOW,34);A016:=EMA(((A014-A015)/(A013-A015))*100,13);A017:=EMA(0.667*REF(A016,1)+0.333*A016,2);KKMD:=A016-A017>1 AND A016<30 AND A017<30;DRAWTEXT(FILTER(KKMD,30),L*0.05,'▲短买'),COLOR00FFFF;VAR06:=REF(C,1);VAR07:=SMA(MAX(C-VAR06,0),6,1)/SMA(ABS(C-VAR06),6,1)*100;DRAWTEXT(CROSS(82,VAR07),H*0.9,'◤减仓'),colorgreen;RSVB:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100;K:=SMA(RSVB,3,1);D:=SMA(K,3,1);J:=3*K-2*D;VARA6:=(2*C+H+L)/3;VARA7:=EMA(EMA(EMA(VARA6,4),4),4);VARA8:=(VARA7-REF(VARA7,1))/REF(VARA7,1)*100;VARA9:=MA(VARA8,3)+0.03;VARA10:=MA(VARA8,1);DRAWICON(CROSS(VARA9,VARA10) AND J>90,H*0.96,12),colorgreen;DRAWTEXT(CROSS(VARA9,VARA10) AND J>90,H*1.02,'卖'),colorcyan;LCD:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LCD,0),4.1,1)/SMA(ABS(CLOSE-LCD),4.1,1)*100;建仓:CROSS(RSI,11)*10,colorred;。

通达信指标公式源码超级组合顶底副图,抄底逃顶不是梦,适合做波段或者趋势交易。

通达信指标公式源码超级组合顶底副图,抄底逃顶不是梦,适合做波段或者趋势交易。

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;。

通达信抄底逃顶副图指标看长做短精品源码分享编程思路

通达信抄底逃顶副图指标看长做短精品源码分享编程思路

通达信抄底逃顶副图指标看长做短精品源码分享编程思路编程思路:N1赋值:5N2赋值:10RSV赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100K赋值:(RSV的9日[1日权重]移动平均)KK赋值:RSV的3日[1日权重]移动平均的整数部分DD赋值:K的3日[1日权重]移动平均的整数部分A赋值:(KK-DD)*5A1赋值:1日前的AB赋值:A1-A,COLOR808080B1赋值:1日前的A1-AB2赋值:2日前的A1-ACC赋值:B+B1+B2,COLOR00FFFF赋值: (最高价 + 最低价 + 收盘价)/3输出CCI:(TYP-TYP的14日简单移动平均)/(0.015*TYP的14日平均绝对偏差),线宽为2输出底部W:-200输出买入:-100,画深灰色输出卖出:100输出AASS:0底部WW赋值:CCI上穿-100当满足条件底部WW时,在-100位置画1号图标顶部W赋值:150上穿CCI当满足条件顶部W时,在150位置画2号图标VAR1A赋值:收盘价的1日指数移动平均的3日指数移动平均的3日指数移动平均,COLOR00FF00AAS赋值:VAR1A-1日前的VAR1A+VAR1A,TYPS赋值:(最高价 + 最低价 + 收盘价)/3AD赋值:1日前的收盘价RSISD赋值:收盘价-AD和0的较大值的6日[1日权重]移动平均/收盘价-AD的绝对值的6日[1日权重]移动平均*100A1D赋值:收盘价-收盘价的5日简单移动平均/收盘价的5日简单移动平均*100<1A2D赋值:收盘价-收盘价的13日简单移动平均/收盘价的13日简单移动平均*100<-10A3D赋值:收盘价-收盘价的34日简单移动平均/收盘价的34日简单移动平均*100<-15A4D赋值:RSI<18A5D赋值:CCI<-120输出底D:(A1D AND A2D AND A3D AND A4D AND A5D)*100 输出RK:CCI的3日[1日权重]移动平均,线宽为0输出RD:RK的3日[1日权重]移动平均,线宽为0输出RJ:3*RK-2*RD,线宽为0头D赋值:390+RJ的1日指数移动平均的相反数底DD赋值:-290+RJ的1日指数移动平均的相反数,线宽为0输出抛D:如果RJ>头D,返回200,否则返回300,画绿色输出吸D:如果RJ<底DD,返回-200,否则返回-300,画红色,线宽为2输出中线: -200*(40日内最高价的最高值-收盘价)/(40日内最高价的最高值-40日内最低价的最低值),线宽为0输出短线: -200*(10日内最高价的最高值-收盘价)/(10日内最高价的最高值-10日内最低价的最低值),COLORFFFF00,线宽为0 输出逃顶线: -5,COLOR00FF00,线宽为0输出抄底线: -250,画红色,线宽为0当满足条件中线>-3.5时,在逃顶线+220位置书写文字,画绿色当满足条件中线<-196时,在抄底线-18位置书写文字,COLORFF00FF赋值: (最高价 + 最低价 + 收盘价)/3JG1赋值:(TYPF-TYPF的N1日简单移动平均)/(0.015*TYPF的N1日平均绝对偏差)JG2赋值:(TYPF-TYPF的N2日简单移动平均)/(0.015*TYPF的N2日平均绝对偏差)JGA赋值:JG1的13日指数移动平均JGB赋值:JG2的13日指数移动平均AA赋值:JG2上穿-200 AND JG1>-100当满足条件JGB上穿JGAANDJGB>0时,在260位置书写文字线宽为2 ,COLOR9999FF当满足条件AA的5日过滤=1时,在-260位置书写文字线宽为2, 画黄色当满足条件JGB上穿JGAANDJGB>0时,在180和210位置之间画柱状线,宽度为10,0不为0则画空心柱.,画绿色当满足条件AA的5日过滤=1时,在-180和-210位置之间画柱状线,宽度为10,0不为0则画空心柱.,画红色公式源码:N1:=5;N2:=10;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=(SMA(RSV,9,1));KK:=INTPART(SMA(RSV,3,1));DD:=INTPART(SMA(K,3,1));A:=(KK-DD)*5;A1:=REF(A,1);B:=A1-A,COLOR808080;B1:=REF(A1-A,1);B2:=REF(A1-A,2);CC:=B+B1+B2,COLOR00FFFF;TYP := (HIGH + LOW + CLOSE)/3;CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK2;底部W:-200;买入:-100,COLORGRAY;卖出:100;AASS:0;底部WW:=CROSS(CCI,-100);DRAWICON(底部WW,-100,1);顶部W:=CROSS(150,CCI);DRAWICON(顶部W,150,2);VAR1A:=EMA(EMA(EMA(CLOSE,1),3),3),COLOR00FF00;AAS:=VAR1A-REF(VAR1A,1)+VAR1A,;TYPS:=(HIGH + LOW + CLOSE)/3;AD:=REF(C,1);RSISD:=SMA(MAX(C-AD,0),6,1)/SMA(ABS(C-AD),6,1)*100;A1D:=C-MA(C,5)/MA(C,5)*100<1;A2D:=C-MA(C,13)/MA(C,13)*100<-10;A3D:=C-MA(C,34)/MA(C,34)*100<-15;A4D:=RSI<18;A5D:=CCI<-120;底D:(A1D AND A2D AND A3D AND A4D AND A5D)*100;RK:SMA(CCI,3,1),LINETHICK0;RD:SMA(RK,3,1),LINETHICK0;RJ:3*RK-2*RD,LINETHICK0;头D:=390+REVERSE(EMA(RJ, 1));底DD:=-290+REVERSE(EMA(RJ,1)),LINETHICK0;抛D:IF(RJ>头D,200,300),COLORGREEN;吸D:IF(RJ<底DD,-200,-300),COLORRED,LINETHICK2;中线: -200*(HHV(HIGH,40)-CLOSE)/(HHV(HIGH,40)-LLV(LOW,40)),LINETHICK0;短线: -200*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10)),COLORFFFF00,LINETHICK0;逃顶线: -5,COLOR00FF00,LINETHICK0;抄底线: -250,COLORRED,LINETHICK0;DRAWTEXT(中线>-3.5,逃顶线+220,'逃'),COLORGREEN;DRAWTEXT(中线<-196,抄底线-18,'底'),COLORFF00FF;TYPF := (HIGH + LOW + CLOSE)/3;JG1:=(TYPF-MA(TYPF,N1))/(0.015*AVEDEV(TYPF,N1));JG2:=(TYPF-MA(TYPF,N2))/(0.015*AVEDEV(TYPF,N2));JGA:=EMA(JG1,13 );JGB:=EMA(JG2,13);AA:=CROSS(JG2,-200) AND JG1>-100;DRAWTEXT(CROSS(JGB,JGA)AND JGB>0,260,' $逃顶')LINETHICK2 ,COLOR9999FF;DRAWTEXT(FILTER(AA,5)=1,-260,' $抄底')LINETHICK2, COLORYELLOW;STICKLINE(CROSS(JGB,JGA)ANDJGB>0,180,210,10,0),COLORGREEN ;STICKLINE(FILTER(AA,5)=1,-180,-210,10,0),COLORRED;。

通达信指标公式源码趋势操盘抄底副图指标

通达信指标公式源码趋势操盘抄底副图指标

通达信指标公式源码趋势操盘抄底副图指标{趋势操盘}VAR1:=(EMA(C,12)-EMA(C,26))*100+50;VAR2:=EMA(VAR1,9);VAR3:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;VAR4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;VAR5:=SMA(VAR4,13,8);VAR6:=SMA(VAR3,21,8);VAR7:=MA(C,80)-MA(C,10)/7;VAR8:=EMA(C,5);VAR9:=MA((LLV(C,9))*1.1,14);VAR10:=2*VAR9-VAR8-C*0.1;VAR11:=IF(((VAR8-VAR10)*5>0),(POW((VAR8-VAR10)*5,2))/10,(-1*(POW((VAR8-VAR10)*(5),2)))/(10));VAR12:=IF((VAR11>0),VAR11-0,12);VAR13:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;趋势线:CEILING(SMA(VAR5,13,8)),LINETHICK2,COLOR0000FF;操盘线: 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),LINETHICK2,COLORBLUE;STICKLINE(FILTER(CROSS(趋势线,VAR12)AND 趋势线>REF(C,1) OR CROSS(趋势线,操盘线) AND 趋势线<20 OR 趋势线>REF(趋势线,1)AND 趋势线<35 AND C>REF(C,1),5),5,20,2,2),COLOR00FF00;底部:IF((趋势线-VAR6<(-65)),20,40),COLORF0F000;顶部:IF((趋势线-VAR6>85),80,100),COLORF0F000;DRAWICON(IF(VAR13<15,15,0),20,1);黄金区:IF(VAR13<15,15,0),COLORYELLOW;强弱分界:50,POINTDOT,COLORAABBDD,LINETHICK2;{抄底不败参数:P1:-20 20 -6}P1:=-6;BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;MM:=(BIAS1+2*BIAS2+3*BIAS3)/6;股价趋势:=MA(MM,3),COLORRED;买入信号:=EMA(股价趋势,2);抄底:IF(股价趋势<P1,20,0),COLORFFCCCC;DRAWTEXT(CROSS(股价趋势,买入信号) AND COUNT(买入信号<P1,2)>1,50,'┻'),COLORRED,L INETHICK3;STICKLINE((股价趋势<-9),0,0,4,0 ),COLORCC0033;STICKLINE((股价趋势<-9),0,5,4,0 ),COLORFF9966;底部预警信号:=STICKLINE( (股价趋势<-9),0,2,4,0) ,COLORFFCC66;STICKLINE( (股价趋势<-9),0,8,4,0 ),COLORFFFF66;XY1272:=STICKLINE((股价趋势<-12),10 ,-15,4,0) ,COLOR0066FF;STICKLINE((股价趋势<-12),10 ,-5,4,0 ),COLOR0099FF;STICKLINE((股价趋势<-12),10 ,0,4,0 ),COLOR00CCFF;STICKLINE((股价趋势<-12),10 ,3,4,0),COLOR00FFFF;风险提示:本指标公式仅作为知识分享,不构成任何投资建议,投资有风险,交易需谨慎。

通达信分享一个抄底逃顶的附图指标 无加密 感觉比较稳妥

通达信分享一个抄底逃顶的附图指标 无加密 感觉比较稳妥

BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100; BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;MN:=MA(MM,3);VAR24:=LLV(LOW,36);VAR25:=HHV(HIGH,30);VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25;底背离:IF(MN<-4 ,17,0),COLORA67D3D,LINETHICK3;顶背离: IF((VAR26>90),17,0), COLOR6B238E,LINETHICK3;IF(MN<-4 ,12,0),COLORBLACK,LINETHICK3;IF((VAR26>90),12,0), COLORBLACK,LINETHICK3;DRAWTEXT(底背离,6,'底背离'),COLORA67D3D;DRAWTEXT(顶背离,6,'顶背离'),COLORGREEN;N:=20;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);股价线:(C-LB1)/(UB-LB)*100,COLORGREEN, LINETHICK1;趋势线:MA(股价线,6),COLORRED, LINETHICK3;90,COLORGREEN, LINETHICK1;50,COLORWHITE, LINETHICK1;0,COLORWHITE, LINETHICK1;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);准备建仓:EMA(IF(L<= LLV(L,30),VARC,0),3),COLORFF00FF,LINETHICK2; VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),80,100) ,COLORFFFF00,LINETHICK3;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;下单:IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1 00,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))* 100,5,1),3,1),10),38,0),STICK ,COLORYELLOW, LINETHICK4; DRAWTEXT(下单,38,'下单!'),COLORGREEN;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离1:=MA(BIAS,3);乖离:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORRED,LINETHICK2;IF(CROSS(BIAS,乖离1) AND 乖离1<-9,18,0),COLORRED,LINETHICK2; STICKLINE(CROSS(BIAS,乖离1) AND 乖离1<-9,-12,0,6,0),COLORYELLOW;DRAWTEXT(乖离,18,'低买'),COLORRED;TRJ:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH -REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);神偷线:=(((DMP ) * 100) / TRJ);辅助线:=((DMM * 100) / TRJ);动向趋势线:=(MA(((ABS((辅助线- 神偷线)) / (辅助线+ 神偷线)) * 100),3)); ADXR:=((动向趋势线+ REF(动向趋势线,3)) / 2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);快买:( IF(((动向趋势线> 88) AND (神偷线<5.8)),68,0)),LINETHICK1,COLORFF00FF;( IF(((动向趋势线> 88) AND (神偷线<5.8)),48,0)),LINETHICK1,COLORFF00FF;DRAWTEXT(快买,60,'准备'),COLORFF00FF;MA2:=EMA(C,2);MA5:=EMA(C,5);MA13:=EMA(C,13);MA30:=EMA(C,30);MA 55:=EMA(C,55);YCX:=MA5>=REF(MA5,1);H1:=MAX(MAX(MA5,MA13),MA30 );L1:=MIN(MIN(MA5,MA13),MA30);一阳穿三线:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1);满仓选股:IF(一阳穿三线,88,0),COLORFFFF00,LINETHICK2;IF(一阳穿三线,58,0),COLORFFFF00,LINETHICK2;DRAWTEXT(一阳穿三线,88,'满仓'),COLORYELLOW;VAR2:=0.0001*AMOUNT,;MA1:=0.0001*MA(AMOUNT,5);M2:=0.0001*MA(AMOUNT,10);百日地量:LLV(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK0; DRAWTEXT(百日地量,-10,'地量'),COLORRED;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可}DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);JC:IF(SSS-SSB=2 ANDSSS>REF(SSS,1),-22,0),LINETHICK2,COLORFFFF00;IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORFFFF00; DRAWTEXT(A1,-10,'W底'),COLORYELLOW;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);V1:(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));IF(V1,28,0),COLORYELLOW,LINETHICK2;IF(V1,18,0),COLORYELLOW,LINETHICK2;DRAWTEXT(V1,28,'买点'),COLORRED;AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) ANDAA30>REF(AA30,1);(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) ANDAA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;狙击选股:FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 ANDREF(C,1)<AA30;青云直上选股:IF(FILTER(MR,10),30,0),COLORYELLOW,LINETHICK2;IF(FILTER(MR,10),20,0),COLORYELLOW,LINETHICK2;DRAWTEXT(青云直上选股,30,'青云直上'),COLORGREEN;QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM( VOL,13))*100<=-28 AND(CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34) )*100<=-19AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND(COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 ANDIF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(S MA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)<REF(SMA((CLOSE-LLV(LOW,8))/(H HV(HIGH,8)-LLV(LOW,8))*100,2,1),2)ANDSMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23 ,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND (C/MA(C,70))<0.70 AND((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND V<REF(V,1)*2.8 AND(COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3),3) ;DRAWTEXT(QUAN,88,'弱市百发百中'),COLORFFFF00;IF(QUAN,88,0),COLORFFFF00,LINETHICK2;IF(QUAN,60,0),COLORFFFF00,LINETHICK2;AA:=1;BB:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;DRAWTEXT_FIX(CURRBARSCOUNT=60,0.4,0.01,0,'【抄底逃顶战斗机】'),COLORGREEN;CC:=IF(AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100>100,100,AMOUNT/C/H HV(AMOUNT,9)/HHV(C,9)*100);DD:=CC/BB;DRAWTEXT_FIX(C>O,0.01,0.9,0,'1'),COLORRED;顶部雷达:CROSS(80,RSI)*88,LINETHICK2 ,COLORGREEN;CROSS(80,RSI)*58,LINETHICK2 ,COLORGREEN;DRAWTEXT(CROSS(80,RSI),88,'逃顶'),COLORGREEN;。

通达信指标公式源码 绝佳抄底副图选股指标

通达信指标公式源码 绝佳抄底副图选股指标

_红柱:IF("MACD.MACD">REF("MACD.MACD",1),"MACD.MACD",DRAWNULL), STICK,COLORRED;绿柱:IF("MACD.MACD"<REF("MACD.MACD",1),"MACD.MACD",DRAWNULL), STICK,COLORYELLOW;_抄底:ABS((CROSS("MACD.DIF","MACD.DEA")&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.50,COLORLIMAGENTA;_DIF:"MACD.DIF",COLORWHITE;_DEA:"MACD.DEA",COLORYELLOW;__强度:IF(_DIF>_DEA,_DIF,DRAWNULL),COLORRED,LINETHICK2;_强度:IF(_DEA<_DIF,_DEA,DRAWNULL),COLORMAGENTA,LINETHICK2; DRAWTEXT(ABS(_抄底)>0,_抄底*1.20,' 抄底'),COLORYELLOW; DRAWICON(ABS(_抄底)>0,_抄底*1.10,4);DRAWICON(CROSS(_DIF,_DEA),_DEA,1);DRAWICON(CROSS(_DEA,_DIF),_DEA,2);DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA),COLORSTICK;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);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(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);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));MD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;MD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;STICKLINE(B1>0,-0.1,0,2,0),COLORRED;STICKLINE(B2>0,-0.1,0,2,0),COLORFF00FF;STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;STICKLINE(D2>0,0.1,0,2,0),COLORFFCC66;STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;。

抄底逃顶 趋势顶底通达信指标公式源码

抄底逃顶 趋势顶底通达信指标公式源码

80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;90,COLOR9966FF,LINETHICK2;{50,COLORRED;FILLRGN(1,20,80),COLOR222222;FILLRGN(1,90,100),COLOR000068;FILLRGN(1,79,90),COLOR663366;FILLRGN(1,10,20),COLOR666600;FILLRGN(1, 0,10),COLOR663300;}A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED; B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;{见顶:(长期线>85 OR REF(长期线,1)>85 ) AND (CROSS(中期线,短期线) OR CROSS(REF(中期线,1),REF(短期线,1)) )AND CROSS(长期线,短期线);}见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线) ;顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5AND 短期线<中期线AND 短期线<长期线+4;顶部:=FILTER(顶部区域,4);{DRAWICON( 见顶, 108, 2 );}底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ;STICKLINE( {见顶OR} 顶部,99,103,20,1 ),COLORRED,LINETHICK2;STICKLINE( 底部区域,-4,0,22,0 ),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线OR REF( 短期线,1)<1 );STICKLINE( 低位金叉,0,5,11,0 ),COLORRED;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档