通达信牛熊主图公式
通达信擒牛绝技主图指标公式
通达信擒牛绝技主图指标公式STICKLINE(CROSS(MA(C,5),MA(C,60)),O,C,1,0),COLORYELLO W;STICKLINE(CROSS(MA(C,5),MA(C,60)),O,C,1,0),COLORYELLO W;DRAWICON((MA(C,4)*4+MA(C,60))/5>=MA(C,60) AND MA(C,5)<MA(C,60),L*0.97,1);Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,FGBLOCK);Z3:=STRCAT(Z2,DYBLOCK);Z4:=STRCAT(Z3,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z4,GNBLOCK)),CO LORCYAN;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);D RAWTEXT(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;N:=5;A1:=BACKSET(ISLASTBAR,PEAKBARS(1,N,1)+1);A2:=A1>REF(A1,1);B1:=BACKSET(ISLASTBAR,PEAKBARS(1,N,2)+1);B2:=B1>REF(B1,1);C1:=BACKSET(ISLASTBAR,PEAKBARS(1,N,3)+1);C2:=C1>REF(C1,1);A11:=BACKSET(ISLASTBAR,TROUGHBARS(2,N,1)+1);A21:=A11>REF(A11,1);B11:=BACKSET(ISLASTBAR,TROUGHBARS(2,N,2)+1);B21:=B11>REF(B11,1);C11:=BACKSET(ISLASTBAR,TROUGHBARS(2,N,3)+1);C21:=C11>REF(C11,1);①:DRAWLINE(B2,H,A2,H,0),COLORBLUE;②:DRAWLINE(C2,H,B2,H,0),COLORCC6633;③:IF(A1,PEAK(1,N,1),DRAWNULL),COLORFFAA00;④:DRAWLINE(C2,H,A2,H,0),COLORLIBLUE;⑤:DRAWLINE(B21,L,A21,L,0),COLORYELLOW;⑥:DRAWLINE(C21,L,B21,L,0),COLORFF00FF;⑦:DRAWLINE(C21,L,A21,L,0),COLORBROWN;⑧:IF(A11,TROUGH(2,N,1),DRAWNULL),COLORRED;T1:=CONST(HHVBARS(V,N));T0:IF(CURRBARSCOUNT<=N+7,CONST(IF(T1=0,C,REF(C,T1)) ),DRAWNULL);IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT;DRAWTEXT(ISLASTBAR,T0,' 量能平台');A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;A5:=EMA(CLOSE,12)-EMA(CLOSE,26);A6:=EMA(A5,9);A7:=(A5<-0.1 AND A5>A6);财神:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLEDOT;AA:=CYS;MIDD:=MA(CYS,20);CC:=MIDD+0.85*STD(CYS,10);TM6:=AA>CC;A0:=(L+H+C*2)/4;工作:=EMA(A0,14)COLORYELLOW,LINETHICK1;度假:=EMA(A0,25)COLORYELLOW,LINETHICK1;A1X:=(工作-REF(工作,1))/REF(工作,1)*100;A2X:=(度假-REF(度假,1))/REF(度假,1)*100;G:=BARSLAST(CROSS(A1X,0));MA(CLOSE,20);V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);豆豆:=C;HD:=FILTER(C1,10);LD:=FILTER(C2,10);A:=REF(C,BARSLAST(HD)); B:=REF(L,BARSLAST(LD));T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);压力:IF(T1,A,A),COLORYELLOW,POINTDOT,LINETHICK3;支撑:IF(T2,B,B),COLORGREEN,POINTDOT,LINETHICK3;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),'顶背离'),COLOR1880FF;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);。
通达信指标公式源码 牛股主图指标
价量:=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;。
【股票指标公式下载】-【通达信】大牛主图(牛熊线、底背离、操盘)
【股票指标公式下载】-【通达信】大牛主图(牛熊线、底背离、操盘)【通达信】大牛主图(牛熊线、底背离、操盘)-指标公式源码MA5:=EMA(C,5);MA13:=EMA(C,13);牛熊线:MA(C,55),COLORRED,COLOR0099FF;UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1) ,LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1) ,HHV(H,BARSLAST(C ROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA1 3))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1 ),LLV(L,BARSLAST (CROSS(MA13,MA5))+1),0),COLOR00FF00;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);TJ2:=REF(DOWN,1)REF(DOWN,1) AND C<hry33;< p="">TJ1:=REF(DOWN,1)REF(DOWN,1) AND CDRAWICON(FILTER(TJ2=1,5),HIGH*1.03,25);AA:=(3*CLOSE+LOW+OPEN+HIGH)/6;MID:=3*MA(AA,1)-2*MA(AA,1);DKX:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3 )+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+1 1*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13) +6*REF(MID,14 )+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20) )/210,COLOR3A504D,LINETHICK2;A1:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,3 0))/(HHV(H,30)-LLV(L,30))*100,5);A2:=LLV(L,21);A3:LLV(L,30),COLOR3A504D,LINETHICK1;A4:=EMA(A1,5);A5:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);LZ1:=(DIFF<-0.1 AND DIFF>DEA);LZM:=CROSS(A1,A4)AND (A5-A4)>40 AND LZ1;STICKLINE( LZ1,A3,A3*1.03,1,0),COLOR3A504D;STICKLINE(CROSS(A1,A4) AND (A5-A4)>40 ANDLZ1 ,A3,A3*1.04,1,0),COLORYELLOW;LC2:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC2),0),3,1) / SMA(ABS((CLOSE - LC2)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(FF,MA15),(LOW * 0.965),'底背离'),COLOR3A504D;CPS:=EMA(C,26);VAR12:=(C-REF(C,2))/REF(C,2)*100;DRAWTEXT(CROSS(C,CPS) AND VAR12>5,L*0.965,'操盘'),COLORFF0080,LINETHICK1;工作:=CROSS(C,EMA(C,14)) AND C>REF(C,1)*1.03 AND C>AMOUNT/100/V AND REF(V,3)<=REF(V,30)*1.1 AND SUM(VOL*100/CAPITAL,50)>=100AND BETWEEN(V/CAPITAL,0.01,0.08)ANDBETWEEN(C/REF(C,20)/(INDEXC/REF(INDEXC,20)),0.95,1.1); DRAWTEXT(工作=1,LOW *0.998,'工作点'),COLOR00DDFF;【通达信】大牛主图(牛熊线、底背离、操盘)-指标公式效果图(文档来源:若水财经社区)</hry33;<>。
牛熊变线通达信指标公式源码
M60:=MA(C,60);M120:=MA(C,120);DRAWBAND(M60,RGB(90,0,0),M120,RGB(0,90,0));{牛熊变线}变线:=EMA(MA(CLOSE,30),5),LINETHICK0;{20 或30 或35}STICKLINE(C>=变线AND C>=O,H,L,0,0),COLORRED;STICKLINE(C>=变线AND C>=O,C,O,2.7,1),COLORRED;STICKLINE(C>变线AND C<=O,H,L,0,1),COLORCYAN;STICKLINE(C>变线AND C<=O,C,O,3,0),COLORCYAN;STICKLINE(C<变线AND C<=O,H,L,0,1),COLORCYAN;STICKLINE(C<变线AND C<=O,C,O,3,0),COLORCYAN;STICKLINE(C<变线AND C<=O,H,L,0,1),COLORGRAY;STICKLINE(C<变线AND C>O,H,L,0,1),COLORGRAY;STICKLINE(C<变线AND C>O,C,O,3,1),COLORGRAY;STICKLINE(C<变线AND C<=O,C,O,3,1),COLORGRAY;{分水岭操作线}PM:MA(C,5),COLORGRAY,LINETHICK1;{可用13}IF(PM<REF(PM,1),PM,DRAWNULL),COLORGRAY,LINETHICK0;IF(PM>=REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;A:=MA(CLOSE,12)+ABS(MA(CLOSE,12)-REF(MA(CLOSE,12),1));{原公式为17,最终确定为12}B:=MA(CLOSE,12)+MA(CLOSE,12)-REF(MA(CLOSE,12),1);分水岭:=IF(MA(CLOSE,12)<B,B,MA(CLOSE,12));操作线:=分水岭-(EMA(C,3)-分水岭);AA:=CROSS(分水岭,操作线);STICKLINE(AA,C,O,3,0),COLOR0000AA;STICKLINE(AA,C,O,2,0),COLOR0033CC;STICKLINE(AA,C,O,1,0),COLOR0055EE;STICKLINE(AA,C,O,0.3,0),COLOR0099FF;STICKLINE(AA,H,L,0,1),COLOR0099FF;RR:=CROSS((MA(VOL,5)),(MA(VOL,10))) AND MA(C,2)>=MA(C,4); {ANDVOL>=REF(VOL,1)}STICKLINE(RR,C,O,3,0),COLOR0000AA;STICKLINE(RR,C,O,2,0),COLOR0033CC;STICKLINE(RR,C,O,1,0),COLOR0055EE;STICKLINE(RR,C,O,0.3,0),COLOR0099EE;STICKLINE(RR,H,L,0,1),COLOR0099FF;MAA5:MA(CLOSE,5),NODRAW;{MAA10:MA(CLOSE,10),COLORCC66FF;MAA20:MA(CLOSE,20),COLORFFCC66;}MA60:MA(CLOSE,60),COLOR00FF99,LINETHICK2;MA120:MA(C,120),COLORGRAY;DRAWTEXT(CROSS(MA60,MA120),MA60,'牛'),COLORYELLOW,LINETHICK4; DRAWTEXT(CROSS(MA120,MA60),MA60,'熊'),COLORWHITE,LINETHICK2;N1:=3;N2:=6;N3:=12;N4:=24;BBI:(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4,COLORMAGENT A,LINETHICK2;BB:=BBI<REF(BBI,1);IF(BB,BBI,DRAWNULL)COLORGREEN,LINETHICK2;DRAWTEXT("KDJ.J"-REF("KDJ.J",1)>30 AND C/REF(C,1)>1.043AND EXPMA(C,12)>EXPMA(C,50),L*0.95,'起爆'),COLORRED;星板:=ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03&&CLOSE/OPEN>1.03&&CLOSE>REF(CLOSE,2) AND C/REF(C,1)>1.071;DRAWTEXT(星板,L*0.950,'主升'),COLORMAGENTA;DRAWICON(星板,L*0.97,1);A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买K:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买K=1,5),LOW-0.05,'↖买进'),COLORYELLOW;STICKLINE(买K,OPEN,CLOSE,2,0),COLORYELLOW;流通市值:C*FINANCE(7)/100000000,COLORYELLOW,NODRAW;DRAWTEXT_FIX(ISLASTBAR,0.005,0.005,0,FGBLOCK),COLORWHITE;DRAWTEXT_FIX(ISLASTBAR,0.005,0.1,0,HYBLOCK),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.005,0.2,0,DYBLOCK),COLORWHITE;DRAWTEXT_FIX(ISLASTBAR,0.005,0.3,0,GNBLOCK),COLORWHITE;DIF:=EMA(CLOSE,8)-EMA(CLOSE,13);DEA:=EMA(DIF,6);MACD:=2*(DIF-DEA);金叉:=CROSS(DIF,DEA); 死叉:=CROSS(DEA,DIF);DIF下拐:=REF(DIF,3)<REF(DIF,2)AND REF(DIF,2)<REF(DIF,1)ANDREF(DIF,1)>DIF=REF(DIF,1);MACD下拐:=REF(DIF,3)<REF(DIF,2)AND REF(MACD,2)<REF(MACD,1)ANDREF(MACD,1)>MACD=REF(MACD,1);下拐:=MAX(DIF下拐,MACD下拐);GD1:=EVERY(DIF>REF(DIF,1),BARSLASTCOUNT(DIF>DEA))AND DIF>DEA;GD2:=EVERY(MACD>REF(MACD,1),BARSLASTCOUNT(DIF>DEA))AND DIF>DEA; GD:=MAX(GD1,GD2);高点1:=REF(MAX(C,O),BARSLAST(GD1)+1);高点2:=REF(MAX(C,O),BARSLAST(GD2)+1);高点:=IF(高点2>=高点1,高点2,高点1);AA1:=HHV(IF(C>O,C,MAX(C,O)),BARSLASTCOUNT(高点)+1)=HHV(IF(C>O,C,MAX(C,O)),BARSLASTCOUNT(BBI>REF(BBI,1)AND C>BBI));压力:DRAWLINE(BARSLAST(AA1)=0,IF(C>O,C,MAX(C,O)),BARSNEXT(AA1),REF(IF(C>O,C, MAX(C,O)),BARSLAST(AA1)),1),DOTLINE,COLORYELLOW;。
牛熊角度线通达信指标公式源码
{通达信153牛熊角度线主图指标公式}N:=BARSSINCEN(L=LLV(L,60),20);压力线1:=HHV(H,60);支撑线1:=CONST(LLV(C,120));A18:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)/8+支撑线1,DRAWNULL),COLORBLUE;A26:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)*2/8+支撑线1,DRAWNULL),COLORLIRED;A45:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)*3/8+支撑线1,DRAWNULL),COLORRED;A63:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)*4/8+支撑线1,DRAWNULL),COLORBROWN;A71:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)*5/8+支撑线1,DRAWNULL),COLORBROWN;A75:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)*6/8+支撑线1,DRAWNULL),COLORBROWN;A82:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)*7/8+支撑线1,DRAWNULL),COLORBROWN;A90:压力线1,COLORBROWN;A0:支撑线1,COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=10,A45*0.99,'A45红线为牛熊关口,上穿看多,下穿看空'),COLORMAGENTA;反弹线:CONST(压力线1/3);M5:=MA(C,5),COLORWHITE;IF(CODELIKE('000622'),5.50,DRAWNULL);STICKLINE(A90>REF(A90,1),A90,A0,0,-1),COLORRED;DRAWKLINE(H,O,L,C);。
通达信顶底分型主图指标公式
通达信顶底分型主图指标公式重心线:(H+L+O+C*3)/6;NX:=(3*CLOSE+LOW+OPEN+HIGH)/6;牛线:(20*NX+19*REF(NX,1)+18*REF(NX,2)+17*REF(NX,3)+16*REF( NX,4)+15*REF(NX,5)+14*REF(NX,6)+13*REF(NX,7)+12*REF(NX,8) +11*REF(NX,9)+10*REF(NX,10)+9*REF(NX,11)+8*REF(NX,12)+7*REF(NX,13 )+6*REF(NX,14)+5*REF(NX,15)+4*REF(NX,16)+3*REF(NX,17)+2*REF(NX,18)+REF(NX,20))/210;牛熊线:MA(牛线,6),COLORGREEN,LINETHICK2;顶:=BBI+3*STD(BBI,13),COLOR004AFF;底:=BBI-3*STD(BBI,13),COLOR67FF00;KU1:=IF(HIGH=HHV(HIGH,3),1,0);KD1:=IF(LOW=LLV(LOW,3),1,0);UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0ANDKU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0ANDKD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1AND REF(KD1,1)=0 AND KD1=0)));HV:=H>UL AND H>REF(H,1);LV:=L<DL AND L<REF(L,1);GP:=BARSLAST(HV);DP:=BARSLAST(LV);IP:=IF(GP=0,DP,GP)>3;HHV1:=HV AND IP AND H>=HHV(H,BARSLAST(LV));LV1:=LV AND IP AND L<=LLV(L,BARSLAST(HV));V00:=HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);V01:=HIGH<REF(HIGH,1) AND LOW>REF(LOW,1);V02:=HIGH>REF(HIGH,1) AND LOW<REF(LOW,1);V03:=HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);V04:=REF(HIGH,2)<HIGH AND REF(LOW,2)<LOWAND REF(HIGH,2)>REF(HIGH,1) AND REF(LOW,2)<REF(LOW,1);V1:=COUNT(V00,6)>=3 AND COUNT(V01 OR V02,5)=0 AND LLVBARS(LOW,6)=1 AND HHVBARS(HIGH,6)>=5 AND V03;V2:=COUNT(V00,7)>=3 AND COUNT(V01 OR V02,6)=1 AND LLVBARS(LOW,7)=2 AND HHVBARS(HIGH,7)>=6 AND V04;V3:=COUNT(V00,7)>=3 AND COUNT(V01 OR V02,6)=1 AND LLVBARS(LOW,7)=1 AND HHVBARS(HIGH,7)>=6 AND V03;V4:=COUNT(V00,8)>=3 AND COUNT(V01 OR V02,7)<=2 AND LLVBARS(LOW,8)=2 AND HHVBARS(HIGH,8)>=7 AND V04;V5:=COUNT(V00,8)>=3 AND COUNT(V01 OR V02,7)<=2 AND LLVBARS(LOW,8)=1 AND HHVBARS(HIGH,8)>=7 AND V03;V6:=COUNT(V00,9)>=3 AND COUNT(V01 OR V02,8)<=3 AND LLVBARS(LOW,9)=2 AND HHVBARS(HIGH,9)>=8 AND V04;V7:=COUNT(V00,9)>=3 AND COUNT(V01 OR V02,8)<=3 AND LLVBARS(LOW,9)=1 AND HHVBARS(HIGH,9)>=8 AND V03;V8:=COUNT(V00,10)>=3 AND COUNT(V01 OR V02,9)<=4AND LLVBARS(LOW,10)=2 AND HHVBARS(HIGH,10)>=9 AND V04;V9:=COUNT(V00,10)>=3 AND COUNT(V01 OR V02,9)<=4 AND LLVBARS(LOW,10)=1 AND HHVBARS(HIGH,10)>=9 AND V03;V10:=COUNT(V00,11)>=3 AND COUNT(V01 OR V02,10)<=5 AND LLVBARS(LOW,11)=2 AND HHVBARS(HIGH,11)>=10 AND V04;XG:=V1 OR V2 OR V3 OR V4 OR V5 OR V6 OR V7 OR V8 OR V9 OR V10;HV00:=HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);HV01:=HIGH<REF(HIGH,1) AND LOW>REF(LOW,1);HV02:=HIGH>REF(HIGH,1) AND LOW<REF(LOW,1);HV03:=HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);HV04:=REF(HIGH,2)>HIGH AND REF(LOW,2)>LOW AND REF(HIGH,2)>REF(HIGH,1) AND REF(LOW,2)<REF(LOW,1);HV1:=COUNT(HV00,6)>=3 AND COUNT(HV01 OR HV02,5)=0 AND HHVBARS(HIGH,6)=1 AND LLVBARS(LOW,6)>=5 AND HV03;HV2:=COUNT(HV00,7)>=3 AND COUNT(HV01 OR HV02,6)=1 AND HHVBARS(HIGH,7)=2 AND LLVBARS(LOW,7)>=6 AND HV04;HV3:=COUNT(HV00,7)>=3 AND COUNT(HV01 OR HV02,6)=1 AND HHVBARS(HIGH,7)=1 AND LLVBARS(LOW,7)>=6 AND HV03;HV4:=COUNT(HV00,8)>=3 AND COUNT(HV01 OR HV02,7)<=2 AND HHVBARS(HIGH,8)=2 AND LLVBARS(LOW,8)>=7 AND HV04;HV5:=COUNT(HV00,8)>=3 AND COUNT(HV01 OR HV02,7)<=2 AND HHVBARS(HIGH,8)=1 ANDLLVBARS(LOW,8)>=7 AND HV03;HV6:=COUNT(HV00,9)>=3 AND COUNT(HV01 OR HV02,8)<=3 AND HHVBARS(HIGH,9)=2 AND LLVBARS(LOW,9)>=8 AND HV04;HV7:=COUNT(HV00,9)>=3 AND COUNT(HV01 OR HV02,8)<=3 AND HHVBARS(HIGH,9)=1 AND LLVBARS(LOW,9)>=8 AND HV03;HV8:=COUNT(HV00,10)>=3 AND COUNT(HV01 OR HV02,9)<=4 AND HHVBARS(HIGH,10)=2 AND LLVBARS(LOW,10)>=9 AND HV04;HV9:=COUNT(HV00,10)>=3 AND COUNT(HV01 OR HV02,9)<=4 AND HHVBARS(HIGH,10)=1 AND LLVBARS(LOW,10)>=9 AND HV03;HV10:=COUNT(HV00,11)>=3 AND COUNT(HV01 OR HV02,10)<=5 AND HHVBARS(HIGH,11)=2 AND LLVBARS(LOW,11)>=10 AND HV04;HXG:=HV1 OR HV2 OR HV3 OR HV4 OR HV5 OR HV6 OR HV7 OR HV8 OR HV9 OR HV10;底分型:FILTER(XG=1,5) AND 重心线<10.5 AND 牛线<12 AND 牛熊线<10.2,COLORYELLOW,NODRAW;顶分型:FILTER(HXG=1,3),NODRAW;DRAWBAND(BBI,RGB(97,95,00),顶,RGB(97,95,00));DRAWBAND(BBI,RGB(25,75,150),底,RGB(25,75,250));DRAWTEXT_FIX(1,0.02,0,0,'☆微信公众号:({更多指标关注微信公众号:爱指标源码}) ☆'),COLORRED;{用DRAWLINE函数(属于未来函数)绘制直线段,不喜欢的可以删除下面两句公式}DRAWLINE(LV1,LOW,HHV1,HIGH,0),COLORYELLOW,LINETHI CK2;DRAWLINE(HHV1,HIGH,LV1,LOW,0),COLORMAGENTA,LINETHICK2;STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,1),COLORRED;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR00 0055;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR 000077;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR 000099;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR 0000BB;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR 0000DD;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR 0000FF;STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,1),COLORWHI TE;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR55 5555;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR 777777;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR 999999;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR BBBBBB;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR DDDDDD;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORF FFFFF;STICKLINE(CLOSE<REF(CLOSE,1),HIGH,LOW,0,1),COLORCYA N;STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR99 0000;STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR CC0000;STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLORF F4400;STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORF F8800;STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORF FCC00;STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR CYAN;DRAWTEXT(FILTER(XG=1,5) AND 重心线<10.5 AND 牛线<12 AND 牛熊线<10.2,L*0.97,'底分型'),COLORYELLOW;DRAWTEXT(FILTER(HXG=1,3),H*1.02,'顶分型');。
通达信寻牛主图指标公式
通达信寻牛主图指标公式指标作为辅助,不作投资依据不知如何使用请点击使用指南更多内容请点击文末阅读原文买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWICON(BU,L-0.1,1);DRAWICON(SEL,H+0.1,2);STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN;STICKLINE(BU,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;主力:EMA(CLOSE,10),COLORRED;散户:EMA(CLOSE,5),COLORWHITE;绿降:(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1;操盘:MA(CLOSE,9),COLORCYAN,LINETHICK2;界点:MA(CLOSE,20),COLORMAGENTA;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(FF,MA15),(LOW * 0.99),'底背离'),COLOR0000FF;AA:=(HHV(HIGH,20) - (2 * ATR));BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);BBB:=BARSLAST(BB);SSSB:=BARSLAST(SSS);B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));B1B:=BARSLAST(B1);B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));B2B:=BARSLAST(B2);B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2));DRAWTEXT((B1 = 1),(LOW - 0.6),'跟进'),COLORYELLOW;DRAWTEXT((B2 = 1),(LOW - 0.6),'加码'),COLORFFAAFF;。
通达信私募操盘线主图指标公式通达信私募操盘线主图指标公式【止损线强弱线趋势线饱和度牛熊线】
通达信私募操盘线主图指标公式【止损线、强弱线、趋势线、饱和度、牛熊线】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。
止损线:EMA(X,13>,LINETHICK2,COLORFF00FF。
强弱线:MA(C,20>,LINETHICK2,COLORYELLOW。
KKA:=EMA(C,5>。
KKB:=EMA(KKA,8>。
KKC:=EMA(KKB,13>。
趋势线:EMA(KKC,50>,LINETHICK2, COLORGREEN。
N1:=5。
N4:=34。
CQ:=100*(C-LLV(L,N4>>/(HHV(C,N4>-LLV(L,N4>>。
SAT:=(AMOUNT/C>/(HHV(AMOUNT,N4>/HHV(C,N4>>。
饱和度:=IF(SAT>1,1,SAT>*100。
KAAA:=饱和度>=97 AND CQ>90。
KBBB:=EXIST(KAAA,20>。
牛熊线:IF(KBBB,REF(L,BARSLAST(KAAA>+1>,REF(L,BARSLAST(KAAA>+1>> ,LINETHICK4,COLORLIRED。
通达信大量主图指标公式
通达信大量主图指标公式通达信大量主图指标公式,这周最后一点东西拿出来分享一下!财经爆财12小时前最近指标做的我真的想吐,下周就不准备发指标了,看看大家私下跟我说想了解一点基本面的知识,周末两天我总结一下,写的简单易懂一点。
从简单到复杂。
慢慢来,学习也是要有耐心和时间的,大家还有什么想了解的都可以在评论区说出来,看到后我会及时回复的!第一、力挽牛熊主图指标公式AA:=MA((2*CLOSE+HIGH+LOW)/4,5);通1:=AA*102/100;通2:=AA*(200-102)/100;CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);DD:=DMA(CLOSE,CC);上:(1+7/100)*DD,CIRCLEDOT,COLORYELLOW;下:(1-7/100)*DD,CIRCLEDOT,COLOR0099FF;中:(上+下)/2,CIRCLEDOT,COLORLIGRAY;A0:=(L+H+C*2)/4;A1:=EMA(A0,9)COLORWHITE,LINETHICK1;A2:=EMA(A0,20)COLORYELLOW,LINETHICK1;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;牛:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK4;熊:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;VAR1:=MA(C,11);升势:IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),COLORMAGENTA;跌势:IF(VAR1<REF(VAR1,1),VAR1,DRAWNULL),COLORWHITE;疯狂线:(1+13.7/100)*DD,COLORRED,LINETHICK2;超低线:(1-13.7/100)*DD,COLORRED,LINETHICK2;STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;STICKLINE(C/REF(C,1)<0.91,C,O,2,0),COLORGREEN;MA18:=MA(CLOSE,18);MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,7),7)/EMA(EMA(ABS(MTM),7),7);买:=LLV(DX,3)=LLV(DX,8) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));DRAWTEXT(FILTER(买=1,5),LOW*0.98,'★买'),COLORRED;卖一:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);DRAWTEXT(FILTER(卖一=1,1),HIGH*1.02,'★卖'),COLORGREEN;第二、机构私募仓位指标公式大机构仓位:100*(1-WINNER(CLOSE)),COLORRED,LINETHICK3;VAR2:=1/WINNER(CLOSE);VAR3:=MA(CLOSE,13);VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);VAR5:=LLV(LOW,120);VAR6:=HHV(HIGH,120);VAR7:=(VAR6-VAR5)/100;VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);VARA:=3*VAR8-2*SMA(VAR8,10,1);VARB:=3*VAR9-2*SMA(VAR9,10,1);VARC:=100-VARB;基金私募仓位: (100-VARA),COLORYELLOW,LINETHICK2;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;VAR21:=(HIGH+LOW+CLOSE)/3;VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 AND VAR23<200,10,0);VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 AND VAR23>-200,-10,VAR24);STICKLINE(VAR20,0,80,5,0),LINETHICK4,COLORRED;DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1,90,'超级主力建仓!') , COLORRED;VAREX:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VARFX:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR10X:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR11X:=VARFX<REF(VAR10X,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR11X AND COUNT(VAR11X,30)=1,70,'大资金进场'),LINETHICK1,COLORLIMAGENTA;STICKLINE(VAR11X AND COUNT(VAR11X,30)=1,1,60,5,0),COLORLIMAGENTA,LINETHICK4;V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);V12:=(EMA(V11,3)-REF(EMA(V11,3),1))/REF(EMA(V11,3),1)*100;准备现金: STICKLINE(EMA(V11,3)<=13,0,15,5,0),COLORLIRED;AA:=(EMA(V11,3)<=13) AND FILTER((EMA(V11,3)<=13),15);DRAWTEXT (AA,-10,'准备现金'),COLORLIRED;买入股票: STICKLINE(EMA(V11,3)<=13 AND V12>13,0,50,5,0),LINETHICK3,COLORRED;BB:= (EMA(V11,3)<=13 AND V12>13) AND FILTER((EMA(V11,3)<=13 AND V12>13),10);DRAWTEXT (BB,60,'主力进'),COLORWHITE;卖临界: STICKLINE(EMA(V11,3)>60 AND EMA(V11,3)>REF(EMA(V11,3),1),100,95,15,1),COLORGREEN;CC:=(EMA(V11,3)>=90 AND V12) AND FILTER((EMA(V11,3)>=90 AND V12),10);DD:=(EMA(V11,3)>=120 AND V12) AND FILTER((EMA(V11,3)>=120 AND V12),10);STICKLINE(IF(VB>=0,VB,0) AND EMA(V11,3)<13,0,15,5,0),COLORLIRED;STICKLINE(IF(VB<=0,VB,0) AND EMA(V11,3)>90,0,10,10,0),COLORGREEN;STICKLINE( IF(V4>=0,V4,1) ANDEMA(V11,3)<13,0,15,5,0),COLORLIRED;STICKLINE(IF(V4<=0,V4,1) AND EMA(V11,3)>90,0,10,10,0),COLORLIBLUE,LINETHICK1;DRAWTEXT (CC,20,'主力减仓'),COLORLIBLUE;V10:=PEAKBARS(3,15,1)<10;V12X:=IF(V10=1,50,0);头部:= IF(V12X=50,100,0);卖:IF(IF(V12X=50,100,0)>REF(IF(V12X=50,100,0),1),40,0),COL ORGREEN,LINETHICK3;DRAWTEXT(卖,50,'主力清仓 '),COLORGREEN;V9X:=TROUGHBARS(3,15,1)<10;V11X:=IF(V9X=1,50,0);底部:= IF(V11X=50,50,0);买:IF( 底部>REF(底部,1),40,0),COLORRED,LINETHICK4;DRAWTEXT(买,50,'主力抄底 '),COLORRED;V7X:=TROUGHBARS(3,15,1)<10; V9S:=IF(V7X=1,50,0);AAX:=(O+H+L+C)/4;BBX:=MA(AAX,3);CCX:=SUM(IF(AAX>REF(AAX,1),AAX*VOL,0),4)/SUM(IF(AAX <REF(AAX,1),AA*VOL,0),4);DDX:=REF(100-(100/(1+CC)),1);A1:=HHV(AAX,10);A2:=LLV(AAX,30);A3:=A1-A2;A4:=EMA((AAX-A2)/A3,1)*100;B1:=HHV(AAX,16);B2:=LLV(AAX,90);B3:=B1-B2;B4:=EMA((AAX-B2)/B3,1)*100;C1:=HHV(AAX,30);C2:=LLV(AAX,240);C3:=C1-C2;C4:=EMA((AAX-C2)/C3,1)*100;中线趋势:B4,COLORMAGENTA,LINETHICK2;STICKLINE(A4>90 AND B4>70,86,94,6,0),COLORYELLOW;STICKLINE(A4<5 AND B4<30,0,15,6,0),COLORWHITE;DRAWTEXT((A4>90 AND B4>70)=1, 85,'拉'),COLORYELLOW;D:=CROSS(ZIG(3,50/5)*1,MA(ZIG(3,50/5)*1,2))*1,COLORRED;W:=CROSS(MA(ZIG(3,50/5)*1,2),ZIG(3,50/5)*1)*1,COLORBLU E;VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;VAR2X:=LLV(LOW,34);VAR3X:=HHV(HIGH,34);多: EMA((VAR1-VAR2X)/(VAR3X-VAR2X)*100,13),COLORRED,LINETHICK2;空: EMA(多,3),COLORGREEN,LINETHICK1;DRAWTEXT(W=1,多*-0.1,'▼下跌确立' ),COLORGREEN;DRAWTEXT(D=1,多*-0.31,'▲上涨确立'),COLORRED;爆发线: 80,COLORRED;VAR12S:=(HIGH+LOW+CLOSE)/3;VAR13S:=(VAR12S-MA(VAR12S,14))/(0.015*AVEDEV(VAR12S,14));VAR14S:=(VAR12S-MA(VAR12S,70))/(0.015*AVEDEV(VAR12S,70));VAR15S:=IF(VAR13S>=150 AND VAR13S<200 AND VAR14S>=150 AND VAR14S<200,10,0);VAR16S:=IF(VAR13S<=-150 AND VAR13S>-200 AND VAR14S<=-150 AND VAR14S>-200,-10,VAR15S);VAR17S:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18S:=100-ABS(VAR17S);VAR19S:=IF(VAR18S<90,VAR18S,100);VAR1AS:=IF(VARE>0,VARE,0);VAR1BS:=IF(VAR14S>=200 AND VAR13S>=150,15,IF(VAR14S<=-200 AND VAR13S<=-150,-15,VAR16S))+60;VAR1CS:=VAR1AS>48 AND VAR1BS>60 AND VAR19S<100;DRAWTEXT(VAR1CS AND COUNT(VAR1CS,30)=1,60,'大资金出货'),LINETHICK1,COLORFFCC66;STICKLINE(VAR1CS AND COUNT(VAR1CS,30)=1,0,50,5,0),COLORFFCC66,LINETHICK3;第三、神猎顶底指标公式EE:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);FF:=SMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3,1);短线趋势:=SMA((FF-50)*2,3,1)+SMA((EE-50)*2,3,1)/1,COLORYELLOW,LINETHICK2,NODRAW;顶警戒:150,DOTLINE,COLORMAGENTA;底戒线:(-150),DOTLINE,COLORGREEN;STICKLINE(短线趋势>(-100),短线趋势,100,0,0),COLOR323232;STICKLINE(短线趋势<(-100),短线趋势,100,0,0),COLOR9F9F5F;STICKLINE(短线趋势<(-100),短线趋势,(-100),1,0),COLORYELLOW;STICKLINE(短线趋势<(-120),短线趋势,(-120),1,0),COLORFF2400;STICKLINE(短线趋势<(-140),短线趋势,(-140),1,0),COLORMAGENTA;STICKLINE(短线趋势<(-150),短线趋势,(-150),1,0),COLORRED;STICKLINE(短线趋势>100,短线趋势,100,1,0),COLORWHITE;STICKLINE(短线趋势>120,短线趋势,120,1,0),COLORFF2400;STICKLINE(短线趋势>140,短线趋势,140,1,0),COLORMAGENTA;STICKLINE(短线趋势>150,短线趋势,150,1,0),COLORRED;AABB:=LOW>MA(SLOPE(CLOSE,20)*5+CLOSE,10) AND LOW<MA(CLOSE,20);CCDD:=COUNT(CROSS(MA(CLOSE,10),MA(CLOSE,5)),5)>=1;神猎手:CROSS(CLOSE,REF(LLV(LOW,250/12),2)) AND AABB AND CCDD,NODRAW;DRAWTEXT_FIX(ISLASTBAR,0.01,0,0,GNBLOCK),COLOR00CC CC;趋势线:=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);赶快买:CROSS(趋势线,5),NODRAW;秘密买:趋势线<=5,COLOR00FF99,NODRAW;尝试买:趋势线<=13,COLORCYAN,NODRAW;STICKLINE(尝试买,0,-100,4,-1),COLORCYAN;STICKLINE(秘密买,-90,-10,1,0),COLOR00FF99;STICKLINE(赶快买,-90,100,1,0),COLORFF00FF;STICKLINE(神猎手,-90,90,1,0),COLORRED;趋势线2:=4*SMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,5,1)- 3*SMA(SMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,5,1),3.2,1);低进1:=CROSS(趋势线2,8) AND 尝试买;低进2:=L<=REFDATE(REF(LLV(L,150),3),DATE) AND 尝试买;超短买:低进1 OR 低进2,COLOR0099FF,NODRAW;STICKLINE(超短买,-60,20,3,0),COLOR0090FF;STICKLINE(超短买,-55,15,1,-1),COLORRED;AAA:=DMA((((H+L)+(C*2))/4.15),0.9);AAA1:=REF(EMA(AAA,3),1);AAA2:="KDJ.J"<50 AND C>REF(C,3);AA:=(C-MA(C,30))/MA(C,30)*100;AA1:=CROSS(0,(C-MA(C,5))/MA(C,5)*100);A2:=AA<REF(AA,1);A3:=MA(C,10)>REF(MA(C,10),1);A4:=FILTER(AA1 AND A2 AND A3,10);A5:=(2*C+H+L)/4;A6:=MA(EMA((A5-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,5),1);B3:=REF(A4,2) AND CROSS(C,EMA(C,5)) ;B4:=A6>REF(A6,1) AND REF(A6,1)<REF(A6,2);AB:=VOL/((H-L)*2-ABS(C-O));AB1:=IF(C>O,AB*(H-L),IF(C<O,AB*((H-O)+(C-L)),VOL/2));AB2:=IF(C>O,AB*((H-C)+(O-L)),IF(C<O,AB*(H-L),VOL/2));AB3:="KDJ.J"<20 ;BBBB:=AB1>AB2*6 AND AB3;BBBB1:=CROSS(C,AAA1) AND AAA2;BBBB2:=B3 AND B4;短爆买:尝试买AND (BBBB OR BBBB1 OR BBBB2),COLORRED,NODRAW;STICKLINE(短爆买,0,70,3,0),COLORRED;DRAWTEXT(短爆买,40,'短爆买'),COLORYELLOW;DRAWTEXT(超短买,-20,'超短买'),COLORFFFFFF;DRAWTEXT(赶快买,85,'赶快买'),COLORGREEN;DRAWTEXT(神猎手,60,'神猎手'),COLORWHITE;【短线趋势】:SMA((FF-50)*2,3,1)+SMA((EE-50)*2,3,1)/1,COLORYELLOW,LINETHICK2;IF(短线趋势<=REF(短线趋势,1),短线趋势,DRAWNULL),COLORFF2400,LINETHICK2;趋势上拐:=短线趋势>REF(短线趋势,1);趋势下拐:=短线趋势<=REF(短线趋势,1);DRAWICON(趋势上拐 AND REF(NOT(趋势上拐),1),短线趋势,1);DRAWICON(趋势下拐 AND REF(NOT(趋势下拐),1),短线趋势,2); 有点太多了,就先分享这些吧,想学习或者互相交流的,都在评论区留下你的想法。
通达信超好的抓牛主图指标公式【主力成本、短期底部、红牛、牛窝、老鼠仓、大胆搏、加仓、逃顶】
通达信超好的抓牛主图指标公式【主力成本、短期底部、红牛、牛窝、老鼠仓、大胆搏、加仓、逃顶】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;。
通达信牛熊线买卖点主图指标公式
通达信牛熊线买卖点主图指标公式动力线:MA(C,5),LINETHICK3,COLOR00CCFF;牛熊线:MA(C,13),CIRCLEDOT,COLORYELLOW;生命线:MA(C,34),CIRCLEDOT,COLORMAGENTA;MA05:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA05)/MA05*100;BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB05>30 AND MA05>REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB05<0 AND MA05<REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORGREEN;三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1);BB30:=ATAN((MA30/REF(MA30,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 MA05>REF(MA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05<REF(MA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10<REF(MA10,1),10);DRAWTEXT(加仓,LOW*0.98,'◆加二'),COLORYELLOW;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10>REF(MA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'◆风险'),COLORCYAN;DRAWTEXT(买入,LOW*0.96,'◆买二'),COLORYELLOW;DRAWTEXT(清仓,HIGH*1.00,'◆清仓'),COLORGREEN;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;{彩色K线}TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);TYX4:=MA((C+L+O+H)/4,13);TYX5:=EMA((C+L+O+H)/4,21);{空心红}STICKLINE(C<TYX5 AND C>O,H,L,0,0),COLORRED;STICKLINE(C<TYX5 AND C>O,C,O,3,1),COLORRED;{深绿}STICKLINE(C<TYX5 AND C<O,H,L,0,0),COLOR007700;STICKLINE(C<TYX5 AND C<O,C,O,3,0),COLOR005500; STICKLINE(C<TYX5 AND C<O,C,O,2,0),COLOR006600; STICKLINE(C<TYX5 AND C<O,C,O,1,0),COLOR007700; {蓝}STICKLINE(C>TYX5 AND C<O,H,L,0,0),COLORFFDD44; STICKLINE(C>TYX5 AND C<O,C,O,3,0 ),COLORFF7700; STICKLINE(C>TYX5 AND C<O,C,O,2,0 ),COLORFFAA22; STICKLINE(C>TYX5 AND C<O,C,O,1 ,0 ),COLORFFDD44; {黄}STICKLINE(C>TYX5 AND C>O,H,L,0,0 ),COLOR00EEFF; STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00AAFF; STICKLINE(C>TYX5 AND C>O,C,O,2,0 ),COLOR00CCFF; STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00EEFF;{粉红}STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA; STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF11FF; STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF44FF; STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF66FF;{亮灰}STICKLINE(C>TYX4 AND C<O,H,L,0,0),COLOR999999; STICKLINE(C>TYX4 AND C<O,C,O,3,0),COLOR555555; STICKLINE(C>TYX4 AND C<O,C,O,2,0),COLOR777777; STICKLINE(C>TYX4 AND C<O,C,O,1,0),COLOR999999;{深红}STICKLINE(C>TYX3 AND C>O,H,L,0,0),COLOR0000DD; STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099; STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB; STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD;{涨跌停K线}STICKLINE(HIGH=LOW AND CLOSE=OPEN AND(CLOSE/REF(CLOSE,1))>1.048,HIGH,LOW,3,0) ,COLORRED;STICKLINE(HIGH=LOW AND CLOSE=OPEN AND (REF(CLOSE,1)/CLOSE)>1.048,HIGH,LOW,3,0) ,COLOR00FF00;{突破}STICKLINE(REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 AND C>O,C,O,1,0),COLOR00CCFF;{买卖主图}MA18:=MA(CLOSE,18);MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));DRAWTEXT(FILTER(买=1,5),LOW,'★买一'),COLORRED;加1:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);DRAWTEXT(加1,LOW*0.99,'★加一'),COLORCC66FF;卖一:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);DRAWTEXT(FILTER(卖一=1,1),HIGH*1.01,'★卖一'),COLORGREEN;{牛熊通吃}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;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,LOW*0.99,'老鼠仓'),COLOR4080FF;{预测明天}XXS:=MA(LOW,5)*(1-5/100);XXS1:=MA(HIGH,5)*(1+5/100);均线:=C,COLORGREEN;AAAA:=CLOSE/REF(CLOSE,3)<=0.85 AND CROSS(C,XXS) AND C>REF(C,1),LINETHICK0 ;DRAWTEXT(AAAA,L*0.95,'下影买'),COLORRED;BBAA:=CROSS(XXS1,C);DRAWTEXT(CROSS(XXS1,C),H,'开盘逃'),COLORWHITE;DDDD:=CROSS(C,XXS1);DRAWTEXT(DDDD,H,'明日走'),COLORYELLOW;{兄弟指标}AAA:=MA(LOW,5)*(1-5/100);BBB:=(HHV(AAA,5)+LLV(AAA,5))/2;DRAWTEXT(CROSS(BBB,L) AND BBB>REF(BBB,1),L*0.98,'←兄弟回马枪'),COLORWHITE;{天河指标}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);DRAWTEXT(REF(CROSS(DEA,DIF),1) AND CROSS(DIF,DEA),L*0.97,'←天河回马抢'),COLORMAGENTA;{见好就收}VSR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VSR3:=SMA(VSR2,4,1);VSR4:=SMA(VSR3,2,1);DRAWTEXT(VSR4>82 AND VSR3>89,HHV(C,30)*1.02,'收'),COLORGREEN;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
{牛熊主图}
{十字图标为获利比例接近零
钱袋图标为回踩144线买点
绿三角图标是回踩144的卖点
红色向上箭头图标为突破233线买点
绿色向下箭头图标是突破233的卖点
绿色虚线为止损线
黄色梨图标是第五天回调
笑脸图标是低位买点
踢的图标是低位卖点
数字为天数计数}
平均:COST(50);
牛熊:MA(C,144),COLORYELLOW,LINETHICK1;
低值:=COST(2.5);
高值:=COST(97.5);
低利:COST(5);
MA5:MA(C,5);
MA233:MA(C,233);
MA266:MA(C,266);
MA311:MA(C,311);
STICKLINE(C>=O,C,O,3,0),COLOR000045;
STICKLINE(C>=O,C,O,2.5,0),COLOR000065;
STICKLINE(C>=O,C,O,2,0),COLOR000085;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;
STICKLINE(C>=O,C,O,1,0),COLOR0000C5;
STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;
STICKLINE(C>=O,H,L,0,0),COLOR0000F5;
STICKLINE(C<O,C,O,3,0),COLOR353500;
STICKLINE(C<O,C,O,2.5,0),COLOR454500;
STICKLINE(C<O,C,O,2,0),COLOR555500;
STICKLINE(C<O,C,O,1.5,0),COLOR656500;
STICKLINE(C<O,C,O,1,0),COLOR757500;
STICKLINE(C<O,C,O,0.5,0),COLOR858500;
STICKLINE(C<O,H,L,0,0),COLOR959500;
A1:=ABS(100*((平均/牛熊)-1))<1;
A2:=ABS(100*(MIN(O,C)/牛熊-1))<1;
A3:=COUNT(MIN(O,C)>牛熊,5)>2;
买入:=CROSS(A1 AND A2 AND A3,0.1);
SJ:=BARSLAST(买入);
DRAWICON(买入,L,9);
DRAWICON(SJ=5,L*0.96,16);
DRAWNUMBER(C>牛熊AND SJ>0 AND SJ<30,L*0.98,SJ),COLORBROWN; STICKLINE(买入,O,C,1,0),COLORYELLOW;
卖出:=CROSS(H,MA233);
DRAWICON(CROSS(卖出OR MAX(O,C)<牛熊OR CROSS(H,高值),0.1) AND SJ<30 AND SJ>0,H,39); A4:=REF(MIN(C,O),SJ);
止损:IF(SJ<15 AND SJ>0,A4,DRAWNULL),COLORGREEN,DOTLINE;
Z1:=REF(CROSS(C,MA233),2);
Z2:=COUNT(MIN(O,C)>MA233,2)>1;
买入1:=CROSS(Z1 AND Z2,0.1);
SJ1:=BARSLAST(买入1);
DRAWICON(买入1,L,1);
DRAWICON(SJ1=5,L*0.96,11);
DRAWNUMBER(C>MA233 AND SJ1>0 AND SJ1<30,L*0.98,SJ1),COLORBROWN;
STICKLINE(买入1,O,C,1,0),COLORYELLOW;
卖出1:=CROSS(H,MA311);
DRAWICON(CROSS(卖出 1 OR MAX(O,C)<MA233 OR CROSS(H,高值),0.1) AND SJ1<30 AND SJ1>0,H,2);
Z3:=REF(MIN(C,O),SJ1);
止损1:IF(SJ1<15 AND SJ1>0,Z3,DRAWNULL),COLORGREEN,DOTLINE;
获利比例:=CROSS(100*WINNER(C)<0.3,0.1);
DRAWICON(获利比例,L,23);
TJ:=BARSLAST(获利比例);
两阳:=CROSS(EVERY(C>O,2) AND TJ>0 AND TJ<30,0.1);
DRAWTEXT(两阳,L,'两阳'),COLORYELLOW;
JS1:=COUNT(两阳AND TJ>0 AND TJ<30 AND C<牛熊,TJ);
DRAWNUMBER(两阳AND C<牛熊,H*1.02,JS1);
JS2:=COUNT(两阳AND TJ>0 AND TJ<30 AND C>牛熊,TJ);
DRAWNUMBER(两阳AND C>牛熊,H*1.02,JS2);
买入2:=FILTER(CROSS(MA5,低利) AND TJ>0 AND TJ<30,20);
ZQ:=BARSLAST(买入2);
DRAWICON(买入2,L*0.96,5);
LL:=REF(L,TJ);
DRAWICON(FILTER((CROSS(H,牛熊) OR C<LL OR MAX(O,C)<MIN(REF(O,1),REF(C,1))) AND ZQ>0 AND ZQ<30,20),H*1.03,15);
DB:=REF(MIN(C,O),TJ);
止损2:IF(TJ<15 AND TJ>0,DB,DRAWNULL),COLORGREEN,DOTLINE;
总额:=AMOUNT;
买:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));买%:=买/AMOUNT*100;
流入:=AMOUNT*买%/10000000000;
流出:=AMOUNT/100000000-流入;
净流:=(流入-流出);
总额3:=SUM(AMOUNT,3);
流入3:=SUM(流入,3);
流出3:=SUM(流出,3);
净流3:=SUM(流入-流出,3);
总额5:=SUM(AMOUNT,5);
流入5:=SUM(流入,5);
流出5:=SUM(流出,5);
净流5:=SUM(流入-流出,5);
总额10:=SUM(AMOUNT,10);
流入10:=SUM(流入,10);
流出10:=SUM(流出,10);
净流10:=SUM(流入-流出,10);
BBB1:=STRCAT(STRCAT('净流(亿): 1日',CON2STR((净流),3)),''); DRAWTEXT_FIX(1,0.02,0.05,0,BBB1),COLOR8080FF,LINETHICK1;
BBB2:=STRCAT(STRCAT(' 3日',CON2STR((净流3),3)),''); DRAWTEXT_FIX(1,0.02,0.1,0,BBB2),COLOR8080FF,LINETHICK1;
BBB3:=STRCAT(STRCAT(' 5日',CON2STR((净流5),3)),''); DRAWTEXT_FIX(1,0.02,0.15,0,BBB3),COLOR8080FF,LINETHICK1;
BBB4:=STRCAT(STRCAT(' 10日',CON2STR((净流10),3)),''); DRAWTEXT_FIX(1,0.02,0.2,0,BBB4),COLOR8080FF,LINETHICK1;
买一总量:=DYNAINFO(20)*DYNAINFO(58) ;
卖一总量:=DYNAINFO(21)*DYNAINFO(59);
AAA1:=STRCAT(STRCAT('买一总金额:',CON2STR(买一总量,0)),'元');
AAA2:=STRCAT(STRCAT('卖一总金额:',CON2STR(卖一总量,0)),'元'); DRAWTEXT_FIX(1,0.02,0.3,0,AAA1),COLORRED;
DRAWTEXT_FIX(1,0.02,0.35,0,AAA2),COLORFFFF55;。