通达信2指标——布林牛主图(主图)

合集下载

通达信2指标——合成操盘主图(主图)

通达信2指标——合成操盘主图(主图)
黄点出低吸:=IF(初晴,L*0.983,DRAWNULL),POINTDOT,COLOR00FFFF,LINETHICK5;
N1:=BARSCOUNT(5) ;
N:=((N1 - CURRBARSCOUNT ) + 1);
HH:=HHV(HIGH,N);
LL:=LLV(LOW,N);
最高:=HHV(N1,1),POINTDOT;
DRAWTEXT(A,L,'');
AB:=CROSS(满仓,L) AND A;
DRAWICON(AB,L,1);
VAR1A:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
VAR2A:=REF(HIGH,10)/CLOSE>1.35;
VAR3A:=(COST(20)-CLOSE)/CLOSE>0.15;
AA10:=MA(CLOSE,10);
Y:=((LLV(LOW,1) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) > 1.04));
WX:=MA(CLOSE,0);
MB5:=(MA(CLOSE,15) * IF((20 < 5),WX,1));
MB7:=(MA(CLOSE,20) * IF((20 < 7),WX,1));
SS:=(MA(CLOSE,8) * 0.998),COLORFFFFFF;
买:=(DDD >= AMA AND BMA >= BMB);
HH1:=FILTER(((DDD >= AMA) AND (BMA >= BMB)),33);
VARR1:=((SMA(MAX((CLOSE - REF(CLOSE,1)),0),12,1) / SMA(ABS((CLOSE - REF(CLOSE,1))),12,1)) * 100);

通达信指标公式源码 牛股主图指标

通达信指标公式源码 牛股主图指标

价量:=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);RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K1:=SMA(RSV,3,1);D1:=SMA(K1,3,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;TGLXS:=(TFXXS-REF(TFXXS,1));主力筹码:=EMA(WINNER(CLOSE)*70,3);散户筹码:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);金叉疯牛:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24)) /4,2);界:=MA(CLOSE,27);持股时段:IF((金叉疯牛>界)AND(散户筹码<主力筹码)AND((主力活跃力度>50)OR(主力活跃力度>REF(主力活跃力度,1))),-40,0),COLORRED,NODRAW;ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//小筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//小股民套牢筹码比率}ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比}ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//走牛天数}ZSHJJ:=EMA(ZSHTL,89);{//小股民警戒}ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}BB:=MA(C,1);持币阶段:SMA(SMA(SMA(BB,2,1),2,1),2,1);主升持股波段:=HHV(MA(持币阶段,1),13);SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);牛股出现预警:=WINNER(C/1.10)*100,COLOR00FFFF,NODRAW;主力赢利25持仓:=WINNER(C/1.25)*100,COLORFF00FF,NODRAW;散户套牢筹码:=散户筹码/(主力筹码+散户筹码)*100;主升浪波段:=主力筹码/(主力筹码+散户筹码)*100,COLORFF6100,NODRAW; 主力主导行情:=EMA(主升浪波段,55),NODRAW,COLORFF00FF;M:=60;N:=30;SHX:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)) COLORGRAY;庄家主力线:=50-SMA(SMA(SMA(SHX,2,1),2,1),2,1)/2,COLOR00FFFF,LINETHICK2;散户持股线:=50-HHV(MA(庄家主力线,1),13)/2,COLORFF00FF,LINETHICK4; 跌幅:=(REF(C,1)-C)/REF(C,1)*100;涨幅:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,POINTDOT,COLOR009900,LI NETHICK0;ER:=V/FINANCE(7)*100;A0:=TMA(ER,(1-ER),1);MAXCYC:=DMA((C+O)/2,ER/TMA(ER,(1-ER),1));T1:=BARSLAST(C>MAXCYC*POW(1.1,0.9));T2:=BARSLAST(C<MAXCYC*POW(1.1,-0.9));T3:=CROSS(T1,T2) OR CROSS(T2,T1) OR BARSSINCE(T1+1)=0 OR BARSSINCE(T2+1)=0 OR BARSCOUNT(C)=0;T4:=REF(MAXCYC,BARSLAST(T3));HZ:=HHV((H+L)/2,120);AA:=(2*C+H+L)/4;VAR1:=IF(DATE=10301201,0,1);VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);VAR3:=EMA(CLOSE,3);VAR4:=(2*CLOSE+LOW+HIGH)/4*VAR1;VAR5:=VAR2-VAR3;VAR6:=CLOSE*VOL;VAR7:=EMA((EMA(VAR6,3)/EMA(VOL,3)+EMA(VAR6,6)/EMA(VOL,6)+EMA(VA R6,12)/EMA(VOL,12)+EMA(VAR6,24)/EMA(VOL,24))/4,13);VAR8:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;VAR9:=(CLOSE+OPEN)/2;MA5:=MA(CLOSE,5);VAR11:=3*SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,5,1)-2*SMA(SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,180,1),15,1);超级主升:=EMA(VAR11,5);主升1:=超级主升-100;D8:=EMA(C,5);D2:=(EMA(C,1)+EMA(C,5)+EMA(C,10)+EMA(C,15)+EMA(C,20)+EMA(C,25)+ EMA(C,30)+EMA(C,35)+EMA(C,40)+EMA(C,45)+EMA(C,50)+EMA(C,55)+EMA(C,60)+EMA(C,65)+EMA(C,70)+EMA(C,75)+EMA (C,80)+EMA(C,85)+EMA(C,90)+EMA(C,95)+EMA(C,100)+EMA(C,105)+EMA(C,110)+EMA(C,115)+EMA(C,120)+EMA(C,12 5)+EMA(C,130)+EMA(C,135)+EMA(C,140)+EMA(C,150))/30;DDE:=(D8/D2)*100;主升2:=DDE-110;A:=(H+L+2*C)/4;A1:=(A-REF(A,3))/3+A;J:=EMA(HHV(A1,20),60),LINETHICK3;CB5:=EMA(COST(80),30),CIRCLEDOT;HMX:=EMA(1.4*EMA(FORCAST(A1,20),40),20),LINETHICK2;金牛线:=(J+CB5+HMX)/3,LINETHICK2;MA20:=MA(C,20);UP:=EMA(EMA(C*1.38,50),50),DOTLINE,COLOR0000FF;白色:=SMA(HIGH,21,2)*1.05;黄色:=SMA(LOW,21,2)*0.95;中线:=(白色+黄色)/2;UP1:=中线+2*STD(中线,20);UP2:=REF(UP1,0);CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(A1,20))/MA(A1,20);DT:=DMA(CLOSE,CC);通道3:=(1+9/100)*DT;通道4:=(1-7/100)*DT;界限:=(REF((金牛线+UP+EMA(UP1*1.04,40)+通道3)/4,10)+MA(C,20)*1.04)/2;AHC1:=H*VOL;AHC24:=EMA((EXPMA(AHC1,180)/EXPMA(VOL,180)+EXPMA(AHC1,360)/EXPMA(VOL,360)+EXPMA(AHC1,720)/EXPMA(VOL,720)+EXPMA(AHC1,1440)/EXP MA(VOL,1440))/4,34);C上X:=1.06*AHC24;C下X:=AHC24*0.94;AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(V OL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL ,316))/4,34);上X:=1.06*AHC22;下X:=AHC22*0.94;AHC23:=EMA((EXPMA(AHC1,5)/EXPMA(VOL,5)+EXPMA(AHC1,10)/EXPMA(VO L,10)+EXPMA(AHC1,20)/EXPMA(VOL,20)+EXPMA(AHC1,40)/EXPMA(VOL,40))/ 4,34);D上X:=1.06*AHC23;D下X:=AHC23*0.94;T:=(C上X+D上X+上X)/3*1.05;主升3:=(MA5*2/(界限+T)-1)*100;CBX80:=MA(COST(80),20);主升4:=(MA5/CBX80-1)*100;FT:=((HHV(H,42)-LLV(L,42)))/2+LLV(L,42);FT1:=ABS(HHV(H,40)-LLV(L,40)-LLV(L,40))+FT*0.5;主升5:=(FT/FT1-1)*100;P:=EMA(EMA(C*1.14,55),20);主升6:=(MA5/P-1)*100;金K线:=(EMA(HHV(H,60),60)+EMA(FT,453)*1.62)/2;主升7:=(MA5/金K线-1)*100;超牛拉升:=(主升1+主升2+主升3+主升4+主升5+主升6+主升7)/2,LINETHICK2;SMA2:=MA(持币阶段,3);V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,21);V3:=EMA(V2,5);V4:=2*(V2-V3)*100,COLORRED,LINETHICK2;筹码进:=IF(V4>=0,V4,0);VARAA:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR21:=SMA(ABS(HIGH-VARAA),13,1)/SMA(MIN(HIGH-VAR1,0),10,1); VAR31:=EMA(VAR21,10);VAR41:=HHV(HIGH,33);VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);主力抬轿:=IF(VAR51<REF(VAR51,1)AND(涨幅>0)AND(筹码进>150)AND(持股时段<-18)AND(跌幅<3),筹码进,0),COLORRED,NODRAW;上轨:=EMA(VAR8*1.15,15),COLORRED,LINETHICK1;黄线:=(EMA(VAR9,3)+EMA(VAR9,6)+EMA(VAR9,12)+EMA(VAR9,24))/4,COLOR YELLOW,LINETHICK1;HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*RE F(H,5)+14*REF(H,6)+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8* REF(H,12)+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*R EF(H,18)+REF(H,20))/210,COLORBLUE,LINETHICK1;LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L, 5)+14*REF(L,6)+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*RE F(L,12)+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF (L,18)+REF(L,20))/210,COLORBLUE,LINETHICK1;VAR80:=3*SMA((C-LLV(L,180))/(HHV(H,180)-LLV(L,180))*100,5,1)-2*SMA(S MA((C-LLV(L,180))/(HHV(H,180)-LLV(L,180))*100,180,1),15,1);疯牛潜力股:=EMA(VAR80,5), NODRAW,COLOR6600FF;牛熊分道:EMA(HH,90),COLORYELLOW,LINETHICK2;下:=牛熊分道-((C-牛熊分道)*C-牛熊分道)/牛熊分道*1.68,LINETHICK3,COLORRED;下轨:=MA(下,14),COLORGREEN,LINETHICK2;IF(持股时段<-28 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;IF(持股时段<-28 AND 疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;IF(疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股<=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORGREEN,LINETHICK6;IF(上轨>=下轨AND 下轨>REF(下轨,1),下轨,DRAWNULL),COLORGREEN,LINETHICK6;IF(持股时段<-28 AND BARSCOUNT(C)<250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;IF(持股时段=0 AND BARSCOUNT(C)<250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK6;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1) AND 牛熊分道>=下轨,上轨,DRAWNULL),COLORFF00FF,LINETHICK4;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLORFF00FF,LINETHICK4;IF(COUNT(C>上轨,5)>=2 AND 上轨>=牛熊分道AND 疯牛潜力股>REF(疯牛潜力股,1) AND 涨幅>0.5,上轨,DRAWNULL),COLOR0000FF,LINETHICK4;不参与阶段:IF(上轨<下轨,上轨,上轨),COLORGREEN,LINETHICK2;分道关注:IF(上轨>=下轨AND 牛熊分道<下轨AND 下轨<REF(下轨,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK2;IF(上轨>=下轨AND 牛熊分道<下轨AND 下轨<REF(下轨,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK2;行情主升浪:IF(持股时段<-28 AND 疯牛潜力股>50 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(持股时段<-28 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(持股时段<-28 AND 疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股<=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORGREEN,LINETHICK2;IF(上轨>=下轨AND 下轨>REF(下轨,1),下轨,DRAWNULL),COLORGREEN,LINETHICK2;IF(持股时段<-28 AND BARSCOUNT(C)<250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1) AND 牛熊分道>=下轨,上轨,DRAWNULL),COLORFF00FF,LINETHICK2;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLORFF00FF,LINETHICK2;超级疯牛分界:IF(持股时段<-28 AND 疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLORRED,LINETHICK2; IF(COUNT(C>上轨,5)>=2 AND 上轨>=牛熊分道AND 疯牛潜力股>REF(疯牛潜力股,1) AND 涨幅>0.5,上轨,DRAWNULL),COLORRED,LINETHICK2;开口选股:=BARSLASTCOUNT(上轨>下轨)=1,NODRAW;DRAWICON(开口选股,MIN(下轨,上轨)*1.08,26);DRAWTEXT(开口选股,LOW,71),COLORYELLOW;DRAWTEXT(开口选股,上轨*1.13,'开始关注'),COLORRED;变盘加速上扬:=CROSS(牛熊分道,下轨);DRAWICON(变盘加速上扬,LOW*0.9,25);{重仓介入}重仓目标:=FILTER((COUNT(变盘加速上扬,5)=1),15),COLORFFFF00,LINETHICK2;STICKLINE(重仓目标>0.8,牛熊分道*0.8,牛熊分道*0.88,0.5,0),COLORFFFF00,LINETHICK2;STICKLINE(重仓目标>0.8,牛熊分道*0.8,牛熊分道*0.86,2,0),COLORFF0080,LINETHICK2;STICKLINE(重仓目标>0.8,牛熊分道*0.8,牛熊分道*0.84,4,0),COLORFF00FF,LINETHICK2;DRAWTEXT(重仓目标>0.8,牛熊分道*0.76,'重点目标'),COLORRED;超强自选:=(CROSS(CLOSE,下轨) AND CROSS(CLOSE,超级疯牛分界) AND COUNT(上轨>下轨,2)=1 AND REF(下轨,2)>REF(上轨,2));STICKLINE(重仓目标>0.8 OR 超强自选,牛熊分道*0.8,牛熊分道*0.88,0.5,0),COLORFFFF00,LINETHICK2;STICKLINE(重仓目标>0.8 OR 超强自选,牛熊分道*0.8,牛熊分道*0.86,2,0),COLORFF0080,LINETHICK2;STICKLINE(重仓目标>0.8 OR 超强自选,牛熊分道*0.8,牛熊分道*0.84,4,0),COLORFF00FF,LINETHICK2;DRAWTEXT(重仓目标>0.8 OR 超强自选,牛熊分道*1.05,'重点目标'),COLORRED;VARA:=SMA(AMOUNT,10,1)/1000000;VARB:=REF(VARA,1);VARC:=MA(REF(CLOSE,1),5);最高:=VARA*HIGH/VARC*1/10,POINTDOT,COLOR009900,COLORGRAY;最低:=VARA*LOW/VARC*1/10,POINTDOT,COLOR009900,COLORYELLOW; 开盘:=VARA*OPEN/VARC*1/10,POINTDOT,COLOR009900,COLORMAGENTA; 收盘:=VARA*CLOSE/VARC*1/10,COLOR009900,COLORGREEN,POINTDOT; 涨跌:=(收盘-REF(收盘,1))/REF(收盘,1)*100,POINTDOT,COLOR009900,LINETHICK0;STICKLINE((CLOSE>下轨AND 涨跌>15 AND CLOSE<上轨AND OPEN<上轨AND 下轨<牛熊分道),CLOSE,OPEN,3,0),COLORYELLOW;{超强突破}自选:=IF((CROSS(CLOSE,上轨) AND 下轨<=牛熊分道),18,0),COLORRED,LINETHICK2;重点自选:=FILTER((自选>8),20),COLORRED,LINETHICK2;STICKLINE(重点自选,CLOSE*1.1,CLOSE*1.15,0.5,0),COLORRED; DRAWICON(重点自选,CLOSE*1.06,12),COLORRED;DRAWTEXT(重点自选,CLOSE*1.2,'快马加鞭'),COLORRED;STICKLINE((涨跌>20 AND CLOSE>上轨),OPEN+(CLOSE-OPEN),OPEN,3,0),COLORRED;STICKLINE((涨幅>5 AND 涨跌>0 AND 涨跌<20 AND CLOSE>上轨AND OPEN<上轨),CLOSE,OPEN,3,0),COLORRED;STICKLINE((涨幅>5 AND 涨跌>0 AND 涨跌<20 AND CLOSE>上轨AND OPEN<上轨),OPEN+(CLOSE-OPEN)*2/3,OPEN,3,0),COLORBLUE; STICKLINE((涨跌>40 AND CLOSE>上轨AND OPEN<上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORYELLOW; STICKLINE((涨跌>20 AND CLOSE>上轨AND OPEN<上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORBLUE; STICKLINE((涨跌>10 AND CLOSE>上轨AND OPEN>上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORYELLOW; DRAWICON(变盘加速上扬,LOW*0.9,25);{大胆博}MB5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);FA:=BARSLAST(CROSS(MA10,MB5)) AND CROSS(MB5,MA10);FB:=FA AND MB5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1); DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;V11:=EMA(CLOSE,5);V22:=EMA(EMA(CLOSE,90)*1.01,10);DRAWTEXT(CROSS(V11,V22),V11+0.05,'牛起步'),COLOR00FF00;VAR11A:=LLV(LOW,21);VAR22A:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR11A) / (VAR22A - VAR11A)) * 100),5);AK:=EMA((((CLOSE - VAR11A) / (VAR22A - VAR11A)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),COLORYELLOW;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF; DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF;DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;VAR6A:=REF(C,1);VAR7A:=SMA(MAX(C-VAR6A,0),6,1)/SMA(ABS(C-VAR6A),6,1)*100; DRAWTEXT(CROSS(82,VAR7A),H*1.01,'逃顶')COLORYELLOW;。

通达信2指标——天地主图(主图)

通达信2指标——天地主图(主图)

M:=13;N:=200;股价96:="Y395";增幅96:=XMA(XMA(XMA(股价96,3),3),3)-REF(XMA(XMA(XMA(股价96,3),3),3),1); X396:=XMA(股价96,3);J396:=(XMA(股价96,3)*3+0.5*股价96-0.5*REF(股价96,1)+增幅96)/3;Y396:IFF(CURRBARSCOUNT=1,J396,X396),LINETHICK2,COLORGREEN;IF(Y396>REF(Y396,1),Y396,DRAWNULL),COLORRED,LINETHICK2;高险区1:Y396*1.1,COLORLIRED,COLORFFFF00;高风区2:Y396*1.125,COLORLIRED,COLORFF0000;高风区3:Y396*1.15,COLORLIRED,COLOR00FF00;良机区1:Y396*0.9,COLORLIBLUE,COLOR00FFFF;良机区2:Y396*0.875,COLORLIBLUE,COLORFF00FF;良机区3:Y396*0.85,COLOR0000FF;WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;WSR2:=CROSS(WSR1,5);WSR3:=CROSS(8,WSR1);WSR4:=CROSS(WSR1,-5);WSR5:=CROSS(WSR1,-8);WSR6:=WSR3;WSR7:=WSR4 OR WSR5;WSR8:=WSR7 AND FILTER(WSR7,5);WSR10:DRAWICON(WSR8,L-0.01,1);WSR9:=WSR6 AND FILTER(WSR6,5);WSR11:DRAWICON(WSR9,H+0.01,2);WSR12:=O<良机区3;DRAWICON(WSR12 AND FILTER(WSR12,12),L-0.03,9);W1:=C>REF(C,1) AND MACD<REF(MACD,1) AND MACD>0 AND V<REF(V,1);W2:=C>REF(C,1) AND MACD<0 AND MACD<REF(MACD,1) AND V<REF(V,1);XG:=W1 OR W2;V AR1:=AMOUNT/VOL/7;V AR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;V AR3:=SUM(AMOUNT,10)/V AR1/7;V AR4:=DMA(V AR2,VOL/V AR3);V AR5:=(CLOSE-V AR4)/V AR4*100,COLORLIMAGENTA;XG1:=CROSS(V AR5,MA(V AR5,2)) AND V AR5<0 AND C<(HHV(H,5)*0.88) AND REF(O>C,1) AND REF(O>C,2);XG3:=XG AND XG1 AND L<良机区1;WSR13:=O>良机区3 AND L<良机区1 OR XG3;DRAWICON(WSR13 AND FILTER(WSR13,10),L-0.03,23);WSR14:=H>高风区3;DRAWICON(WSR14 AND FILTER(WSR14,15),H+0.03,19);WSR15:=H<高风区 3 AND H>高风区2;DRAWICON(WSR15 AND FILTER(WSR15,5),H+0.03,15);WSR16:=(INDEXC-MA(INDEXC,3))/MA(INDEXC,3);WSR17:=(INDEXC-MA(INDEXC,8))/MA(INDEXC,8);WSR18:=(INDEXC-MA(INDEXC,18))/MA(INDEXC,18);WSR19:=(WSR16 + WSR17 + WSR18)/3;WSR20:=(C-MA(C,3))/MA(C,3);WSR21:=(C-MA(C,8))/MA(C,8);WSR22:=(C-MA(C,18))/MA(C,18);WSR23:=(WSR20 + WSR21 + WSR22)/3;WSR24:=(WSR19>REF(WSR19,1) AND CROSS(WSR23,WSR19))*50;WSR25:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6);WSR26:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12);WSR27:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24);WSR28:=(WSR25 + WSR26 + WSR27)/3;WSR29:=(C-MA(C,6))/MA(C,6);WSR30:=(C-MA(C,12))/MA(C,12);WSR31:=(C-MA(C,24))/MA(C,24);WSR32:=(WSR29 + WSR30 + WSR31)/3;WSR33:=(WSR28>REF(WSR28,1) AND CROSS(WSR32,WSR28))*20;WSR34:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);WSR35:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR36:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR37:=(WSR34 + WSR35 + WSR36)/3;WSR38:=(C-MA(C,13))/MA(C,13);WSR39:=(C-MA(C,34))/MA(C,34);WSR40:=(C-MA(C,55))/MA(C,55);WSR41:=(WSR38 + WSR39 + WSR40)/3;WSR42:=(WSR37>REF(WSR37,1) AND CROSS(WSR41,WSR37));WSR43:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);WSR44:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR45:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR46:=(WSR43 + WSR44 + WSR45)/3;WSR47:=(C-MA(C,30))/MA(C,30);WSR48:=(C-MA(C,60))/MA(C,60);WSR49:=(C-MA(C,90))/MA(C,90);WSR50:=(WSR47 + WSR48 + WSR49)/3;WSR51:=(WSR46>REF(WSR46,1) AND CROSS(WSR50,WSR46));WSR52:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR53:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR54:=(INDEXC-MA(INDEXC,89))/MA(INDEXC,89);WSR55:=(WSR52 + WSR53 + WSR54)/3;WSR56:=(C-MA(C,60))/MA(C,60);WSR57:=(C-MA(C,120))/MA(C,120);WSR58:=(C-MA(C,220))/MA(C,220);WSR59:=(WSR56 + WSR57 + WSR58)/3;WSR60:=(WSR59>REF(WSR59,1) AND CROSS(WSR59,WSR55));WSR61:=WSR24 OR WSR33 OR WSR42 OR WSR51 OR WSR60;DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良机区3,'★'),COLOR00FFFF; DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良机区3*0.97,'机'),COLOR00FFFF;时间之窗:=HHVBARS(ZIG(3,M)>REF(ZIG(3,M),1)AND REF(ZIG(3,M), 1)<REF(ZIG(3,M), 2),N);DRAWTEXT(时间之窗=2,L*0.94,'★3天'),COLORRED;DRAWTEXT(时间之窗=4,H*1.06,'★5天'),COLORGREEN;DRAWTEXT(时间之窗=7,L*0.94,'★8天'),COLORRED;DRAWTEXT(时间之窗=12,H*1.06,'★13天'),COLORGREEN;DRAWTEXT(时间之窗=20,L*0.94,'★21天'),COLORLIRED;DRAWTEXT(时间之窗=33,H*1.06,'★34天'),COLORLIGREEN;DRAWTEXT(时间之窗=54,L*0.94,'★55天'),COLORLIRED;{DRAWTEXT(时间之窗=88,H*1.06,'★89天'),COLORLIGREEN;DRAWTEXT(时间之窗=143,L*0.94,'★144天'),COLORLIRED;DRAWTEXT(时间之窗=232,H*1.06,'★233天'),COLORLIGREEN;DRAWTEXT(时间之窗=376,L*0.94,'★377天'),COLORLIRED;DRAWTEXT(时间之窗=609,H*1.06,'★610天'),COLORLIGREEN; }GET:ZIG(3,3),COLORFFFFFF;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) ANDREF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF; DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF; DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'Ⅰ'),COLORFF00FF;DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'Ⅱ'),COLORFFFF00;DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'Ⅲ'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.03,'③'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'④'),LINETHICK3,COLOR00FFFF;V1:=(C+H+L)/3;MA3:=MA(V1,2);MA5:=MA(V1,5);DRAWBAND(MA2,RGB(200,50,55),MA5,RGB(0,100,50));遵:IF(MA2>=MA5,MA2,DRAWNULL),COLORRED;守:IF(MA5>=MA2,MA5,DRAWNULL),COLORFF9900;纪:IF(MA2>=MA5,MA5,DRAWNULL),COLOR00FFFF;律:IF(MA5>=MA2,MA2,DRAWNULL),COLOR00FF00;N1:=BARSLAST(CROSS(MA3,MA5));N2:=BARSLAST(CROSS(MA5,MA3));N:=IF(N1<N2,N1+1,0-N2-1);STICKLINE(N>0,C,O,3,0),COLOR000099;STICKLINE(N>0,C,O,0.9,0),COLOR0000CC;STICKLINE(N>0,C,O,0.2,0),COLOR0000FF;STICKLINE(N<0,C,O,3,0),COLOR888800;STICKLINE(N<0,C,O,0.9,0),COLORCCCC00;STICKLINE(N<0,C,O,0.2,0),COLORFFFF00;======================================================{Y395}股价67:="Y366";增幅67:=XMA(XMA(XMA(股价67,3),3),3)-REF(XMA(XMA(XMA(股价67,3),3),3),1); X367:=XMA(股价67,3);J367:=(XMA(股价67,3)*3+0.5*股价67-0.5*REF(股价67,1)+增幅67)/3;Y367:=IFF(CURRBARSCOUNT=1,J367,X367);股价68:=Y367;增幅68:=XMA(XMA(XMA(股价68,3),3),3)-REF(XMA(XMA(XMA(股价68,3),3),3),1); X368:=XMA(股价68,3);J368:=(XMA(股价68,3)*3+0.5*股价68-0.5*REF(股价68,1)+增幅68)/3;Y368:=IFF(CURRBARSCOUNT=1,J368,X368);股价69:=Y368;增幅69:=XMA(XMA(XMA(股价69,3),3),3)-REF(XMA(XMA(XMA(股价69,3),3),3),1); X369:=XMA(股价69,3);J369:=(XMA(股价69,3)*3+0.5*股价69-0.5*REF(股价69,1)+增幅69)/3;Y369:=IFF(CURRBARSCOUNT=1,J369,X369);股价70:=Y369;增幅70:=XMA(XMA(XMA(股价70,3),3),3)-REF(XMA(XMA(XMA(股价70,3),3),3),1); X370:=XMA(股价70,3);J370:=(XMA(股价70,3)*3+0.5*股价70-0.5*REF(股价70,1)+增幅70)/3;Y370:=IFF(CURRBARSCOUNT=1,J370,X370);股价71:=Y370;增幅71:=XMA(XMA(XMA(股价71,3),3),3)-REF(XMA(XMA(XMA(股价71,3),3),3),1); X371:=XMA(股价71,3);J371:=(XMA(股价71,3)*3+0.5*股价71-0.5*REF(股价71,1)+增幅71)/3;Y371:=IFF(CURRBARSCOUNT=1,J371,X371);股价72:=Y371;增幅72:=XMA(XMA(XMA(股价72,3),3),3)-REF(XMA(XMA(XMA(股价72,3),3),3),1); X372:=XMA(股价72,3);J372:=(XMA(股价72,3)*3+0.5*股价72-0.5*REF(股价72,1)+增幅72)/3;Y372:=IFF(CURRBARSCOUNT=1,J372,X372);股价73:=Y372;增幅73:=XMA(XMA(XMA(股价73,3),3),3)-REF(XMA(XMA(XMA(股价73,3),3),3),1); X373:=XMA(股价73,3);J373:=(XMA(股价73,3)*3+0.5*股价73-0.5*REF(股价73,1)+增幅73)/3;Y373:=IFF(CURRBARSCOUNT=1,J373,X373);股价74:=Y373;增幅74:=XMA(XMA(XMA(股价74,3),3),3)-REF(XMA(XMA(XMA(股价74,3),3),3),1); X374:=XMA(股价74,3);J374:=(XMA(股价74,3)*3+0.5*股价74-0.5*REF(股价74,1)+增幅74)/3;Y374:=IFF(CURRBARSCOUNT=1,J374,X374);股价75:=Y374;增幅75:=XMA(XMA(XMA(股价75,3),3),3)-REF(XMA(XMA(XMA(股价75,3),3),3),1); X375:=XMA(股价75,3);J375:=(XMA(股价75,3)*3+0.5*股价75-0.5*REF(股价75,1)+增幅75)/3;Y375:=IFF(CURRBARSCOUNT=1,J375,X375);股价76:=Y375;增幅76:=XMA(XMA(XMA(股价76,3),3),3)-REF(XMA(XMA(XMA(股价76,3),3),3),1); X376:=XMA(股价76,3);J376:=(XMA(股价76,3)*3+0.5*股价76-0.5*REF(股价76,1)+增幅76)/3;Y376:=IFF(CURRBARSCOUNT=1,J376,X376);股价77:=Y376;增幅77:=XMA(XMA(XMA(股价77,3),3),3)-REF(XMA(XMA(XMA(股价77,3),3),3),1); X377:=XMA(股价77,3);J377:=(XMA(股价77,3)*3+0.5*股价77-0.5*REF(股价77,1)+增幅77)/3;Y377:=IFF(CURRBARSCOUNT=1,J377,X377);股价78:=Y377;增幅78:=XMA(XMA(XMA(股价78,3),3),3)-REF(XMA(XMA(XMA(股价78,3),3),3),1); X378:=XMA(股价78,3);J378:=(XMA(股价78,3)*3+0.5*股价78-0.5*REF(股价78,1)+增幅78)/3;Y378:=IFF(CURRBARSCOUNT=1,J378,X378);股价79:=Y378;增幅79:=XMA(XMA(XMA(股价79,3),3),3)-REF(XMA(XMA(XMA(股价79,3),3),3),1); X379:=XMA(股价79,3);J379:=(XMA(股价79,3)*3+0.5*股价79-0.5*REF(股价79,1)+增幅79)/3;Y379:=IFF(CURRBARSCOUNT=1,J379,X379);股价80:=Y379;增幅80:=XMA(XMA(XMA(股价80,3),3),3)-REF(XMA(XMA(XMA(股价80,3),3),3),1); X380:=XMA(股价80,3);J380:=(XMA(股价80,3)*3+0.5*股价80-0.5*REF(股价80,1)+增幅80)/3;Y380:=IFF(CURRBARSCOUNT=1,J380,X380);股价81:=Y380;增幅81:=XMA(XMA(XMA(股价81,3),3),3)-REF(XMA(XMA(XMA(股价81,3),3),3),1); X381:=XMA(股价81,3);J381:=(XMA(股价81,3)*3+0.5*股价81-0.5*REF(股价81,1)+增幅81)/3;Y381:=IFF(CURRBARSCOUNT=1,J381,X381);股价82:=Y381;增幅82:=XMA(XMA(XMA(股价82,3),3),3)-REF(XMA(XMA(XMA(股价82,3),3),3),1); X382:=XMA(股价82,3);J382:=(XMA(股价82,3)*3+0.5*股价82-0.5*REF(股价82,1)+增幅82)/3;Y382:=IFF(CURRBARSCOUNT=1,J382,X382);股价83:=Y382;增幅83:=XMA(XMA(XMA(股价83,3),3),3)-REF(XMA(XMA(XMA(股价83,3),3),3),1); X383:=XMA(股价83,3);J383:=(XMA(股价83,3)*3+0.5*股价83-0.5*REF(股价83,1)+增幅83)/3;Y383:=IFF(CURRBARSCOUNT=1,J383,X383);股价84:=Y383;增幅84:=XMA(XMA(XMA(股价84,3),3),3)-REF(XMA(XMA(XMA(股价84,3),3),3),1); X384:=XMA(股价84,3);J384:=(XMA(股价84,3)*3+0.5*股价84-0.5*REF(股价84,1)+增幅84)/3;Y384:=IFF(CURRBARSCOUNT=1,J384,X384);股价85:=Y384;增幅85:=XMA(XMA(XMA(股价85,3),3),3)-REF(XMA(XMA(XMA(股价85,3),3),3),1); X385:=XMA(股价85,3);J385:=(XMA(股价85,3)*3+0.5*股价85-0.5*REF(股价85,1)+增幅85)/3;Y385:=IFF(CURRBARSCOUNT=1,J385,X385);股价86:=Y385;增幅86:=XMA(XMA(XMA(股价86,3),3),3)-REF(XMA(XMA(XMA(股价86,3),3),3),1); X386:=XMA(股价86,3);J386:=(XMA(股价86,3)*3+0.5*股价86-0.5*REF(股价86,1)+增幅86)/3;Y386:=IFF(CURRBARSCOUNT=1,J386,X386);股价87:=Y386;增幅87:=XMA(XMA(XMA(股价87,3),3),3)-REF(XMA(XMA(XMA(股价87,3),3),3),1); X387:=XMA(股价87,3);J387:=(XMA(股价87,3)*3+0.5*股价87-0.5*REF(股价87,1)+增幅87)/3;Y387:=IFF(CURRBARSCOUNT=1,J387,X387);股价88:=Y387;增幅88:=XMA(XMA(XMA(股价88,3),3),3)-REF(XMA(XMA(XMA(股价88,3),3),3),1); X388:=XMA(股价88,3);J388:=(XMA(股价88,3)*3+0.5*股价88-0.5*REF(股价88,1)+增幅88)/3;Y388:=IFF(CURRBARSCOUNT=1,J388,X388);股价89:=Y388;增幅89:=XMA(XMA(XMA(股价89,3),3),3)-REF(XMA(XMA(XMA(股价89,3),3),3),1); X389:=XMA(股价89,3);J389:=(XMA(股价89,3)*3+0.5*股价89-0.5*REF(股价89,1)+增幅89)/3;Y389:IFF(CURRBARSCOUNT=1,J389,X389);股价90:=Y389;增幅90:=XMA(XMA(XMA(股价90,3),3),3)-REF(XMA(XMA(XMA(股价90,3),3),3),1); X390:=XMA(股价90,3);J390:=(XMA(股价90,3)*3+0.5*股价90-0.5*REF(股价90,1)+增幅90)/3;Y390:=IFF(CURRBARSCOUNT=1,J390,X390);股价91:=Y390;增幅91:=XMA(XMA(XMA(股价91,3),3),3)-REF(XMA(XMA(XMA(股价91,3),3),3),1); X391:=XMA(股价91,3);J391:=(XMA(股价91,3)*3+0.5*股价91-0.5*REF(股价91,1)+增幅91)/3;Y391:=IFF(CURRBARSCOUNT=1,J391,X391);股价92:=Y391;增幅92:=XMA(XMA(XMA(股价92,3),3),3)-REF(XMA(XMA(XMA(股价92,3),3),3),1); X392:=XMA(股价92,3);J392:=(XMA(股价92,3)*3+0.5*股价92-0.5*REF(股价92,1)+增幅92)/3;Y392:=IFF(CURRBARSCOUNT=1,J392,X392);股价93:=Y392;增幅93:=XMA(XMA(XMA(股价93,3),3),3)-REF(XMA(XMA(XMA(股价93,3),3),3),1); X393:=XMA(股价93,3);J393:=(XMA(股价93,3)*3+0.5*股价93-0.5*REF(股价93,1)+增幅93)/3;Y393:=IFF(CURRBARSCOUNT=1,J393,X393);股价94:=Y393;增幅94:=XMA(XMA(XMA(股价94,3),3),3)-REF(XMA(XMA(XMA(股价94,3),3),3),1); X394:=XMA(股价94,3);J394:=(XMA(股价94,3)*3+0.5*股价94-0.5*REF(股价94,1)+增幅94)/3;Y394:=IFF(CURRBARSCOUNT=1,J394,X394);股价95:=Y394;增幅95:=XMA(XMA(XMA(股价95,3),3),3)-REF(XMA(XMA(XMA(股价95,3),3),3),1); X395:=XMA(股价95,3);J395:=(XMA(股价95,3)*3+0.5*股价95-0.5*REF(股价95,1)+增幅95)/3;Y395:IFF(CURRBARSCOUNT=1,J395,X395);==============================================================={Y366}股价34:="Y333";增幅34:=XMA(XMA(XMA(股价34,3),3),3)-REF(XMA(XMA(XMA(股价34,3),3),3),1); X334:=XMA(股价34,3);J334:=(XMA(股价34,3)*3+0.5*股价34-0.5*REF(股价34,1)+增幅34)/3;Y334:=IFF(CURRBARSCOUNT=1,J334,X334);股价35:=Y334;增幅35:=XMA(XMA(XMA(股价35,3),3),3)-REF(XMA(XMA(XMA(股价35,3),3),3),1); X335:=XMA(股价35,3);J335:=(XMA(股价35,3)*3+0.5*股价35-0.5*REF(股价35,1)+增幅35)/3;Y335:=IFF(CURRBARSCOUNT=1,J335,X335);股价36:=Y335;增幅36:=XMA(XMA(XMA(股价36,3),3),3)-REF(XMA(XMA(XMA(股价36,3),3),3),1); X336:=XMA(股价36,3);J336:=(XMA(股价36,3)*3+0.5*股价36-0.5*REF(股价36,1)+增幅36)/3;Y336:=IFF(CURRBARSCOUNT=1,J336,X336);股价37:=Y336;增幅37:=XMA(XMA(XMA(股价37,3),3),3)-REF(XMA(XMA(XMA(股价37,3),3),3),1); X337:=XMA(股价37,3);J337:=(XMA(股价37,3)*3+0.5*股价37-0.5*REF(股价37,1)+增幅37)/3;Y337:=IFF(CURRBARSCOUNT=1,J337,X337);股价38:=Y337;增幅38:=XMA(XMA(XMA(股价38,3),3),3)-REF(XMA(XMA(XMA(股价38,3),3),3),1); X338:=XMA(股价38,3);J338:=(XMA(股价38,3)*3+0.5*股价38-0.5*REF(股价38,1)+增幅38)/3;Y338:=IFF(CURRBARSCOUNT=1,J338,X338);股价39:=Y338;增幅39:=XMA(XMA(XMA(股价39,3),3),3)-REF(XMA(XMA(XMA(股价39,3),3),3),1); X339:=XMA(股价39,3);J339:=(XMA(股价39,3)*3+0.5*股价39-0.5*REF(股价39,1)+增幅39)/3;Y339:=IFF(CURRBARSCOUNT=1,J339,X339);股价40:=Y339;增幅40:=XMA(XMA(XMA(股价40,3),3),3)-REF(XMA(XMA(XMA(股价40,3),3),3),1); X340:=XMA(股价40,3);J340:=(XMA(股价40,3)*3+0.5*股价40-0.5*REF(股价40,1)+增幅40)/3;Y340:=IFF(CURRBARSCOUNT=1,J340,X340);股价41:=Y340;增幅41:=XMA(XMA(XMA(股价41,3),3),3)-REF(XMA(XMA(XMA(股价41,3),3),3),1); X341:=XMA(股价41,3);J341:=(XMA(股价41,3)*3+0.5*股价41-0.5*REF(股价41,1)+增幅41)/3;Y341:=IFF(CURRBARSCOUNT=1,J341,X341);股价42:=Y341;增幅42:=XMA(XMA(XMA(股价42,3),3),3)-REF(XMA(XMA(XMA(股价42,3),3),3),1); X342:=XMA(股价42,3);J342:=(XMA(股价42,3)*3+0.5*股价42-0.5*REF(股价42,1)+增幅42)/3;Y342:=IFF(CURRBARSCOUNT=1,J342,X342);股价43:=Y342;增幅43:=XMA(XMA(XMA(股价43,3),3),3)-REF(XMA(XMA(XMA(股价43,3),3),3),1); X343:=XMA(股价43,3);J343:=(XMA(股价43,3)*3+0.5*股价43-0.5*REF(股价43,1)+增幅43)/3;Y343:=IFF(CURRBARSCOUNT=1,J343,X343);股价44:=Y343;增幅44:=XMA(XMA(XMA(股价44,3),3),3)-REF(XMA(XMA(XMA(股价44,3),3),3),1); X344:=XMA(股价44,3);J344:=(XMA(股价44,3)*3+0.5*股价44-0.5*REF(股价44,1)+增幅44)/3;Y344:=IFF(CURRBARSCOUNT=1,J344,X344);股价45:=Y344;增幅45:=XMA(XMA(XMA(股价45,3),3),3)-REF(XMA(XMA(XMA(股价45,3),3),3),1); X345:=XMA(股价45,3);J345:=(XMA(股价45,3)*3+0.5*股价45-0.5*REF(股价45,1)+增幅45)/3;Y345:=IFF(CURRBARSCOUNT=1,J345,X345);股价46:=Y345;增幅46:=XMA(XMA(XMA(股价46,3),3),3)-REF(XMA(XMA(XMA(股价46,3),3),3),1); X346:=XMA(股价46,3);J346:=(XMA(股价46,3)*3+0.5*股价46-0.5*REF(股价46,1)+增幅46)/3;Y346:=IFF(CURRBARSCOUNT=1,J346,X346);股价47:=Y346;增幅47:=XMA(XMA(XMA(股价47,3),3),3)-REF(XMA(XMA(XMA(股价47,3),3),3),1); X347:=XMA(股价47,3);J347:=(XMA(股价47,3)*3+0.5*股价47-0.5*REF(股价47,1)+增幅47)/3;Y347:=IFF(CURRBARSCOUNT=1,J347,X347);股价48:=Y347;增幅48:=XMA(XMA(XMA(股价48,3),3),3)-REF(XMA(XMA(XMA(股价48,3),3),3),1); X348:=XMA(股价48,3);J348:=(XMA(股价48,3)*3+0.5*股价48-0.5*REF(股价48,1)+增幅48)/3;Y348:=IFF(CURRBARSCOUNT=1,J348,X348);股价49:=Y348;增幅49:=XMA(XMA(XMA(股价49,3),3),3)-REF(XMA(XMA(XMA(股价49,3),3),3),1); X349:=XMA(股价49,3);J349:=(XMA(股价49,3)*3+0.5*股价49-0.5*REF(股价49,1)+增幅49)/3;Y349:=IFF(CURRBARSCOUNT=1,J349,X349);股价50:=Y349;增幅50:=XMA(XMA(XMA(股价50,3),3),3)-REF(XMA(XMA(XMA(股价50,3),3),3),1); X350:=XMA(股价50,3);J350:=(XMA(股价50,3)*3+0.5*股价50-0.5*REF(股价50,1)+增幅50)/3;Y350:=IFF(CURRBARSCOUNT=1,J350,X350);股价51:=Y350;增幅51:=XMA(XMA(XMA(股价51,3),3),3)-REF(XMA(XMA(XMA(股价51,3),3),3),1); X351:=XMA(股价51,3);J351:=(XMA(股价51,3)*3+0.5*股价51-0.5*REF(股价51,1)+增幅51)/3;Y351:=IFF(CURRBARSCOUNT=1,J351,X351);股价52:=Y351;增幅52:=XMA(XMA(XMA(股价52,3),3),3)-REF(XMA(XMA(XMA(股价52,3),3),3),1); X352:=XMA(股价52,3);J352:=(XMA(股价52,3)*3+0.5*股价52-0.5*REF(股价52,1)+增幅52)/3;Y352:=IFF(CURRBARSCOUNT=1,J352,X352);股价53:=Y352;增幅53:=XMA(XMA(XMA(股价53,3),3),3)-REF(XMA(XMA(XMA(股价53,3),3),3),1); X353:=XMA(股价53,3);J353:=(XMA(股价53,3)*3+0.5*股价53-0.5*REF(股价53,1)+增幅53)/3;Y353:=IFF(CURRBARSCOUNT=1,J353,X353);股价54:=Y353;增幅54:=XMA(XMA(XMA(股价54,3),3),3)-REF(XMA(XMA(XMA(股价54,3),3),3),1); X354:=XMA(股价54,3);J354:=(XMA(股价54,3)*3+0.5*股价54-0.5*REF(股价54,1)+增幅54)/3;Y354:=IFF(CURRBARSCOUNT=1,J354,X354);股价55:=Y354;增幅55:=XMA(XMA(XMA(股价55,3),3),3)-REF(XMA(XMA(XMA(股价55,3),3),3),1); X355:=XMA(股价55,3);J355:=(XMA(股价55,3)*3+0.5*股价55-0.5*REF(股价55,1)+增幅55)/3;Y355:=IFF(CURRBARSCOUNT=1,J355,X355);股价56:=Y355;增幅56:=XMA(XMA(XMA(股价56,3),3),3)-REF(XMA(XMA(XMA(股价56,3),3),3),1); X356:=XMA(股价56,3);J356:=(XMA(股价56,3)*3+0.5*股价56-0.5*REF(股价56,1)+增幅56)/3;Y356:=IFF(CURRBARSCOUNT=1,J356,X356);股价57:=Y356;增幅57:=XMA(XMA(XMA(股价57,3),3),3)-REF(XMA(XMA(XMA(股价57,3),3),3),1); X357:=XMA(股价57,3);J357:=(XMA(股价57,3)*3+0.5*股价57-0.5*REF(股价57,1)+增幅57)/3;Y357:=IFF(CURRBARSCOUNT=1,J357,X357);股价58:=Y357;增幅58:=XMA(XMA(XMA(股价58,3),3),3)-REF(XMA(XMA(XMA(股价58,3),3),3),1); X358:=XMA(股价58,3);J358:=(XMA(股价58,3)*3+0.5*股价58-0.5*REF(股价58,1)+增幅58)/3;Y358:=IFF(CURRBARSCOUNT=1,J358,X358);股价59:=Y358;增幅59:=XMA(XMA(XMA(股价59,3),3),3)-REF(XMA(XMA(XMA(股价59,3),3),3),1); X359:=XMA(股价59,3);J359:=(XMA(股价59,3)*3+0.5*股价59-0.5*REF(股价59,1)+增幅59)/3;Y359:=IFF(CURRBARSCOUNT=1,J359,X359);股价60:=Y359;增幅60:=XMA(XMA(XMA(股价60,3),3),3)-REF(XMA(XMA(XMA(股价60,3),3),3),1); X360:=XMA(股价60,3);J360:=(XMA(股价60,3)*3+0.5*股价60-0.5*REF(股价60,1)+增幅60)/3;Y360:=IFF(CURRBARSCOUNT=1,J360,X360);股价61:=Y360;增幅61:=XMA(XMA(XMA(股价61,3),3),3)-REF(XMA(XMA(XMA(股价61,3),3),3),1); X361:=XMA(股价61,3);J361:=(XMA(股价61,3)*3+0.5*股价61-0.5*REF(股价61,1)+增幅61)/3;Y361:=IFF(CURRBARSCOUNT=1,J361,X361);股价62:=Y361;增幅62:=XMA(XMA(XMA(股价62,3),3),3)-REF(XMA(XMA(XMA(股价62,3),3),3),1); X362:=XMA(股价62,3);J362:=(XMA(股价62,3)*3+0.5*股价62-0.5*REF(股价62,1)+增幅62)/3;Y362:=IFF(CURRBARSCOUNT=1,J362,X362);股价63:=Y362;增幅63:=XMA(XMA(XMA(股价63,3),3),3)-REF(XMA(XMA(XMA(股价63,3),3),3),1); X363:=XMA(股价63,3);J363:=(XMA(股价63,3)*3+0.5*股价63-0.5*REF(股价63,1)+增幅63)/3;Y363:=IFF(CURRBARSCOUNT=1,J363,X363);股价64:=Y363;增幅64:=XMA(XMA(XMA(股价64,3),3),3)-REF(XMA(XMA(XMA(股价64,3),3),3),1); X364:=XMA(股价64,3);J364:=(XMA(股价64,3)*3+0.5*股价64-0.5*REF(股价64,1)+增幅64)/3;Y364:=IFF(CURRBARSCOUNT=1,J364,X364);股价65:=Y364;增幅65:=XMA(XMA(XMA(股价65,3),3),3)-REF(XMA(XMA(XMA(股价65,3),3),3),1); X365:=XMA(股价65,3);J365:=(XMA(股价65,3)*3+0.5*股价65-0.5*REF(股价65,1)+增幅65)/3;Y365:=IFF(CURRBARSCOUNT=1,J365,X365);股价66:=Y365;增幅66:=XMA(XMA(XMA(股价66,3),3),3)-REF(XMA(XMA(XMA(股价66,3),3),3),1); X366:=XMA(股价66,3);J366:=(XMA(股价66,3)*3+0.5*股价66-0.5*REF(股价66,1)+增幅66)/3;Y366:IFF(CURRBARSCOUNT=1,J366,X366);==========================================================={Y333}股价1:=(C+H+L)/3;增幅1:=XMA(XMA(XMA(股价1,3),3),3)-REF(XMA(XMA(XMA(股价1,3),3),3),1);X31:=XMA(股价1,3);J31:=(XMA(股价1,3)*3+0.5*股价1-0.5*REF(股价1,1)+增幅1)/3;Y31:=IFF(CURRBARSCOUNT=1,J31,X31);股价2:=Y31;增幅2:=XMA(XMA(XMA(股价2,3),3),3)-REF(XMA(XMA(XMA(股价2,3),3),3),1); X32:=XMA(股价2,3);J32:=(XMA(股价2,3)*3+0.5*股价2-0.5*REF(股价2,1)+增幅2)/3;Y32:=IFF(CURRBARSCOUNT=1,J32,X32);股价3:=Y32;增幅3:=XMA(XMA(XMA(股价3,3),3),3)-REF(XMA(XMA(XMA(股价3,3),3),3),1); X33:=XMA(股价3,3);J33:=(XMA(股价3,3)*3+0.5*股价3-0.5*REF(股价3,1)+增幅3)/3;Y33:=IFF(CURRBARSCOUNT=1,J33,X33);股价4:=Y33;增幅4:=XMA(XMA(XMA(股价4,3),3),3)-REF(XMA(XMA(XMA(股价4,3),3),3),1); X34:=XMA(股价4,3);J34:=(XMA(股价4,3)*3+0.5*股价4-0.5*REF(股价4,1)+增幅4)/3;Y34:=IFF(CURRBARSCOUNT=1,J34,X34);股价5:=Y34;增幅5:=XMA(XMA(XMA(股价5,3),3),3)-REF(XMA(XMA(XMA(股价5,3),3),3),1); X35:=XMA(股价5,3);J35:=(XMA(股价5,3)*3+0.5*股价5-0.5*REF(股价5,1)+增幅5)/3;Y35:=IFF(CURRBARSCOUNT=1,J35, X35);股价6:=Y35;增幅6:=XMA(XMA(XMA(股价6,3),3),3)-REF(XMA(XMA(XMA(股价6,3),3),3),1); X36:=XMA(股价6,3);J36:=(XMA(股价6,3)*3+0.5*股价6-0.5*REF(股价6,1)+增幅6)/3;Y36:=IFF(CURRBARSCOUNT=1,J36,X36);股价7:=Y36;增幅7:=XMA(XMA(XMA(股价7,3),3),3)-REF(XMA(XMA(XMA(股价7,3),3),3),1); X37:=XMA(股价7,3);J37:=(XMA(股价7,3)*3+0.5*股价7-0.5*REF(股价7,1)+增幅7)/3;Y37:=IFF(CURRBARSCOUNT=1,J37,X37);股价8:=Y37;增幅8:=XMA(XMA(XMA(股价8,3),3),3)-REF(XMA(XMA(XMA(股价8,3),3),3),1); X38:=XMA(股价8,3);J38:=(XMA(股价8,3)*3+0.5*股价8-0.5*REF(股价8,1)+增幅8)/3;Y38:=IFF(CURRBARSCOUNT=1,J38,X38);股价9:=Y38;增幅9:=XMA(XMA(XMA(股价9,3),3),3)-REF(XMA(XMA(XMA(股价9,3),3),3),1); X39:=XMA(股价9,3);J39:=(XMA(股价9,3)*3+0.5*股价9-0.5*REF(股价9,1)+增幅9)/3;Y39:=IFF(CURRBARSCOUNT=1,J39,X39);股价10:=Y39;增幅10:=XMA(XMA(XMA(股价10,3),3),3)-REF(XMA(XMA(XMA(股价10,3),3),3),1); X310:=XMA(股价10,3);J310:=(XMA(股价10,3)*3+0.5*股价10-0.5*REF(股价10,1)+增幅10)/3;Y310:=IFF(CURRBARSCOUNT=1,J310,X310);股价11:=Y310;增幅11:=XMA(XMA(XMA(股价11,3),3),3)-REF(XMA(XMA(XMA(股价11,3),3),3),1); X311:=XMA(股价11,3);J311:=(XMA(股价11,3)*3+0.5*股价11-0.5*REF(股价11,1)+增幅11)/3;Y311:=IFF(CURRBARSCOUNT=1,J311,X311);股价12:=Y311;增幅12:=XMA(XMA(XMA(股价12,3),3),3)-REF(XMA(XMA(XMA(股价12,3),3),3),1); X312:=XMA(股价12,3);J312:=(XMA(股价12,3)*3+0.5*股价12-0.5*REF(股价12,1)+增幅12)/3;Y312:=IFF(CURRBARSCOUNT=1,J312,X312);股价13:=Y312;增幅13:=XMA(XMA(XMA(股价13,3),3),3)-REF(XMA(XMA(XMA(股价13,3),3),3),1); X313:=XMA(股价13,3);J313:=(XMA(股价13,3)*3+0.5*股价13-0.5*REF(股价13,1)+增幅13)/3;Y313:=IFF(CURRBARSCOUNT=1,J313,X313);股价14:=Y313;增幅14:=XMA(XMA(XMA(股价14,3),3),3)-REF(XMA(XMA(XMA(股价14,3),3),3),1); X314:=XMA(股价14,3);J314:=(XMA(股价14,3)*3+0.5*股价14-0.5*REF(股价14,1)+增幅14)/3;Y314:=IFF(CURRBARSCOUNT=1,J314,X314);股价15:=Y314;增幅15:=XMA(XMA(XMA(股价15,3),3),3)-REF(XMA(XMA(XMA(股价15,3),3),3),1); X315:=XMA(股价15,3);J315:=(XMA(股价15,3)*3+0.5*股价15-0.5*REF(股价15,1)+增幅15)/3;Y315:=IFF(CURRBARSCOUNT=1,J315,X315);股价16:=Y315;增幅16:=XMA(XMA(XMA(股价16,3),3),3)-REF(XMA(XMA(XMA(股价16,3),3),3),1); X316:=XMA(股价16,3);J316:=(XMA(股价16,3)*3+0.5*股价16-0.5*REF(股价16,1)+增幅16)/3;Y316:=IFF(CURRBARSCOUNT=1,J316,X316);股价17:=Y316;增幅17:=XMA(XMA(XMA(股价17,3),3),3)-REF(XMA(XMA(XMA(股价17,3),3),3),1); X317:=XMA(股价17,3);J317:=(XMA(股价17,3)*3+0.5*股价17-0.5*REF(股价17,1)+增幅17)/3;Y317:=IFF(CURRBARSCOUNT=1,J317,X317);股价18:=Y317;增幅18:=XMA(XMA(XMA(股价18,3),3),3)-REF(XMA(XMA(XMA(股价18,3),3),3),1);X318:=XMA(股价18,3);J318:=(XMA(股价18,3)*3+0.5*股价18-0.5*REF(股价18,1)+增幅18)/3;Y318:=IFF(CURRBARSCOUNT=1,J318,X318);股价19:=Y318;增幅19:=XMA(XMA(XMA(股价19,3),3),3)-REF(XMA(XMA(XMA(股价19,3),3),3),1); X319:=XMA(股价19,3);J319:=(XMA(股价19,3)*3+0.5*股价19-0.5*REF(股价19,1)+增幅19)/3;Y319:=IFF(CURRBARSCOUNT=1,J319,X319);股价20:=Y319;增幅20:=XMA(XMA(XMA(股价20,3),3),3)-REF(XMA(XMA(XMA(股价20,3),3),3),1); X320:=XMA(股价20,3);J320:=(XMA(股价20,3)*3+0.5*股价20-0.5*REF(股价20,1)+增幅20)/3;Y320:=IFF(CURRBARSCOUNT=1,J320,X320);股价21:=Y320;增幅21:=XMA(XMA(XMA(股价21,3),3),3)-REF(XMA(XMA(XMA(股价21,3),3),3),1); X321:=XMA(股价21,3);J321:=(XMA(股价21,3)*3+0.5*股价21-0.5*REF(股价21,1)+增幅21)/3;Y321:=IFF(CURRBARSCOUNT=1,J321,X321);股价22:=Y321;增幅22:=XMA(XMA(XMA(股价22,3),3),3)-REF(XMA(XMA(XMA(股价22,3),3),3),1); X322:=XMA(股价22,3);J322:=(XMA(股价22,3)*3+0.5*股价22-0.5*REF(股价22,1)+增幅22)/3;Y322:=IFF(CURRBARSCOUNT=1,J322,X322);股价23:=Y322;增幅23:=XMA(XMA(XMA(股价23,3),3),3)-REF(XMA(XMA(XMA(股价23,3),3),3),1); X323:=XMA(股价23,3);J323:=(XMA(股价23,3)*3+0.5*股价23-0.5*REF(股价23,1)+增幅23)/3;Y323:=IFF(CURRBARSCOUNT=1,J323,X323);股价24:=Y323;增幅24:=XMA(XMA(XMA(股价24,3),3),3)-REF(XMA(XMA(XMA(股价24,3),3),3),1); X324:=XMA(股价24,3);J324:=(XMA(股价24,3)*3+0.5*股价24-0.5*REF(股价24,1)+增幅24)/3;Y324:=IFF(CURRBARSCOUNT=1,J324,X324);股价25:=Y324;增幅25:=XMA(XMA(XMA(股价25,3),3),3)-REF(XMA(XMA(XMA(股价25,3),3),3),1); X325:=XMA(股价25,3);J325:=(XMA(股价25,3)*3+0.5*股价25-0.5*REF(股价25,1)+增幅25)/3;Y325:=IFF(CURRBARSCOUNT=1,J325,X325);股价26:=Y325;增幅26:=XMA(XMA(XMA(股价26,3),3),3)-REF(XMA(XMA(XMA(股价26,3),3),3),1); X326:=XMA(股价26,3);J326:=(XMA(股价26,3)*3+0.5*股价26-0.5*REF(股价26,1)+增幅26)/3;Y326:=IFF(CURRBARSCOUNT=1,J326,X326);股价27:=Y326;增幅27:=XMA(XMA(XMA(股价27,3),3),3)-REF(XMA(XMA(XMA(股价27,3),3),3),1); X327:=XMA(股价27,3);J327:=(XMA(股价27,3)*3+0.5*股价27-0.5*REF(股价27,1)+增幅27)/3;Y327:=IFF(CURRBARSCOUNT=1,J327,X327);股价28:=Y327;增幅28:=XMA(XMA(XMA(股价28,3),3),3)-REF(XMA(XMA(XMA(股价28,3),3),3),1); X328:=XMA(股价28,3);J328:=(XMA(股价28,3)*3+0.5*股价28-0.5*REF(股价28,1)+增幅28)/3;Y328:=IFF(CURRBARSCOUNT=1,J328,X328);股价29:=Y328;增幅29:=XMA(XMA(XMA(股价29,3),3),3)-REF(XMA(XMA(XMA(股价29,3),3),3),1); X329:=XMA(股价29,3);J329:=(XMA(股价29,3)*3+0.5*股价29-0.5*REF(股价29,1)+增幅29)/3;Y329:=IFF(CURRBARSCOUNT=1,J329,X329);股价30:=Y329;增幅30:=XMA(XMA(XMA(股价30,3),3),3)-REF(XMA(XMA(XMA(股价30,3),3),3),1); X330:=XMA(股价30,3);J330:=(XMA(股价30,3)*3+0.5*股价30-0.5*REF(股价30,1)+增幅30)/3;Y330:=IFF(CURRBARSCOUNT=1,J330,X330);股价31:=Y330;增幅31:=XMA(XMA(XMA(股价31,3),3),3)-REF(XMA(XMA(XMA(股价31,3),3),3),1); X331:=XMA(股价31,3);J331:=(XMA(股价31,3)*3+0.5*股价31-0.5*REF(股价31,1)+增幅31)/3;Y331:=IFF(CURRBARSCOUNT=1,J331,X331);股价32:=Y331;增幅32:=XMA(XMA(XMA(股价32,3),3),3)-REF(XMA(XMA(XMA(股价32,3),3),3),1); X332:=XMA(股价32,3);J332:=(XMA(股价32,3)*3+0.5*股价32-0.5*REF(股价32,1)+增幅32)/3;Y332:=IFF(CURRBARSCOUNT=1,J332,X332);股价33:=Y332;增幅33:=XMA(XMA(XMA(股价33,3),3),3)-REF(XMA(XMA(XMA(股价33,3),3),3),1); X333:=XMA(股价33,3);J333:=(XMA(股价33,3)*3+0.5*股价33-0.5*REF(股价33,1)+增幅33)/3;Y333:IFF(CURRBARSCOUNT=1,J333,X333);。

布林庄线主图通达信指标公式源码

布林庄线主图通达信指标公式源码

{板块}{DRAWGBK(O>C,RGB(48,41,124),RGB(0,0,0),0,'1',0);}Z1:=STRCAT(HYBLOCK,'');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;{布林}MB:=MA(CLOSE,20),COLORWHITE,COLORRED;BBIBOLL:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORRED;上极限:MB+2*STD(C,20),COLORYELLOW,DOTLINE;下极限:MB-2*STD(C,20),COLORWHITE,DOTLINE;强势线:MA(C,25)+MA(C,25)*20/100,COLORWHITE,DOTLINE,LINETHICK2;{BBIBOLL:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORRED;UPR:BBIBOLL+6*STD(BBIBOLL,11),COLORYELLOW,DOTLINE;DWN:BBIBOLL-6*STD(BBIBOLL,11),COLORWHITE,DOTLINE;}{操盘线}ZZ:=(O+H+L)/3;庄线:EMA(ZZ,55),COLORYELLOW;操盘线:EMA(ZZ,7),COLORWHITE;ZLZL1:=C<操盘线;ZLZL2:=C>=庄线;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;DRAWICON(VAR19 AND C>操盘线,L*0.998,1);DRAWICON(VAR1A,H*1.002,2),NODRAW;TJ5:=REF("I",1)<-100 AND "I">REF("I",1);TJ6:=REF("KDJ.J"(9,3,3),1)<20 AND "KDJ.J"(9,3,3)>REF( "KDJ.J"(9,3,3),1);TJ7:=REF("RSI.RSI1",1)<20 AND "RSI.RSI1">REF("RSI.RSI1",1);TJ8:=COUNT(TJ5,5) AND COUNT(TJ6,5) AND COUNT(TJ7,5);大底:=CROSS(TJ8,0.5);DRAWICON(大底,L*0.991,11);T1:EMA(SLOPE(CLOSE,34)*20+CLOSE,75),COLORYELLOW,NODRAW;T2:MA(C,120),COLORCYAN,LINETHICK2,NODRAW;T3:MA(C,250),COLORGREEN,LINETHICK2,NODRAW;乖离线:=((C-REF(T1,1))/20+T1)*1.20;TT1:=CROSS(T1,T2) AND CROSS(T1,T3) AND V>REF(V,1);TT2:=T1>REF(T1,2) AND V>REF(V,1) AND CROSS(C,T1);DRAWICON((T2>=REF(T2,1) AND CROSS(C,T1) AND CROSS(C,T2) ANDV>REF(V,1)),L*0.997,9);DRAWICON(TT2,L*0.980,11);DRAWICON(CROSS(C,乖离线) AND L!=H,H*1.003,12);N1:=10;N2:=3;N3:=6;PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2))))); ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22)); STICKLINE(((HSL * 0.4) >= 0),((HSL/1000) * 1.0),0,1,0),COLORRED,NODRAW; STICKLINE(((HSL * 0.4) < 0),((HSL/1000) * 1.0),0,1,0),COLORBLUE,NODRAW;力度: (HSL / 1000),LINETHICK0,NODRAW;A1:=SUM(力度,N1);A2:=EMA(A1,N2);A3:=EMA(A1,N3);累积能量:A1,NODRAW;BIAS1:(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100,NODRAW;买:DRAWICON(CROSS(A1,A3) AND C>操盘线,L*0.998,1),NODRAW;卖:DRAWICON(CROSS(A3,A1) AND BIAS1>1,H*1.002,10),NODRAW;VAR1Y:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;VAR2Y:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;VAR3Y:=SMA(VAR2Y,2,1);。

通达信指标公式源码 主图趋势画线 源码主图

通达信指标公式源码 主图趋势画线 源码主图

JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;R1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));R2:=(REF(R1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R3:=(REF(R2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R4:=(REF(R3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R5:=(REF(R4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R6:=(REF(R5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R7:=(REF(R6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R8:=(REF(R7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R9:=(REF(R8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RA:=(REF(R9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); RB:=(REF(RA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RC:=(REF(RB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); RD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));RE:=(REF(RD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RF:=(REF(RE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R10:=(REF(RF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R11:=(REF(R10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));R12:=(REF(R11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));R13:=(REF(R12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));R14:=(REF(R13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));R15:=(REF(R14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));R16:=(REF(R15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));R17:=(REF(R16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));R18:=(REF(R17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));R19:=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) 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);VAR3:=IF(C<200 ,MA(COST(80),3),2500),NODRAW;VAR4:=(((HIGH + LOW) + CLOSE) / 3);VAR5:=EMA(((((OPEN + HIGH) + LOW) + CLOSE) / 4),2330);VAR6:=(VAR5 + ((VAR5 * 6) / 100));春买:=R19,NODRAW,COLOR00DD00;秋离场:=R1A,NODRAW,COLOR2288EE;红持股:=R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,NODRAW,COLOR0000FF;阴观望:=RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,NODRAW,COLOR999999;急速超跌关注:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORBBBBBB,NODRA W;离场:=IF(红持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;进:=IF(阴观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLOR00FF00,NODRAW;STICKLINE(ISLASTBAR AND (红持股OR REF(红持股,1)=1),今离场价,今离场价,20,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (阴观望OR REF(阴观望,1)=1),今进场价,今进场价,20,1),COLOR00FF00;XX2:EMA(EMA((CLOSE+LOW+HIGH)/3,3),23),COLORGREEN, LINETHICK2; XX3:=REF(XX2,1);IF(XX2>XX3,XX2,DRAWNULL),COLORRED, LINETHICK2;B11:=MA(CLOSE,1);B22:=SMA(SMA(SMA(B11,2,1),2,1),2,1) ;SMA2:=MA(B22,3) ;DRAWBAND(B22,RGB(255,0,0),SMA2,RGB(0,255,0));下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDDDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)) )),COLORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;压力位:=IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;底部位:=IF(ISLASTBAR,底部,DRAWNULL),NODRAW;STICKLINE(ISLASTBAR ,压力位,压力位,40,0),COLORFF00FF,LINETHICK2; STICKLINE(ISLASTBAR ,底部位,底部位,35,0),COLOR00FFFF,LINETHICK2;B1:=REF(CLOSE,1);B2:=REF(CLOSE,2);B3:=REF(CLOSE,3);B4:=REF(CLOSE,4);CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);持股:=(CLOSE=CMAX AND (B1>=B2 OR B1>=B3)) OR ((B1=CMAX AND(B2=CMIN OR B3=CMIN)) AND CLOSE>=B2) OR(B2=CMAX AND B3=CMIN AND CLOSE>=B1) OR (B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2);STICKLINE(持股,B1,CLOSE,3,0),COLOR000099;变盘:=CLOSE=CMAX AND B1=CMIN;STICKLINE(变盘,B2,CLOSE,3,0),COLOR0099EF;下跌:=(CLOSE=CMIN AND (B1<B2 OR B1<B3)) OR ((B1=CMIN AND(B2=CMAX OR B3=CMAX)) AND CLOSE<B2) OR(B2=CMIN AND B3=CMAX AND CLOSE<B1) OR (B3=CMIN AND CLOSE<B1 AND CLOSE<B2);STICKLINE(下跌,B1,CLOSE,3,0),COLOR009900;STICKLINE(B1=CMAX AND CLOSE=CMIN,B2,CLOSE,3,0),COLOR009900;买入:=(B1=CMIN AND CLOSE>=B2) OR ((B2=CMIN AND B1<=B3) OR(B3=CMIN AND B1<=B2) AND B2<B4 AND CLOSE>=B1);STICKLINE(买入,B1,B2,3,0),COLOR00FFFF;抛售:=(B1=CMAX AND CLOSE<B2) OR ((B2=CMAX AND B1>B3) OR(B3=CMAX AND B1>B2) AND B2>=B4 AND CLOSE<B1);STICKLINE(抛售,B1,B2,3,0),COLORFFFFFF;STICKLINE(C>=O,L,H,0,1),COLORRED;STICKLINE(C<O,H,L,0,1),COLORGREEN;STICKLINE(持股OR 买入,O,C,1.5,0),COLORRED;STICKLINE(下跌OR 抛售,O,C,1.5,0),COLORGREEN;STICKLINE(C>0,O,C,0,0),COLORFFFFFF;MMA:=CONST(HHV(H,90));MMB:=CONST(LLV(L,90));WN:=3;{原码N:=3;}WA1:=REF(H,WN)=HHV(H,2*WN+1); WB1:=FILTER(WA1,WN);WC1:=BACKSET(WB1,WN+1); WD1:=FILTER(WC1,WN);{高点}WA2:=REF(L,WN)=LLV(L,2*WN+1); WB2:=FILTER(WA2,WN);WC2:=BACKSET(WB2,WN+1); WD2:=FILTER(WC2,WN);{低点}WE1:=(REF(LLV(L,2*WN),1)+REF(HHV(H,2*WN),1))/2;WE2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}WH1:=(WD1 AND NOT(WD2 AND WE1>=WE2)) OR ISLASTBAR OR BARSCOUNT(C)=1;WL1:=(WD2 AND NOT(WD1 AND WE1<WE2)); WH2:=WD1 AND NOT(WD2 AND WE1>=WE2);WX1:=REF(BARSLAST(WH1),1)+1; WF1:=BACKSET(WH1 ANDCOUNT(WL1,WX1)>0,LLVBARS(IF(WL1,L,10000),WX1));WG1:=WF1>REF(WF1,1); WI1:=BACKSET(WG1,2);WLD:=WI1>REF(WI1,1);{过滤后低点}WL2:=WLD OR ISLASTBAR OR BARSCOUNT(C)=1;WX2:=REF(BARSLAST(WL2),1)+1; WF2:=BACKSET(WL2 ANDCOUNT(WH2,WX2)>0,HHVBARS(IF(WH2,H,0),WX2));WG2:=WF2>REF(WF2,1); WI2:=BACKSET(WG2,2);WHD:=WI2>REF(WI2,1);{过滤后高点}WR1:=BACKSET(ISLASTBAR,BARSLAST(WHD)+1); WS1:=WR1>REF(WR1,1); {前一高}WT1:=BACKSET(ISLASTBAR,BARSLAST(WLD)+1); WU1:=WT1>REF(WT1,1); {前一低}WR2:=BACKSET(WS1,REF(BARSLAST(WHD),1)+2); WS2:=WR2>REF(WR2,1); {前二高}WT2:=BACKSET(WU1,REF(BARSLAST(WLD),1)+2); WU2:=WT2>REF(WT2,1); {前二低}WT3:=BACKSET(WU2,REF(BARSLAST(WLD),1)+2); WU3:=WT3>REF(WT3,1); {前三低}WT4:=BACKSET(WU3,REF(BARSLAST(WLD),1)+2); WU4:=WT4>REF(WT4,1); {前四低}WR3:=BACKSET(WS2,REF(BARSLAST(WHD),1)+2); WS3:=WR3>REF(WR3,1); {前三高}WR4:=BACKSET(WS3,REF(BARSLAST(WHD),1)+2); WS4:=WR4>REF(WR4,1); {前四高};压力1:=DRAWLINE(WS2,H,WS1,H,1),COLOR008888; {★压力1:}支撑1:=DRAWLINE(WU2,L,WU1,L,1),COLOR008888;{★支撑1:}压力2:=DRAWLINE(WS3,H,WS2,H,1),COLOR888000; {★压力2:}支撑2:=DRAWLINE(WU3,L,WU2,L,1),COLOR888000;{★支撑2:}压力3:=DRAWLINE(WS4,H,WS3,H,1),COLOR0000CC;{★压力3:}支撑3:=DRAWLINE(WU4,L,WU3,L,1),COLOR0000CC;{★支撑3:};BSC:=CONST(MAX(BARSLAST(WS4),BARSLAST(WU4))*3),NODRAW;IF(BETWEEN(压力1,MMA,MMB),压力1,DRAWNULL),COLOR008888,LINETHICK1;IF(BETWEEN(支撑1,MMA,MMB),支撑1,DRAWNULL),COLOR008888,LINETHICK1;IF(BETWEEN(压力2,MMA,MMB),压力2,DRAWNULL),COLOR888000,LINETHICK1;IF(BETWEEN(支撑2,MMA,MMB),支撑2,DRAWNULL),COLOR888000,LINETHICK1;IF(BETWEEN(压力3,MMA,MMB),压力3,DRAWNULL),COLOR0000CC,LINETHICK1;IF(BETWEEN(支撑3,MMA,MMB),支撑3,DRAWNULL),COLOR0000CC,LINETHICK1;底:=SUM(MA(CLOSE,10),9)/11.114;DRAWTEXT(CROSS(LOW,底) AND REF(底,1)>REF(HIGH,1) OR CROSS(HIGH,底),L,'---铁底'),COLOR00FF00;X1:=(3*CLOSE+HIGH+LOW+OPEN)/6;X2:=EMA(X1,10);X3:=REF(X2,1);X4:=(REF(HIGH,1)+REF(LOW,1))/2;X5:=MA(CLOSE,21)+2*STD(CLOSE,21);X6:=REF(CLOSE,1);X7:=(SMA(MAX(CLOSE-X6,0),7,1))/(SMA(ABS(CLOSE-X6),7,1))*100;X8:=CROSS(79,X7);X9:=FILTER(X8,4);WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;DK:=SMA(WZ4,3,1)*1.5;DD:=SMA(DK,3,1);DJ:=3*DK-2*DD;WZ5:=EMA(CLOSE,12)-EMA(CLOSE,26);WZ6:=EMA(WZ5,9);WZ7:=2*(WZ5-WZ6);WZ8:=REF(WZ7,1);WZ9:=CROSS(WZ8,WZ7) AND WZ8>0;VAR1T:=EMA(CLOSE,8);VAR2T:=EMA(VAR1T,20);VAR3T:=CROSS(VAR1T,VAR2T);VAR4T:=VAR1T<MA(CLOSE,120);VAR5T:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR6T:=SMA(VAR5T,5,1);VAR7T:=SMA(VAR6T,8,1);VAR8T:=CROSS(VAR6T,VAR7T) AND VAR7T<20;VAR9T:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR8T;VARA:=IF(CLOSE>1000,VAR8T,VAR9T);起步:=VAR3T AND VAR4T;逃遁:=VARA;XL1:=EMA(CLOSE,10)/100;XL2:=MA((XL1-REF(XL1,10))/REF(XL1,10),3)*100;XL3:=MA(XL2,3);XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1); DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) AND X2>X3,LOW,'←反弹'),COLOR0000FF;DRAWTEXT(IF(CROSS((VAR1T-LLV(VAR1T,4))/(HHV(VAR1T,4)-LLV(VAR1T,4)) *4*25,87.5) AND VAR1T<40,87,0) AND X2>X3,LOW,'←短买'),COLOR0000AA; DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2 +HIGH+LOW)/4,26)-(EMA(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE* 2+HIGH+LOW)/4,26),2)))*5.8,0.47),LOW,0) AND X2>X3,LOW,'←加仓'),COLORFF5ED8;DRAWTEXT(CROSS(X4,X5),HIGH+C*0.01,'←减'),COLORB4FF00; DRAWTEXT(FILTER((WZ9 AND DJ>250) OR X9 ,5),HIGH+C*0.02,'←跑'),COLORBCFF8B;STICKLINE(起步>0,HIGH,LOW,0.8,0),COLOR00FFFF;STICKLINE(起步>0,OPEN,CLOSE,5,0),COLOR00FFFF;DRAWTEXT(逃遁>0,HIGH,'●←逃'),COLOR7FFFD6;X1P:=(C+L+H)/3;BB13:=ATAN(EMA(X1P,13)-REF(EMA(X1P,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 ANDEMA(X1P,13)>REF(EMA(X1P,8),1),10),EMA8,'∠45上升'),COLORWHITE; VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW),'★大胆搏'),COLOR00FFFF;L23:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; L24:=(HIGH+LOW+CLOSE)/3;L25:=(L24-MA(L24,14))/(0.015*AVEDEV(L24,14));L26:=(L24-MA(L24,70))/(0.015*AVEDEV(L24,70));L27:=IF(L25>=150 AND L25<200 AND L26>=150 AND L26<200,10,0);L28:=IF(L25<=-150 AND L25>-200 AND L26<=-150 AND L26>-200,-10,L27); L29:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100);L30:=IF(L29<90,L29,100);L31:=IF(L23>0,L23,0);XL11:=(IF(L28>=200 AND L25>=150,15,IF(L26<=-200 ANDL25<=-150,-15,L28)))+60;XL22:=L31>48 AND XL11>60 AND L30<100;DRAWTEXT(XL22 AND COUNT(XL22,30)=1,L,'大笔买入'),COLORFF00FF; VAR3TD:=100-3*SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))* 100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42)) *100,20,1),15,1);VAR4TD:=100-3*SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*1 00,20,1)+2*SMA(SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*1 00,20,1),15,1);VAR2TD:=VAR3TD<REF(VAR4TD,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR2TD AND COUNT(VAR2TD,30)=1,L,'大资金进场'),COLORFF00FF;DRAWTEXT_FIX(1,0,0,0,'市盈率:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.08,0,0,CONST(DYNAINFO(39))),COLORYELLOW; DRAWTEXT_FIX(1,0.16,0,0,'每股收益(元):'),COLOR0080FF; DRAWNUMBER_FIX(1,0.29,0,0,CONST(FINANCE(33))),COLOR0080FF; DRAWTEXT_FIX(1,0.36,0,0,'莸利比例:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.46,0,0,CONST(WINNER(C )*100)),COLORYELLOW; DRAWTEXT_FIX(1,0,0.05,0,'总股本(万股):'),COLORMAGENTA; DRAWNUMBER_FIX(1,0.13,0.05,0,CONST(FINANCE(1)/10000)),COLORMAGE NTA;DRAWTEXT_FIX(1,0,0.1,0,'所属板块:'),COLORYELLOW;DRAWTEXT_FIX(1,0.1,0.1,0,HYBLOCK),COLOR0080FF;DRAWTEXT_FIX(1,0.21,0.1,0,DYBLOCK),COLOR0080FF;{量能饱和}SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOU NT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);DRAWTEXT_FIX(1,0.35,0.9,0,'量能饱和度:')COLOR00FFFF; DRAWNUMBER_FIX(1,0.48,0.9,0,CONST(SAT)),COLORYELLOW;。

通达信2指标——1号主图(主图)

通达信2指标——1号主图(主图)

{布林}布林:=HHV(HHV(L,14),60);阻力区:=EMA(EMA(布林,16)-2*STD(布林,16),3);阻力区1:=EMA(EMA(布林,14)+2*STD(布林,14),18);DRAWBAND(阻力区,RGB(99,99,99),阻力区1,RGB(99,99,99));{四线开花}【4】:MA(CLOSE,250),COLORBLUE,LINETHICK3;【3】:MA(CLOSE,120),COLORCY AN,LINETHICK3;【2】:MA(CLOSE,60),COLORGREEN,LINETHICK3;【1】:MA(CLOSE,20),COLORLIRED,LINETHICK3;{神秘线}V0:=VOL*(O+C+H+L)/4;SM:EMA(V0,21)/EMA(VOL,21),COLOR987654,LINETHICK0;{量能平台突破}PT:IF(HHVBARS(V,35),REF(C,HHVBARS(V,35)),C),COLOR7F017F,LINETHICK0;{N日涨幅}N1:=BARSLAST(CROSS(C,MA(C,6)));N2:=BARSLAST(CROSS(MA(C,6),C));N:IF(N1<N2,N1+1,0),COLORBLUE,NODRAW;ZF%:(C-REF(C,N))/REF(C,N)*100,COLORRED,NODRAW;{三色K线}STICKLINE(C>=SM AND C>=O,OPEN,CLOSE,3,1),COLORRED;STICKLINE(C>=SM AND C>=O,LOW,MIN(O,C),0,1),COLORRED;STICKLINE(C>=SM AND C>=O,MAX(O,C),HIGH,0,1),COLORRED;STICKLINE(C>=SM AND C<O,C,O,3,0),COLORCY AN;STICKLINE(C>=SM AND C<O,C,O,1,0),COLORCY AN;STICKLINE(C>=SM AND C<O,L,HIGH,0,1),COLORCY AN;STICKLINE(C<SM AND C>=O,OPEN,CLOSE,3,1),COLORWHITE;STICKLINE(C<SM AND C>=O,LOW,MIN(O,C),0,1),COLORWHITE;STICKLINE(C<SM AND C>=O,MAX(O,C),HIGH,0,1),COLORWHITE;STICKLINE(C<SM AND C<O,C,O,3,0),COLORWHITE;STICKLINE(C<SM AND C<O,C,O,1,0),COLORWHITE;STICKLINE(C<SM AND C<O,L,HIGH,0,1),COLORWHITE;{立桩量}V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1); STICKLINE(V2>=1 AND OPEN<CLOSE,OPEN,CLOSE,5,1),COLORYELLOW; STICKLINE(V2>=1 AND OPEN>CLOSE,OPEN,CLOSE,5,0),COLORCYAN;{涨跌停K线}涨跌:=REF(C,1);涨停:=IF((C-涨跌)*100/涨跌>=(10-0.01*100/涨跌),1,0);STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;STICKLINE(涨停,H,L,0,0),COLORRED;跌停:=IF((涨跌-C)*100/涨跌>=(10-0.01*100/涨跌),1,0);STICKLINE(跌停,OPEN,CLOSE,4,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;{立桩量金箍}STICKLINE(V2>=1,O,(C+O)/2,6,0),COLOR003333;STICKLINE(V2>=1,O,(C+O)/2,5,0),COLOR116666;STICKLINE(V2>=1,O,(C+O)/2,4,0),COLOR229999;STICKLINE(V2>=1,O,(C+O)/2,3,0),COLOR33CCCC;STICKLINE(V2>=1,O,(C+O)/2,2,0),COLOR44FFFF;MA10:MA(CLOSE,10),COLORYELLOW,LINETHICK1;MA5:MA(CLOSE,5),COLORWHITE,LINETHICK1;{信号系统}买入1:DRAWICON(CROSS(【1】,【2】),【2】*0.98,5);买入2:DRAWICON(CROSS(【1】,【3】),【3】*0.98,5);买入3:DRAWICON(CROSS(【1】,【4】),【4】*0.98,5);买入4:DRAWICON(CROSS(【2】,【3】),【3】*0.98,9);买入5:DRAWICON(CROSS(【2】,【4】),【4】*0.98,9);买入6:DRAWICON(CROSS(【3】,【4】),【4】*0.98,135);{买入7:DRAWICON(CROSS(MA5,MA10),MA10*0.98,1);买入8:DRAWICON(CROSS(MA5,【1】),【1】*0.976,1);买入9:DRAWICON(CROSS(MA5,【2】),【2】*0.972,1);买入10:DRAWICON(CROSS(MA5,【3】),【3】*0.968,1);买入11:DRAWICON(CROSS(MA5,【4】),【4】*0.964,1);};。

通达信指标公式源码 彩色布林主图

通达信指标公式源码 彩色布林主图

{彩色布林主图}BOLL:MA(CLOSE,20),COLORRED;UPPER:BOLL+2*STD(CLOSE,20),COLOR808080,LINETHICK2;LOWER:BOLL-2*STD(CLOSE,20),COLORGREEN,LINETHICK2;BOLL1:=MA(CLOSE,65);UPPER1:BOLL1+2*STD(CLOSE,65),COLORWHITE,POINTDOT;LOWER1:BOLL1-2*STD(CLOSE,65),COLORWHITE,POINTDOT;MA5:=MA(C,N),COLORWHITE;MA18:=MA(CLOSE,18);MA13:=MA(C,M),COLORGREEN;VAR1:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);VAR2:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);A:=(3*C+L+O+H)/6;VAR4:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*R EF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*RE F(A,11)+8*REF(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))/210;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);CB:=EMA(VAR4,13);{红}STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3,0),COLOR0000FF;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;{蓝}STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3,0),COLORFF9900;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.5,0),COLORFFCC00;{粉}STICKLINE(VAR1,C,(O+C)/2,3,0),COLORFF11FF;STICKLINE(VAR1,C,(O+C)/2,0.5,0),COLORFFDDFF;{灰}STICKLINE(VAR2,C,(O+C)/2,3,0),COLOR999999;STICKLINE(VAR2,C,(O+C)/2,0.5,0),COLORFFBBFF;{绿}STICKLINE(VAR3,O,(O+C)/2,3,0),COLOR00BB00;STICKLINE(VAR3,O,(O+C)/2,0.5,0),COLOR00FF00;卖:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) ANDCROSS(MA(DX,2),DX);DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORGREEN;买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.03,'买'),COLORRED;加仓:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;DRAWTEXT(FILTER((CROSS(加仓,0) OR CROSS(CLOSE,CB)) AND 买=1,3),LOW-0.03,'加'),COLORWHITE;跟:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);DRAWTEXT(跟,LOW*0.96,'跟'),COLORCC66FF;天:=CONST(HHV(H,120))*1+0.6;地:=CONST(LLV(L,120))*1-0.6;BIAS11:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS13:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;短跌BIAS:IF(BIAS11<=-6,0.6+地,地),COLORBLACK,LINETHICK2;中跌BIAS:IF(BIAS12<=-10,0.6+地,地),COLORBLUE,LINETHICK2;长跌BIAS:IF(BIAS13<=-16,0.6+地,地),COLORRED,LINETHICK2;短涨BIAS:IF(BIAS11>=6,天,天+0.6),COLORBLACK,LINETHICK2;中涨BIAS:IF(BIAS12>=10,天,天+0.6),COLORBLUE,LINETHICK2;长涨BIAS:IF(BIAS13>=16,天,天+0.6),COLORRED,LINETHICK2;N 1,100,5M 1,100,13根据买卖提示再结合BISA和股价在布林位置,其可靠性大大增加。

通达信超好的抓牛主图指标公式【主力成本、短期底部、红牛、牛窝、老鼠仓、大胆搏、加仓、逃顶】

通达信超好的抓牛主图指标公式【主力成本、短期底部、红牛、牛窝、老鼠仓、大胆搏、加仓、逃顶】

通达信超好的抓牛主图指标公式【主力成本、短期底部、红牛、牛窝、老鼠仓、大胆搏、加仓、逃顶】A:=(3*C+L+O+H)/6;X:=(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* REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210;S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:=2*(S2-S6);主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00;IF(MA(C,3),MA(C,3),DRAWNULL),COLORYELLOW,LINETHICK2;IF(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2;IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);MA5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;V1:=EMA(CLOSE,5);V2:=EMA(EMA(CLOSE,90)*1.01,10);DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;VAR1:=LLV(LOW,21);VAR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),COLORYELLOW;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF; DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF; A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;VAR6:=REF(C,1);VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼逃顶'),COLORYELLOW;。

通达信指标公式源码 薛斯通道布林主图指标

通达信指标公式源码 薛斯通道布林主图指标

{参数D1是找大底的参数,默认60,只适用于大盘,如果想用于个股,需要单独定制调整}D1:=60;{薛斯通道1加2}N:=13;N1:=102;M:=7;VAR2:=CLOSE*VOL;VAR3:=EMA((EXPMA(VAR2,3)/EXPMA(VOL,3)+EXPMA(VAR2,6)/EXPMA(VOL,6) +EXPMA(VAR2,12)/EXPMA(VOL,12)+EXPMA(VAR2,24)/EXPMA(VOL,24))/4,N); SUP:1.06*VAR3,COLORLIGREEN;SDN:VAR3*0.94,COLORLIGREEN;VAR4:=EXPMA(CLOSE,9);LUP:EXPMA(VAR4*1.14,5),COLORCBCBFF;LDN:EXPMA(VAR4*0.86,5),COLORCBCBFF;{DRAWBAND(LUP,RGB(0,0,130),LDN,RGB(0,0,130));DRAWBAND(SUP,RGB(130,81,0),SDN,RGB(130,81,0));}{STICKLINE(1,LUP,LDN,0.1,0),COLORFAD39D;STICKLINE(1,SUP,SDN,0.1,0),COLOR005082;}DRAWBAND(LUP,RGB(31,111,181),LDN,RGB(31,111,181));DRAWBAND(SUP,RGB(157,211,250),SDN,RGB(157,211,250));AAX:=MA((2*CLOSE+HIGH+LOW)/4,5);通道1:=AAX*N1/100;{,LINETHICK2,COLORYELLOW; }通道2:=AAX*(200-N1)/100;{,LINETHICK2,COLORYELLOW; }CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);DD:=DMA(CLOSE,CC);通道3:(1+M/100)*DD;{,LINETHICK2,COLORMAGENTA;}通道4:(1-M/100)*DD;{,LINETHICK2,COLORMAGENTA;}{DRAWICON(L<=SDN AND L<=LDN AND L<=通道2 AND L<=通道4 ANDO<=C,L*0.97,1);DRAWICON(H>=SUP AND H>=LUP AND H>=通道1 AND H>=通道3,H*1.03,2);}{布林加均线加BBI}MID : MA(CLOSE,26),COLORFFFFFF,POINTDOT;UPPER: MID + 2*STD(CLOSE,26),COLORFFFFFF,POINTDOT;LOWER: MID - 2*STD(CLOSE,26),COLORFFFFFF,POINTDOT; {STICKLINE((UPPER-LOWER)<D1,LUP,LDN,10,0),COLORRED;}{大盘历史超级大底}DRAWBAND(UPPER,RGB(161,94,0),LOWER,RGB(161,94,0));MID1 : MA(CLOSE,26),COLORFFFFFF,POINTDOT;UPPER1: MID1 + 2*STD(CLOSE,26),COLORFFFFFF,POINTDOT;LOWER1: MID1 - 2*STD(CLOSE,26),COLORFFFFFF,POINTDOT;MA5:MA(CLOSE,5),COLOR0220D2;MA60:MA(CLOSE,60),COLOR00AAAA,LINETHICK2;MA120:MA(CLOSE,120),COLORFF44FF,LINETHICK3;MA250:MA(CLOSE,250),COLORFF0000,LINETHICK3;BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLOR0 0FF00;{通道31:(1+M/100)*DD,LINETHICK2,COLORMAGENTA;通道41:(1-M/100)*DD,LINETHICK2,COLORMAGENTA;}{重绘K线}DRAWKLINE(HIGH,OPEN,LOW,CLOSE);。

通达信牛暴涨主图指标公式通达信指标公式源码

通达信牛暴涨主图指标公式通达信指标公式源码

通达信⽜暴涨主图指标公式通达信指标公式源码通达信⽜暴涨主图指标公式Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;ZK1:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTL INE,COLORBLUE;ZD1:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINET HICK2,COLORRED;ZD2:EMA(ZD1,25),LINETHICK2;DRAWBAND(ZD1,RGB(55,0,0),ZD2,RGB(0,91,0));DRAWKLINE(H,O,L,C);STICKLINE(ZD1>LOW ANDZD1MIN(C,O) ANDZD1STICKLINE(ZD1>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(ZD1>HIGH,HIGH,LOW,0,0),COLORYELLOW;VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6 );回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2)); XG:=ZD1>HIGH AND 回调买AND L<=ZD1;DRAWTEXT(XG,L,'▲买⼊'),COLORRED;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN (OPEN,CLOSE)-LOW)));QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ -MIN(CLOSE,OPEN))));QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,( HIGH-MAX(OPEN,CLOSE)))); QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX (CLOSE,OPEN)-JJ))); DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA, LINETHICK;V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);V5:=SMA(V2*120/FROMOPEN*5,2,1);V10:=SMA(V5,5,1);V20:=SMA(V10,5,1);DY:=CURRBARSCOUNT=1 AND CDY2:=REF(V2,1)-DY;XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H{DRAWTEXT(XG2,L,'▲抓⽜'),COLORYELLOW;}DRAWTEXT(XG2 AND L超B:=L2_AMO(0,2)/10000.0;⼤B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;⼩B:=L2_AMO(3,2)/10000.0;超S:=-L2_AMO(0,3)/10000.0;⼤S:=-L2_AMO(1,3)/10000.0;中S:=-L2_AMO(2,3)/10000.0;⼩S:=-L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR ⼤B OR 中B OR ⼩B OR 超S OR ⼤S OR 中S OR ⼩S)!=0);净流⼊:=(超B+⼤B+中B+⼩B)+(超S+⼤S+中S+⼩S);⼤宗净流⼊:=(超B+⼤B)+(超S+⼤S);超⼤单:=(超B)+(超S);⼤单:=(⼤B)+(⼤S);中单:=(中B)+(中S);⼩单:=(⼩B)+(⼩S);⼤宗进:=(超B)+(⼤B);⼤宗出:=(超S)+(⼤S);⾮⼤宗进:=(中B)+(⼩B);⾮⼤宗出:=(中S)+(⼩S);资⾦流向:=(超B+⼤B+中B+⼩B)+(超S+⼤S+中S+⼩S);近5⽇流向:=SUM(资⾦流向,5);近10⽇流向:=SUM(资⾦流向,10);主⼒资⾦线:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/100.0,LINETHI CK2;主⼒买⼒度:=LARGEINTRDVOL*100/VOL;主⼒卖⼒度:=LARGEOUTTRDVOL*100/VOL;AAB:=CONST(MAX(ABS(超⼤单),MAX(ABS(⼤单),MAX(ABS(中单),ABS(⼩单))))),NODRAW;DRAWRECTREL(5,CONST(830-(ABS(超⼤单)*500/AAB))/2,35,460,IF(CONST(超⼤单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(40,CONST(830-(ABS(⼤单)*500/AAB))/2,70,460,IF(CONST(⼤单)>0,RGB(255,0,255),RGB(0,255,255))); DRAWRECTREL(75,CONST(830-(ABS(中单)*500/AAB))/2,105,460,IF(CONST(中单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(110,CONST(830-(ABS(⼩单)*500/AAB))/2,140,460,IF(CONST(⼩单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.007,0.46,0,'超户⼤户中户散户'),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.007,0.4,0,INTPART(超⼤单)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.4,0,INTPART(⼤单)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.076,0.4,0,INTPART(中单)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.112,0.4,0,INTPART(⼩单)),COLORWHITE;TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);筹码突破:=C>TYX3AND(C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),COLORRED;A111:=COST(85);A222:=COST(15);A333:=A111-A222;A444:=(A111+A222)/2;单峰密集:=A333/A444*100<30,LINETHICK0;{A5:=A3/A4*100<30;}B1:=HHV(HIGH,250);B2:=LLV(LOW,250);B3:=B1-B2;B4:=(A444-B2);低位:=A444<(B3*04+B2),LINETHICK0;低位单峰密集:=单峰密集AND 低位;B5:=C/REF(C,1)>1.04; {AND V/REF(V,1)>2;{ AND H=C;}主⼒持仓%:=EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),3);主⼒持仓⼤于75%:=主⼒持仓%>=75 {AND 主⼒持仓%<=91} AND C>0 AND CLOSE>OPEN AND C=H;敢死吗:=主⼒持仓⼤于75% AND 低位单峰密集AND B4 ANDWINNER(C)>=0.91 AND B5,COLORGREEN,LINETHICK3;{DRAWTEXT(FILTER(敢死吗=1,5),L,'----敢死吗'),COLORGREEN;} DRAWICON(FILTER(敢死吗=1,5),L*0.995,25);DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA1:=EMA(DIF1,9);AAA1:=(DIF1-DEA1)*2*60;AAA上:=IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL);AAA下:=IF(AAA1买:=13;⼊:=AAA1-REF(AAA1,1);正⼤:=CROSS(⼊,买);DIF2:=EMA(DCLOSE,10)-EMA(DCLOSE,72);DEA2:=EMA(DIF2,17);AAA:=(DIF2-DEA2)*2*60;⼊2:=AAA-REF(AAA,1);⽜股:=CROSS(⼊2,13);正⼤⽜股:=正⼤AND ⽜股;DRAWICON(正⼤⽜股,L*0.99,1);VAR1:=(CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*100;VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; VAR3:=SMA(VAR2,3,1);天:=100+(-ABS(VAR1)),COLORRED;下:=SMA(VAR3,2,1);⽆:=ABS(VAR1),COLORGREEN;敌:=50,COLORFFAA00,LINETHICK3;LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; 卖:=CROSS(90,操作线); DRAWICON(卖,H*1.01,8);绝底线:=5;买阴线1:操作线<5 AND ZD1>ZD2 AND LDRAWICON(买阴线1,L*0.98,7);买阴线2:操作线<5 AND ZD1DRAWICON(买阴线2,L*0.995,7);DRAWTEXT_FIX(1,0.20,0.88,0,HYBLOCK),COLORGREEN;DRAWTEXT_FIX(1,0.20,0.94,0,EXTERNSTR(0,3))COLORFF88FF;。

通达信2指标——主线画线主图(主图)

通达信2指标——主线画线主图(主图)

N:=5;主筹估算:=EMA(WINNER(C)*70,3);散筹估算:=EMA((WINNER((C)*1.1)-WINNER((C)*0.9))*70,3);筹码锁定:=散筹估算-主筹估算;动态底部:=EMA(IF(L<= LLV(L,60),SMA(ABS(L-REF(L,1)),60,1)/SMA(MAX(L-REF(L,1),0),99,1),0)*5,3);涨:=CROSS(主筹估算,筹码锁定);强:=CROSS(主筹估算,散筹估算);STICKLINE(涨,O,C,2,0),COLORYELLOW;STICKLINE(涨,O,H,0,0),COLORYELLOW;STICKLINE(涨,L,C,0,0),COLORYELLOW;STICKLINE(强, O,C,2,0),COLORMAGENTA;STICKLINE(强,O,H,0,0),COLORMAGENTA;STICKLINE(强,L,C,0,0),COLORMAGENTA;STICKLINE(筹码锁定<-50,O,C,2,0),COLORRED;STICKLINE(筹码锁定<-50,O,H,0,0),COLORRED;STICKLINE(筹码锁定<-50,L,C,0,0),COLORRED;A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);D1:=FILTER(C1,N);{高点}A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);{低点}E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;E2:=(H+L)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR CURRBARSCOUNT=1 OR BARSCOUNT(C)=1; L1:=(D2 AND NOT(D1 AND E1=E2));X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR CURRBARSCOUNT=1 OR BARSCOUNT(C)=1; H2:=D1 AND NOT(D2 AND E1>=E2);X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点}R1:=BACKSET(CURRBARSCOUNT=1,BARSLAST(HD)+1); S1:=R1>REF(R1,1); {前一高} T1:=BACKSET(CURRBARSCOUNT=1,BARSLAST(LD)+1); U1:=T1>REF(T1,1); {前一低} R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2); S2:=R2>REF(R2,1); {前二高}T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2); U2:=T2>REF(T2,1); {前二低}T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2); U3:=T3>REF(T3,1); {前三低}T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2); U4:=T4>REF(T4,1); {前四低}R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2); S3:=R3>REF(R3,1); {前三高}R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2); S4:=R4>REF(R4,1); {前四高}短期压力:DRAWLINE(S2,H,S1,H,1),COLORRED;短期支撑:DRAWLINE(U2,L,U1,L,1),COLORGREEN;中期压力:DRAWLINE(S3,H,S2,H,1),COLORYELLOW;中期支撑:DRAWLINE(U3,L,U2,L,0),COLORGREEN;长期压力:DRAWLINE(S4,H,S3,H,1),COLORWHITE;长期支撑:DRAWLINE(U4,L,U3,L,0),COLORGREEN;。

通达信指标公式源码极品主图(主图 源码)

通达信指标公式源码极品主图(主图 源码)

PT := REF(HIGH,1)-REF(LOW,1);重心:(HIGH + LOW + CLOSE)/3,NODRAW;压力Ⅰ: 2*重心-LOW,NODRAW;压力Ⅱ:重心+ PT,NODRAW;支撑Ⅰ:2*重心-HIGH,NODRAW;支撑Ⅱ: 重心- PT,NODRAW;MA5:MA(C,5),COLOR888899;MA20:MA(C,20),COLOR0099FF;MA30:MA(C,30),COLORYELLOW;MA60:MA(C,60),COLOR00FF00;MA250:MA(C,250),COLOR0099FF;AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'B'),COLORBDB76B;X1:=(C+L+H)/3;DD:=TOTALCAPITAL;SS:=FINANCE(7);GG:=FINANCE(33);TH:=DYNAINFO(39);A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L ,55))/(HHV(H,55)-LLV(L,55))*100,5,1);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'S'),COLORGREEN;双线持币:HHV(MA(HIGH,(3)),2),LINETHICK2,COLOR00FF00;单线持股:LLV(MA(HIGH,(3)),1),LINETHICK2,COLOR0000FF;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-2 0;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 ANDVAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 ANDVAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 ANDVAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.02,'大笔出货'),LINETHICK1,COLORFFCC66;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,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=60,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ; DRAWTEXT(T2=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORFF00FF ; DRAWTEXT(T3=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORFF00FF ; DRAWTEXT(T4=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORFF00FF ; DRAWTEXT(T5=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=60,AAA*0.98,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORFF00FF ; DRAWTEXT(T7=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望。

通达信二色主图指标公式

通达信二色主图指标公式

通达信二色主图指标公式通达信二色主图指标公式B1:=EMA((2*CLOSE+HIGH+LOW)/4,5);A1:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)>REF(EMA((2*CLOSE +HIGH+LOW)/4,6),1),B1,DRAWNULL),COLOR0000FF;A2:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE +HIGH+LOW)/4,6),1),B1,DRAWNULL),COLOR00FF00;B2:=EMA((2*CLOSE+HIGH+LOW)/4,13);A3:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)>REF(EMA((2*CLOS E+HIGH+LOW)/4,13),1),B2,DRAWNULL),COLOR0000FF;A4:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)<REF(EMA((2*CLOS E+HIGH+LOW)/4,13),1),B2,DRAWNULL),LINETHICK2,COLOR00FF 00;B3:=REF(EMA((LOW+CLOSE+OPEN)/3,25),1);A5:IF(EMA((LOW+CLOSE+OPEN)/3,28)>REF(EMA((LOW+CL OSE+OPEN)/3,28),1),B3,DRAWNULL),LINETHICK3,COLOR0000FF;A6:IF(EMA((LOW+CLOSE+OPEN)/3,28)<REF(EMA((LOW+CL OSE+OPEN)/3,28),1),B3,DRAWNULL),LINETHICK3,COLOR00FF00;B4:=(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2;A7:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>REF((E MA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4,DRAWNULL), POINTDOT,COLOR0000FF;A8:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2<REF((E MA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4,DRAWNULL), POINTDOT,COLOR00FF00;短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+ 15*REF(H,5)+14*REF(H,6)+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*R EF(H,11)+8*REF(H,12)+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*RE F(H,17)+2*REF(H,18)+REF(H,20))/210,COLORBLUE,LINETHICK1;短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15 *REF(L,5)+14*REF(L,6)+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF (L,11)+8*REF(L,12)+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF( L,17)+2*REF(L,18)+REF(L,20))/210,COLORBLUE,LINETHICK1;D90H:=EMA(短高H,90)-(EMA(短高H,90)-EMA(短低L,90))*0.2,COLORRED,LINETHICK1;D90L:=EMA(短低L,90)+(EMA(短高H,90)-EMA(短低L,90))*0.2,COLORRED,LINETHICK1;高0:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),LINETHICK1,COLOR WHITE;低0:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,COLORWHITE;中中中:=((XMA(XMA(H,15),15)+XMA(XMA(H,20),20)+XMA(XMA(H,3 0),30)+XMA(XMA(H,40),40))/4+(XMA(XMA(L,15),15)+XMA(XMA (L,20),20)+XMA(XMA(L,30),30)+XMA(XMA(L,40),40))/4)/2,LINET HICK0,COLORGREEN;EMA中中中:=EMA(中中中,10),LINETHICK0,COLORWHITE;A:=(3*C+L+O+H)/6;B:=(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))/210,COLORRED,LINETHICK1;D:=MA(B,10),COLORRED,LINETHICK2;D14:=MA(B,14),COLORRED,LINETHICK2;D21:=MA(B,21),COLORRED,LINETHICK2;A9:=MA((3*C+L+O+H)/6,28);B9:=(20*A9+19*REF(A1,1)+18*REF(A9,2)+17*REF(A9,3)+16* REF(A9,4)+15*REF(A9,5)+14*REF(A9,6)+13*REF(A9,7)+12*REF(A9,8)+11*REF(A9,9)+10*REF(A9,10) +9*REF(A9,11)+8*REF(A9,12)+7*REF(A9,13)+6*REF(A9,14)+5*REF(A9,15)+4*REF(A9,16)+ 3*REF(A9,17)+2*REF(A9,18)+REF(A9,12))/210,COLORGREEN,LINETHICK1;D1:=MA(B9,14),COLORGREEN,LINETHICK2;中中顶:=(XMA(XMA(H,15),15)+XMA(XMA(H,20),20)+XMA(XMA(H,30 ),30)+XMA(XMA(H,40),40))/4*2-(XMA(XMA(L,15),15)+XMA(XMA(L,20),20)+XMA(XMA(L,30),30)+ XMA(XMA(L,40),40))/4,LINETHICK2,COLORGREEN;中中底:=(XMA(XMA(L,15),15)+XMA(XMA(L,20),20)+XMA(XMA(L,30), 30)+XMA(XMA(L,40),40))/4*2-(XMA(XMA(H,15),15)+XMA(XMA(H,20),20)+XMA(XMA(H,30),30) +XMA(XMA(H,40),40))/4,LINETHICK2,COLORGREEN;短中顶:=(XMA(XMA(H,5),5)+XMA(XMA(H,8),8)+XMA(XMA(H,11),11)+XMA(XMA(H,14),14)+XMA(XMA(H,4),4))/5+((XMA(XMA(H,5),5) +XMA(XMA(H,8),8)+XMA(XMA(H,11),11)+XMA(XMA(H,14),14)+ XMA(XMA(H,4),4))/5-(XMA(XMA(L,5),5)+XMA(XMA(L,8),8)+XMA(XMA(L,11),11)+XMA (XMA(L,14),14)+XMA(XMA(L,4),4))/5)/2,LINETHICK0,COLORWHI TE;短中底:=(XMA(XMA(L,5),5)+XMA(XMA(L,8),8)+XMA(XMA(L,11),11)+ XMA(XMA(L,14),14))/4-((XMA(XMA(H,5),5)+XMA(XMA(H,8),8)+XMA(XMA(H,11),11)+X MA(XMA(H,14),14)+XMA(XMA(H,4),4))/5-(XMA(XMA(L,5),5)+XMA(XMA(L,8),8)+XMA(XMA(L,11),11)+XMA (XMA(L,14),14)+XMA(XMA(L,4),4))/5)/2,LINETHICK0,COLORWHI TE;中顶:=(XMA(XMA(H,30),30)+XMA(XMA(H,40),40)+XMA(XMA(H,50 ),50)+XMA(XMA(H,60),60))/4*2.03-(XMA(XMA(L,30),30)+XMA(XMA(L,40),40)+XMA(XMA(L,50),50)+ XMA(XMA(L,60),60))/4,LINETHICK2,COLORRED;中底:=(XMA(XMA(L,30),30)+XMA(XMA(L,40),40)+XMA(XMA(L,50), 50)+XMA(XMA(L,60),60))/4*1.97-(XMA(XMA(H,30),30)+XMA(XMA(H,40),40)+XMA(XMA(H,50),50) +XMA(XMA(H,60),60))/4,LINETHICK2,COLORRED;长顶:=(XMA(XMA(H,90),90)+XMA(XMA(H,120),120)+XMA(XMA(H, 150),150))/3*2.08-(XMA(XMA(L,90),90)+XMA(XMA(L,120),120)+XMA(XMA(L,150),1 50))/3,LINETHICK2,COLORYELLOW;长底:=(XMA(XMA(L,90),90)+XMA(XMA(L,120),120)+XMA(XMA(L,1 50),150))/3*1.92-(XMA(XMA(H,90),90)+XMA(XMA(H,120),120)+XMA(XMA(H,150) ,150))/3,LINETHICK2,COLORYELLOW;AF长:=EMA((CLOSE+HIGH+LOW)/3,18);BF长:=REF(AF长,1);AF中:=EMA((CLOSE+HIGH+LOW)/3,10);BF中:=REF(AF中,1);AF5:=EMA((CLOSE+HIGH+LOW)/3,6);BF5:=REF(AF5,1);AF3:=EMA((CLOSE+HIGH+LOW)/3,3);BF3:=REF(AF3,1);买入定位:=AF长>BF长OR AF中>BF中OR AF5>BF5 OR AF3>BF3;卖出定位:=AF长<BF长 OR AF中<BF中 OR AF5<BF5;顶底定位:=AF长<BF长OR AF中<BF中OR AF5<BF5 OR AF3<BF3;STICKLINE(买入定位=1,LOW,HIGH,0.0,1),COLORRED;STICKLINE(买入定位=1,CLOSE,OPEN,3,1),COLORRED;STICKLINE(AF中<BF中,LOW,HIGH,0.0,0),COLORGREEN;STICKLINE(AF中<BF中,CLOSE,OPEN,3,1),COLORGREEN;STICKLINE(卖出定位=1 AND 中中顶>中顶,LOW,HIGH,0.0,1),COLORGREEN;STICKLINE(卖出定位=1 AND 中中顶>中顶,CLOSE,OPEN,3,1),COLORGREEN;STICKLINE(顶底定位=1 AND H>中中顶AND H>中顶,CLOSE,OPEN,3,1),COLORGREEN;STICKLINE(顶底定位=1 AND H>中中顶AND H>中顶,LOW,HIGH,0.0,1),COLORGREEN;加仓定位1:=卖出定位=1 AND 中中顶>中顶;加仓定位2:=顶底定位=1 AND H>中中顶 AND H>中顶;DRAWTEXT(中中中<EMA中中中AND CROSS(AF中,BF中) AND 短中底<中中底AND 短中底<中底,L*0.97,'↖大牛'),COLORFF00FF;DRAWTEXT(中中中>=EMA中中中AND CROSS(AF中,BF中) AND 短中底<中中底,L*0.97,'↖黑马'),COLORFF00FF;DRAWTEXT(CROSS(BF3,AF3) AND H>中中顶AND H>中顶,H*1.03,'↙【逃】'),COLORGREEN;DRAWTEXT(加仓定位1=0 AND 加仓定位2=0 AND CROSS(AF 中,BF中) AND 中中中>=EMA中中中,L*0.995,'↖追'),COLORYELLOW;DRAWTEXT(CROSS(AF长,BF长) AND 中底<长底,L*0.97,'↖【赌】'),COLORRED;DRAWTEXT(CROSS(AF长,BF长) AND 中底<长底AND 中底>长底,L*0.97,'↖中底'),COLORYELLOW;STICKLINE(AF中>BF中AND 短中底<中底AND 短中底<中底,CLOSE,OPEN,2,0),COLORRED;DRAWTEXT(AF3>BF3 AND 短中底<中中底AND H<中中底,L*0.985,'↖骗'),COLORWHITE;STICKLINE(AF3>BF3 AND 短中底<中中底AND H<中中底,CLOSE,OPEN,2,0),COLORRED;STICKLINE(中中中>=EMA中中中AND CROSS(AF中,BF中) AND AF中<中中中AND AF中<(中顶+中底)/2 AND H<短中顶,CLOSE,OPEN,3,0),COLORRED;DRAWTEXT(中中中>=EMA中中中AND CROSS(AF中,BF中) AND AF中<中中中AND AF中<(中顶+中底)/2 AND H<短中顶,L*0.97,'↖【买】'),COLORRED;DRAWTEXT(CROSS(BF中,AF中) AND 中中中<EMA中中中,H*1.01,'↙卖'),COLORGREEN;DRAWICON(AF中<中中中 AND AF中<(中顶+中底)/2 AND H<短中顶 AND CROSS(AF中,BF中) AND 中中中<EMA中中中,L*0.99,1);。

布林趋势【主图指标】知博陋室自用主图指标

布林趋势【主图指标】知博陋室自用主图指标

布林趋势【主图指标】知博陋室自用主图指标{布林趋势【主图指标】 N1:2 100 26 M1:2 100 2}生命线:MA(C,5),COLORRED,DOTLINE;生命线辅助:=REF(生命线,1)COLORGREEN;趋势线144:MA(C,144),COLOR555555,LINETHICK1;趋势线标识:DRAWTEXT(ISLASTBAR,趋势线144,' 趋势线144'),COLOR555555; {← 趋势线144 判断是否为最后一个周期。

} {布林副图【副图指标】布林带 N:2 100 21 M:2 100 2}CV:=CLOSE;BBIBOLL:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4,CO LORLICYAN,LINETHICK2;UPR:BBIBOLL+M*STD(BBIBOLL,N)COLORYELLOW,LINETHICK 2;DWN:BBIBOLL-M*STD(BBIBOLL,N)COLORMAGENTA,LINETHICK2;{DX 牛熊【选股公式】}RSV1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;ZXK:=SMA(RSV1,3,1);牛线:=SMA(ZXK,2,1);多头信号1:DRAWICON(FILTERX(CROSS(牛线,REF(牛线,1))&&牛线<(25),25),L*0.98,7);{现价止盈、止损价位}现价:DYNAINFO(7)COLORWHITE,NODRAW;现价赚6%止盈位:REF(现价*1.06,1)COLORRED,NODRAW;现价亏3%止损位:REF(现价*0.97,1)COLORGREEN,NODRAW;{低位与高位}低位接挡:(SMA(LOW,21,2) * 0.94)NODRAW,COLORRED;高位逃遁:(SMA(HIGH,21,2) * 1.05)NODRAW,COLORGREEN;{庄家成本}A:=SUMBARS(V,CAPITAL*1);A01:=SUM(COST(10),A)/A; {在A周期里获利10%的平均价}A02:=SUM(COST(20),A)/A; {在A周期里获利20%的平均价}A03:=SUM(COST(30),A)/A; {在A周期里获利30%的平均价}A04:=SUM(COST(40),A)/A; {在A周期里获利40%的平均价}A05:=SUM(COST(50),A)/A; {在A周期里获利50%的平均价}庄家成本:(5*A01+4*A02+3*A03+2*A04+A05)/15,DOTLINE,COLORCYAN ,NODRAW;庄得利:C>=(庄家成本)COLORRED,NODRAW;庄差钱:C<(庄家成本)COLORGREEN,NODRAW;{分钟线首根K线标注}分钟线首根K 线:HOUR<REF(HOUR,1)COLOR0099FF,NODRAW;给首日标注:DRAWICON(分钟线首根K线,H*1.015,41);{名称代码所属行业及概念板块}所属行业:DRAWTEXT_FIX(1,0.02,0.01,0,'所属行业:'),COLORFF6000;行业标识:DRAWTEXT_FIX(1,0.059,0.01,0,HYBLOCK),COLORRED;地域标识:DRAWTEXT_FIX(1,0.095,0.01,0,DYBLOCK),COLORGREEN;名称代码:=STRCAT(STRCAT(STRCAT(STRCAT('名称: ',STKNAME),' 代码: '),CODE),' ' );概念板块:=STRCAT('概念板块: ',GNBLOCK);名称代码标识:DRAWTEXT_FIX(ISLASTBAR,0.14,0.01,0,STRCAT(名称代码,概念板块)),COLORYELLOW;{压力与支撑}压力均线画线:=HHV(HIGH,30),COLOR666666,DOTLINE;支撑均线画线:=LLV(LOW,30),COLOR666666,DOTLINE;压力均线30:=HHV(LOW,30),COLORFFCC00,DOTLINE;支撑均线30:=LLV(HIGH,30),COLORFFCC00,DOTLINE;向上突破:DRAWICON(FILTERX(CROSS(C,支撑均线30),10),L*0.995,1);向上突破支撑:=DRAWTEXT(FILTERX(CROSS(C,支撑均线30),10),L*0.98,' 支撑位')COLORRED;向下突破支撑:DRAWICON(FILTERX(CROSS(压力均线30,C),10),H*1.03,2);{短线——底部关注信号}买:=IF("KDJ.J"<0,10,0);条件:=CROSS(9.9,买);VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=LLV(LOW,5);VAR3:=HHV(HIGH,5);VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);MA1:=MA(VAR4,3);AA:=STICKLINE(VAR4>MA1,VAR4,MA1,3,1),COLORRED;BBB:=STICKLINE(VAR4>MA1 AND REF(VAR4,1)<30,VAR4,MA1,3,1),COLORYELLOW;标识003:=STICKLINE(VAR4<=MA1,VAR4,MA1,3,1),COLORGREEN;短线红三角标识:DRAWICON(FILTERX(CROSS(9.9,买),5),L*0.98,38)COLORLICYAN;{蓝色K线系列}标识02:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORGREEN;标识03:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORGREEN;标识04:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORGREEN;标识05:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORGREEN;标识06:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORGREEN;标识07:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORGREEN;标识08:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORGREEN;标识09:STICKLINE(CLOSE<BBIBOLL AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORGREEN;标识10:STICKLINE(CLOSE<BBIBOLL AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORGREEN;标识11:STICKLINE(CLOSE<BBIBOLL AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORGREEN;标识12:STICKLINE(CLOSE<BBIBOLL AND OPEN<CLOSE,OPEN,LOW,0,0),COLORGREEN;标识13:STICKLINE(CLOSE<BBIBOLL AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORGREEN;{红K线系列}标识14:STICKLINE(CLOSE>BBIBOLL AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;标识15:STICKLINE(CLOSE>BBIBOLL AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED;标识16:STICKLINE(CLOSE>BBIBOLL AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;标识17:STICKLINE(CLOSE>BBIBOLL AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;标识18:STICKLINE(CLOSE>BBIBOLL AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;标识19:STICKLINE(CLOSE>BBIBOLL AND 生命线辅助>REF(生命线辅助,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;标识20:STICKLINE(CLOSE>BBIBOLL AND 生命线辅助>REF(生命线辅助,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED;标识22:STICKLINE(CLOSE>BBIBOLL AND 生命线辅助>REF(生命线辅助,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;标识23:STICKLINE(CLOSE>BBIBOLL AND 生命线辅助>REF(生命线辅助,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;标识24:STICKLINE(CLOSE>BBIBOLL AND 生命线辅助>REF(生命线辅助,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;。

通达信指标——牛万能主图(主图)

通达信指标——牛万能主图(主图)

N:=250;P:=5;AA:MA(C,N),LINETHICK2,COLOR0000FF;BB:=REF(AA,1);CC:=REF(AA,2);DD:=REF(AA,3);TJ11:=BB> CC;TJ22:=FILTER(COUNT(CROSS(C,AA),21)>= 1,21);XG:=TJ11 AND TJ22 ;DRAWICON(XG,LOW*0.96,23);DRAWTEXT(XG,LOW*0.99,'金');DRAWTEXT(XG,LOW*0.98,'牛');TEND:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;WLT1:=EMA(C,3),COLORBLUE,LINETHICK1;WLT2:=EMA(C,5),COLORWHITE,LINETHICK1;WLT3:=EMA(WLT2,5),COLOR00FF00,LINETHICK1;QQ:= C< WLT2;MM:=WLT1> REF(WLT1,1) AND REF(WLT1,1)< REF(WLT1,2) ;MM0:=WLT1< REF(WLT1,1) AND REF(WLT1,1)> REF(WLT1,2) ;WL:=CROSS(WLT1,WLT2);WL1:=CROSS(WLT2,WLT1);WL2:=CROSS(WLT1,TEND);WL3:=LLV(LOW,55);WL6:=HHV(HIGH,21);WL8:=LLV(LOW,21);DRAWICON(WL AND MM AND C< WL3*1.38 AND C> WL6*0.6,LOW*0.97,23); DRAWICON(WL2 AND C> TEND AND C< WL8*1.3,LOW*0.97,23);DRAWTEXT(WL2 AND C> TEND AND C< WL8*1.3,LOW*0.97,'全'),COLORYELLOW; DRAWTEXT(WL2 AND C> TEND AND C< WL8*1.3,LOW*0.96,'仓'),COLORYELLOW; {DRAWICON(MM0 AND C>WL8*1.2,HIGH*1.03,15);}SAL:=FILTER(CROSS(TEND,C) AND C< REF(C,1) AND WLT1< REF(WLT1,1) AND C> WL8*1.2,13);{DRAWICON(CROSS(TEND,C) AND C< REF(C,1) AND WLT1 < REF(WLT1,1) AND C > WL8*1.2,HIGH*1.03,15);}DRAWICON(SAL,HIGH*1.03,15);TJ1:=WL AND MM AND C< WL3*1.38 AND C> WL6*0.8;TJ2:=WL2 AND C> TEND;TJ3:=TJ1 OR TJ2;TJ4:=COUNT(TJ3,3)=2;DRAWICON(FILTER(TJ4,3),LOW*0.95,23);STICKLINE(WL AND MM AND C< WL3*1.38 AND C> WL6*0.8,C,O,4,0),COLOR009999; STICKLINE(WL AND MM AND C< WL3*1.38 AND C> WL6*0.8,C,O,2.5,0),COLOR00BBBB;STICKLINE(WL AND MM AND C< WL3*1.38 AND C> WL6*0.8,C,O,1,0),COLOR00DDDD; STICKLINE(WL AND MM AND C< WL3*1.38 AND C> WL6*0.8,C,O,0.3,0),COLOR00FFFF;STICKLINE(WL2 AND C> TEND,C,O,4,0),COLOR000099;STICKLINE(WL2 AND C> TEND,C,O,2.5,0),COLOR0000BB;STICKLINE(WL2 AND C> TEND,C,O,1,0),COLOR0000DD;STICKLINE(WL2 AND C> TEND,C,O,0.3,0),COLOR0000FF;STICKLINE(MM0 AND C> WL8*1.2,C,O,4,0),COLOR990000;STICKLINE(MM0 AND C> WL8*1.2,C,O,2.5,0),COLORBB0000;STICKLINE(MM0 AND C> WL8*1.2,C,O,1,0),COLORDD0000;STICKLINE(MM0 AND C> WL8*1.2,C,O,0.3,0),COLORFF0000;DRAWBAND(WLT1,RGB(255,255,0),WLT2,RGB(256,200,0));。

趋势布林线主图指标公式

趋势布林线主图指标公式

趋势布林线主图指标公式通达信趋势布林线主图指标公式源码如下:N:=5;C增比:=C/REF(C,1);C均增比:=(C增比+REF(C增比,1)+REF(C增比,2)+REF(C增比,3)+REF(C增比,4))/5;YC:=C*C均增比;强弱:=COUNT(YC>REF(YC,1),10)/COUNT(YC<REF(YC,1),10); A:=EMA(EMA(EMA(EMA(强弱,2),2),2),2);B:=EMA(EMA(EMA(EMA(强弱,5),5),5),5);快线红:EMA(EMA(EMA(EMA(YC,2),2),2),2),COLORRED,LINETHICK 2;慢线绿:EMA(EMA(EMA(EMA(YC,5),5),5),5),COLORGREEN,LINETHI CK2;STICKLINE(快线红>慢线绿,快线红,慢线绿,1,0),COLORRED; STICKLINE(快线红1.095,C,O,2,0),COLORYELLOW;UP:BOLL+2*STD(CLOSE,20),COLORGREEN;LO:BOLL-2*STD(CLOSE,20),COLORCYAN;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2); VAR2:=REF(VAR1,1) AND CLOSEREF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>REF(CLOSE,1) AND CLOSEREF(CLOSE,1) AND CLOSEREF(CLOSE,1) AND CLOSEREF(CLOSE,1) AND CLOSEREF(CLOSE,1) AND CLOSEREF(CLOSE,1) AND CLOSEREF(CLOSE,1) AND CLOSEREF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 ORVAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD; MTM:=C-REF(C,1);DX1:=100*EMA(EMA(MTM,N),N)/EMA(EMA(ABS(MTM),N),N );买1:=IF(LLV(DX1,2)=LLV(DX1,7) AND COUNT(DX150,2) AND CROSS(MA(DX1,2),DX1),1,0);DRAWTEXT(FILTER(卖1=1,5),HIGH*1.02, ' '),COLOR00FF00; DRAWTEXT(FILTER(买1=1,5),LOW*0.99, ' '),COLORRED; DRAWICON(FILTER(买1=1,5),LOW*0.99,7);DRAWICON(FILTER(卖1=1,5),HIGH*1.04, 8);。

布林K线变色主图通达信指标公式源码

布林K线变色主图通达信指标公式源码
STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;
STICKLINE(BB AND CC,H,L,0,1),COLORWHITE;
STICKLINE(BB AND CC,O,C,3,1),COLORWHITE;
STICKLINE(BB AND CC AND DD,O,C,3,0),COLORWHITE;
本指标不需要我再作说明,如果作说明那就是画蛇添足了,你安装完打开后,指标的界面就显EMA(C,10),10),COLORBLUE,LINETHICK3;
B:=主趋势线<REF(主趋势线,1);
IF(B-1,主趋势线,DRAWNULL)COLORRED,LINETHICK3;}
UB:BOLL+2*STD(CLOSE,M);
LB:BOLL-2*STD(CLOSE,M);
AAA:=CONST(HHV(C,90));
{DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA,'智能分析:目前处于红色买区,上涨趋势良好,多单持有。'),COLORRED,LINETHICK4;}
STICKLINE(AA,H,L,0,0),COLORRED;
STICKLINE(AA,O,C,3,1),COLORRED;
STICKLINE(AA AND DD,O,C,3,0),COLORRED;
STICKLINE(BB,H,L,0,0),COLORGREEN;
STICKLINE(BB,O,C,3,1),COLORGREEN;
STICKLINE(AA AND CC1,H,L,0,0),COLORWHITE;
STICKLINE(AA AND CC1,O,C,3,1),COLORWHITE;
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

N:=250;MA04:MA(CLOSE,3),COLORFF00FF;MA21:=MA(C,21);牛:=MA21+2*STD(C,21);熊:=MA21-2*STD(C,21);HRY:REF(MA04,1);DRAWBAND(MA04,RGB(155,50,50),HRY,RGB(0,100,50));黄底:=(SMA(HIGH,19,3) * 1);{STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3,0),COLORFF7B00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),COLORFF9C00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.6,0),COLORFFBE00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,0.8,0),COLORFFCC00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,0.3,0),COLORFFFF00;} {STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),COLOR0000AA; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),COLOR0000CC; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),COLOR0000DD; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,0.3,0),COLOR0000FF;} {STICKLINE((CLOSE > OPEN),OPEN,LOW,0,0),COLOR0726CA;STICKLINE((CLOSE > OPEN),CLOSE,HIGH,0,0),COLOR0726CA; STICKLINE((OPEN > CLOSE),CLOSE,LOW,0,0),COLORDE9100;STICKLINE((OPEN > CLOSE),OPEN,HIGH,0,0),COLORDE9100;} STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 黄底)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,4,0),COLOR009FFF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 黄底)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,2,0),COLOR00B5FF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 黄底)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,1,0),COLOR00E4FF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 黄底)) AND ((CLOSE - REF(CLOSE,1)) > 0)),OPEN,LOW,0.7,0),COLOR00FFFF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 黄底)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,HIGH,0.3,0),COLOR00FFFF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 黄底)) AND (CLOSE < 黄底)),OPEN,LOW,0.3,0),COLOR00FF00; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 黄底)) AND (CLOSE < 黄底)),CLOSE,HIGH,0.3,0),COLOR00FF00; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 黄底)) AND (CLOSE < 黄底)),CLOSE,OPEN,3,0),COLOR009900; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 黄底)) AND (CLOSE < 黄底)),CLOSE,OPEN,2,0),COLOR00BB00; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 黄底)) AND (CLOSE < 黄底)),CLOSE,OPEN,1,0),COLOR00DD00; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 黄底)) AND (CLOSE < 黄底)),CLOSE,OPEN,0.3,0),COLOR00FF00;V AR0:=SMA(MAX(C-REF(C,2),0),8,1)/SMA(ABS(C-REF(C,2)),8,1)*100;黄金区: DRAWICON(IF(V AR0<15,15,0),LOW*0.98,1),COLORWHITE;X1:=(C+L+H)/3;BB5:=A TAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;EMA3:=EMA(C,3);DRAWTEXT(FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10),LOW*0.99,'★∠45'),COLORFFFFFF;M1:=3;M2:=5;M3:=8;M4:=13;M5:=15;M6:=20;{众星主图……一阳穿六线}MA1:=MA(C,M1);MA2:=MA(C,M2);MA3:=MA(C,M3);MA4:=MA(C,M4);MA5:=MA(C,M5);MA6:=MA(C,M6);PBX1:=(EXPMA(CLOSE,M1)+MA(CLOSE,M1*2)+MA(CLOSE,M1*4))/3;PBX2:=(EXPMA(CLOSE,M2)+MA(CLOSE,M2*2)+MA(CLOSE,M2*4))/3;PBX3:=(EXPMA(CLOSE,M3)+MA(CLOSE,M3*2)+MA(CLOSE,M3*4))/3;PBX4:=(EXPMA(CLOSE,M4)+MA(CLOSE,M4*2)+MA(CLOSE,M4*4))/3;PBX5:=(EXPMA(CLOSE,M5)+MA(CLOSE,M5*2)+MA(CLOSE,M5*4))/3;PBX6:=(EXPMA(CLOSE,M6)+MA(CLOSE,M6*2)+MA(CLOSE,M6*4))/3;AAA:=MIN(MIN(MIN(MIN(MIN(PBX1,PBX2),PBX3),PBX4),PBX5),PBX6);BBB:=MAX(MAX(MAX(MAX(MAX(PBX1,PBX2),PBX3),PBX4),PBX5),PBX6);选股:=OBBB;DRAWICON(选股,LOW,23);STICKLINE(选股,C,O,4,0)COLOR000099;STICKLINE(选股,C,O,2,0)COLOR0000BB;STICKLINE(选股,C,O,1,0)COLOR0000DD;STICKLINE(选股,C,O,0.3,0)COLOR0000FF;{}中:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORFF00FF,LINETHICK1;上: BBI+3*STD(BBI,10),COLOR00FF00;下: BBI-3*STD(BBI,10),COLOR0000FF;安全:=MA(C,30),CIRCLEDOT,COLORFF00FF;TJ1:=下*1.05>中AND 中*1.05>上AND 中>=REF(中,1) AND REF(中,1)>=REF(中,2); TJ2:=LLV(REF(VOL,1),60);V AR91:=REF(V,1)+REF(V,2)+REF(V,3)+REF(V,4)+REF(V,5);V AR92:=V AR91/5;LB:=V/V AR92;TJ3:=LB>2 OR VOL/REF(VOL,1)>2;TJ4:=CXG:=TJ1 AND TJ3 AND TJ4;DRAWICON(XG,LOW*0.96,23);STICKLINE(XG,C,O,4,0),COLOR990099;STICKLINE(XG,C,O,2,0),COLORBB00BB;STICKLINE(XG,C,O,1,0),COLORDD00DD;STICKLINE(XG,C,O,0.3,0),COLORFF00FF;水平面:=EMA(CLOSE,89),COLOR3399FF;AAA0:=(3*C+H+L+O)/6;短趋:=(8*AAA0+7*REF(AAA0,1)+6*REF(AAA0,2)+5*REF(AAA0,3)+4*REF(AAA0,4)+3*REF( AAA0,5)+2*REF(AAA0,6)+REF(AAA0,8))/36;中趋:=(LLV(短趋,2)+LLV(短趋,4)+LLV(短趋,6))/3;TTJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>短趋;立桩量:=FILTER(TTJ1,5);TTJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0))); 突破:=TTJ2=1;TTJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法则:=TTJ3=1;成立:=三天法则AND 突破;条件成立:=FILTER(成立,3);DRAWICON(条件成立,L*0.91,1);DRAWTEXT(条件成立,L*0.91,'立桩'),COLORFF26FF;AA:=MA(C,N),LINETHICK2,COLOR0000FF;BB:=REF(AA,1);CC:=REF(AA,2);DD:=REF(AA,3);TJ11:=BB>CC;TJ22:=FILTER(COUNT(CROSS(C,AA),21)>=1,21);XGC:=TJ11 AND TJ22 ;DRAWICON(XGC,LOW*0.96,23);DRAWTEXT(XGC,LOW*0.99,'金')COLOR00FFFF;DRAWTEXT(XGC,LOW*0.98,'牛')COLOR00FFFF;AA0:=IF((CLOSE>REF(CLOSE,1)),88,0);AB0:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (AA0>0),91,0);DRAWTEXT(FILTER((AB0>90),34),(LOW)*(0.92),'TP');E1:=BARSCOUNT(C);AH:=HHV(H,250);AL:=LLV(L,250);B0:=(AH-AL)/40;KB1:=H+B0;KB2:=L-B0;STICKLINE((E1+0)/34=FLOOR((E1+0)/34),KB2,KB2-0.8*B0,1,0),COLORYELLOW,LINETHI CK3;DRAWTEXT((E1+0)/34=FLOOR((E1+0)/34),KB2-B0,'时'),COLORFFFFFF;DRAWTEXT((E1+0)/34=FLOOR((E1+0)/34),(KB2-B0)*0.96,'窗'),COLORFFFFFF;。

相关文档
最新文档