超级筹码主图源码通达信指标公式源码
通达信指标公式源码 超级资金流指标 超级主力吃货指标
指标解读核心:主要盯住2条线:1、(主力控盘线上穿控盘临界线)为主力开始要做的起点;上穿强势控盘线为主升和逼空;2、资金流入线上穿资金强弱线,为主力关照的起点,下穿资金强弱线为休息时间。
{PP超级资金流}{副图}流通盘:CAPITAL/1000000,COLOR7F00FF,LINETHICK0;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);{//资金流入强度}SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);散户套牢线:INTPART(ZSHTL),COLOR66FF00,LINETHICK2;主力控盘线:INTPART(ZZLKP),COLOR4D4DFF,LINETHICK2;资金流入线:ZJLRQD,,COLOR7F00FF,LINETHICK2;资金强弱线:15,COLORFF80FF,LINETHICK2,CROSSDOT;控盘临界线:55,COLORFF937F,LINETHICK2,CROSSDOT;强势控盘线:75,COLORFF3399,LINETHICK2,CROSSDOT; ————————————————————————————————————————{PP资金流金叉}{选股}流通盘:=CAPITAL/1000000,COLOR7F00FF,LINETHICK0;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);{//资金流入强度}SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);散户套牢线:=INTPART(ZSHTL),COLOR66FF00,LINETHICK2;主力控盘线:=INTPART(ZZLKP),COLOR4D4DFF,LINETHICK2;{资金流入线:ZJLRQD,,COLOR7F00FF,LINETHICK2;资金强弱线:15,COLORFF80FF,LINETHICK2,CROSSDOT;控盘临界线:55,COLORFF937F,LINETHICK2,CROSSDOT;强势控盘线:75,COLORFF3399,LINETHICK2,CROSSDOT;}资金金叉:CROSS(主力控盘线,散户套牢线);{PP超大主力吃}{副图}{流通盘:CAPITAL/1000000,COLOR7F00FF,LINETHICK0;}N:=8;M:=13;P:=60;S:=3;V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;超大主力吃: IF(V4>=0,V4,0),COLOR7F00FF,LINETHICK3;超大主力吐: IF(V4<=0,V4,0),COLOR66FF00,LINETHICK2;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;超大主力吃货线:8,COLORFF80FF,LINETHICK2,CROSSDOT;。
通达信指标公式源码主力筹码进出
通达信指标公式源码主力筹码进出 本指标陪伴本人多年,在股灾中也嫩赚钱 {筹码进出} vur0:=(2*o+h+l+3*c)/7; vur1:=capital*vur0; vur2:=sma(amount,10,1)/1000; vur3:=ma(c*3,5); vur4:=vur2*c*3/vur3*1/10; vur5:=vur2*o*3/vur3*1/10; vur6:=vur2*h*3/vur3*1/10; vur7:=vur2*l*3/vur3*1/10; vur8:=(2*vur5+vur6+vur7+3*vur4)/7; vur9:=dma(ema(vur4,2),sum(v,1)*vur8); vur10:=ema(vur9,2); vura:=vur9>vur10; vurb:=ema(vur1-vur9,1); vurc:=ref(vurb,1); vurd:=vurb>vurc; vurs:=vurd and c>o; vure:=(vurb-vurc)*15; vurf:=(vur9-vur10)*15000; vurg:=(vurc-vurb)*(-1); vurh:=if(vurb>vurc,vure/1000,0); vurn:=if(vurb 吐出量:vurn,pointdot,colorgreen; 买进强烈:vurt,pointdot,coloryellow; 减筹打压:vurl,pointdot,colorfff516; stickline(vurb>vurc,0,vure,3,1),colorred; stickline(vurb
通达信指标公式源码主力筹码进出
本指标陪伴本人多年,在股灾中也嫩赚钱 {筹码进出} VUR0:=(2*O+H+L+3*C)/7; VUR1:=CAPITAL*VUR0; VUR2:=SMA(AMOUNT,10,1)/1000; VUR3:=MA(C*3,5); VUR4:=VUR2*C*3/VUR3*1/10; VUR5:=VUR2*O*3/VUR3*1/10; VUR6:=VUR2*H*3/VUR3*1/10; VUR7:=VUR2*L*3/VUR3*1/10; VUR8:=(2*VUR5+VUR6+VUR7+3*VUR4)/7; VUR9:=DMA(EMA(VUR4,2),SUM(V,1)*VUR8); VUR10:=EMA(VUR9,2); VURA:=VUR10; VURB:=EMA(VUR1-VUR9,1); VURC:=REF(VURB,1); VURD:=VURB>VURC; VURS:=VURD AND C>O; VURE:=(VURB-VURC)*15; VURF:=(VUR9-VUR10)*15000; VURG:=(VURC-VURB)*(-1); VURH:=IF(VURB>VURC,VURE/1000,0); VURN:=IF(VURB 吐出量:VURN,POINTDOT,COLORGREEN; 买进强烈:VURT,POINTDOT,COLORYELLOW; 减筹打压:VURL,POINTDOT,COLORFFF516; STICKLINE(VURB>VURC,0,VURE,3,1),COLORRED; STICKLINE(VURB
通达信指标公式源码 牛股主图指标
价量:=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;。
筹码分布主图通达信指标公式源码
XA_1:=400;XA_2:=90;XA_3:=79;XA_4:=IF(XA_2>10,10,XA_3);XA_5:=CURRBARSCOUNT;XA_6:=REF(HIGH,XA_2)=HHV(HIGH,2*XA_2+1);XA_7:=BACKSET(XA_6,XA_2+1);XA_8:=FILTER(XA_7,XA_2) AND HIGH=HHV(HIGH,XA_2+1); XA_9:=BARSLAST(XA_8);XA_10:=IF(XA_8,XA_5,0);XA_11:=IF(XA_9,REF(HIGH,XA_9),HIGH);XA_12:=IF(XA_9,REF(XA_10,XA_9),XA_10);XA_13:=REF(XA_11,XA_9+1);XA_14:=CONST(XA_12);XA_15:=REF(XA_12,XA_9+1);XA_16:=CONST(XA_15);XA_17:=REF(LOW,XA_2)=LLV(LOW,2*XA_2+1);XA_18:=BACKSET(XA_17,XA_2+1);XA_19:=FILTER(XA_18,XA_2) AND LOW=LLV(LOW,XA_2+1); XA_20:=BARSLAST(XA_19);XA_21:=IF(XA_19,XA_5,0);XA_22:=IF(XA_20,REF(XA_21,XA_20),XA_21);XA_23:=CONST(XA_22);STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,1),COLOR00CC00; XA_24:=BARSLAST(LOW=LLV(LOW,180));XA_25:=REF(LOW,XA_24);XA_26:=BARSLAST(HIGH=HHV(HIGH,XA_24));XA_27:=REF(HIGH,XA_26);XA_28:=BARSLAST(LOW=LLV(LOW,XA_26));XA_29:=REF(LOW,XA_28);XA_30:=INTPART((XA_26+1)/2);XA_31:=REFDATE(XA_27,DATE);XA_32:=REFDATE(CLOSE,DATE);XA_33:=REFDATE(XA_29,DATE);C线:DRAWLINE(CURRBARSCOUNT=CONST(XA_26+1),XA_33,CURRBARSCOUNT=CONST( XA_30),XA_32,0),COLORBLACK;D线:DRAWLINE(CURRBARSCOUNT=CONST(XA_30),XA_32,CURRBARSCOUNT=CONST(1), XA_33,0),COLORBLACK;FFG1:DRAWBAND(C线,RGB(255,0,0),XA_33,RGB(255,0,0));FFG2:DRAWBAND(D线,RGB(50,205,50),XA_33,RGB(50,205,50));DRAWKLINE(HIGH,OPEN,LOW,CLOSE);STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,1),COLOR00CC00;XA_34:=CONST(XA_28+XA_28);XA_35:=CONST(CLOSE+0.01);XA_36:=REFDATE(XA_35,DATE);XA_37:=REF(XA_22,XA_20+1);XA_38:=CONST(XA_37);XA_39:=REF(HIGH,XA_4)=HHV(HIGH,2*XA_4+1);XA_40:=CONST((XA_31+XA_33)/2);XA_41:=CONST((XA_31+XA_40)/2);XA_42:=CONST((XA_40+XA_33)/2);NOTEXTC区界线:IF(CURRBARSCOUNT<=CONST(3),CONST(IF(1,XA_41,XA_41)),DRAWNULL),COLORCY AN;NOTEXTB区界线:IF(CURRBARSCOUNT<=CONST(3),CONST(IF(1,XA_40,XA_40)),DRAWNULL),COLORCY AN;NOTEXTA区界线:IF(CURRBARSCOUNT<=CONST(3),CONST(IF(1,XA_42,XA_42)),DRAWNULL),COLORCY AN;XA_43:=IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_35+XA_35*0.2,XA_3 5+XA_35*0.2)),DRAWNULL);XA_44:=IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_35+XA_35*0.1,XA_3 5+XA_35*0.1)),DRAWNULL);XA_45:=IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_35,XA_35)),DRAWN ULL);NOTEXT高:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_31,XA_31)),DRAWNULL),C OLORMAGENTA;NOTEXT低:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_29,XA_29)),DRAWNULL),C OLORGREEN;新势力A:IF(CURRBARSCOUNT<=CONST(XA_28+1),MA(CLOSE,XA_28),DRAWNULL),COLORRED; 新势力V:IF(CURRBARSCOUNT<=CONST(XA_28+1),IF(新势力A<REF(新势力A,1),新势力A,DRAWNULL),DRAWNULL),COLORGREEN;XA_46:=BACKSET(XA_39,XA_4+1);XA_47:=FILTER(XA_46,XA_4) AND HIGH=HHV(HIGH,XA_4+1);XA_48:=BARSLAST(XA_47);XA_49:=IF(XA_47,XA_5,0);XA_50:=IF(XA_48,REF(HIGH,XA_48),HIGH);XA_51:=IF(XA_48,REF(XA_49,XA_48),XA_49);XA_52:=REF(XA_50,XA_48+1);XA_53:=CONST(XA_51);XA_54:=REF(XA_51,XA_48+1);XA_55:=CONST(XA_54);XA_56:=REF(LOW,XA_4)=LLV(LOW,2*XA_4+1);XA_57:=BACKSET(XA_56,XA_4+1);XA_58:=FILTER(XA_57,XA_4) AND LOW=LLV(LOW,XA_4+1);XA_59:=BARSLAST(XA_58);XA_60:=CONST(XA_41);XA_61:=CONST(XA_40);XA_62:=CONST(XA_42);XA_63:=IF(CLOSE>=XA_60,AMOUNT,DRAWNULL);XA_64:=IF(CLOSE>=XA_60,VOL,DRAWNULL);XA_65:=0.01*SUM(XA_63,XA_26)/SUM(XA_64,XA_26);XA_66:=REFDATE(XA_65,DATE);NOTEXTD区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_65,XA_65)),DRAWNULL),DOTLIN E,COLORLIGRAY;XA_67:=IF(CLOSE<=XA_60 AND CLOSE>=XA_61,AMOUNT,DRAWNULL);XA_68:=IF(CLOSE<=XA_60 AND CLOSE>=XA_61,VOL,DRAWNULL);XA_69:=0.01*SUM(XA_67,XA_26)/SUM(XA_68,XA_26);XA_70:=REFDATE(XA_69,DATE);NOTEXTC区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_69,XA_69)),DRAWNULL),DOTLIN E,COLORLIGRAY;XA_71:=IF(CLOSE<=XA_61 AND CLOSE>=XA_62,AMOUNT,DRAWNULL);XA_72:=IF(CLOSE<=XA_61 AND CLOSE>=XA_62,VOL,DRAWNULL);XA_73:=0.01*SUM(XA_71,XA_26)/SUM(XA_72,XA_26);XA_74:=REFDATE(XA_73,DATE);NOTEXTB区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_73,XA_73)),DRAWNULL),DOTLIN E,COLORLIGRAY;XA_75:=IF(CLOSE<=XA_62,AMOUNT,DRAWNULL);XA_76:=IF(CLOSE<=XA_62,VOL,DRAWNULL);XA_77:=0.01*SUM(XA_75,XA_26)/SUM(XA_76,XA_26);XA_78:=REFDATE(XA_77,DATE);NOTEXTA区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_77,XA_77)),DRAWNULL),DOTLIN E,COLORLIGRAY;XA_79:=IF(CLOSE>=XA_36,AMOUNT,DRAWNULL);XA_80:=IF(CLOSE>=XA_36,VOL,DRAWNULL);XA_81:=0.01*SUM(XA_79,XA_26)/SUM(XA_80,XA_26);XA_82:=REFDATE(XA_81,DATE);XA_83:=IF(XA_58,XA_5,0);XA_84:=IF(XA_59,REF(XA_83,XA_59),XA_83);XA_85:=CONST(XA_84);XA_86:=REF(XA_84,XA_59+1);XA_87:=CONST(XA_86);XA_88:=REF(HIGH,XA_3)=HHV(HIGH,2*XA_3+1);XA_89:=BACKSET(XA_88,XA_3+1);XA_90:=FILTER(XA_89,XA_3) AND HIGH=HHV(HIGH,XA_3+1);XA_91:=BARSLAST(XA_90);NOTEXT上区成本:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_81,XA_81)),DRAWNULL),D OTLINE,COLORRED;XA_92:=IF(CLOSE<=XA_36,AMOUNT,DRAWNULL);XA_93:=IF(CLOSE<=XA_36,VOL,DRAWNULL);XA_94:=0.01*SUM(XA_92,XA_26)/SUM(XA_93,XA_26);XA_95:=REFDATE(XA_94,DATE);NOTEXT下区成本:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_94,XA_94)),DRAWNULL),D OTLINE,COLORYELLOW;XA_96:=100*VOL/(FINANCE(7)/100);XA_97:=IF(CLOSE>=XA_60,XA_96,DRAWNULL);XA_98:=CONST(INTPART(SUM(XA_97,XA_26)));VB143:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_66,1),COLORLIGRAY;VB144:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_66*1.007,XA_98),COLORYELLO W;XA_99:=IF(CLOSE<=XA_60 AND CLOSE>=XA_61,XA_96,DRAWNULL);XA_100:=CONST(INTPART(SUM(XA_99,XA_26)));VB148:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_70,2),COLORRED;VB149:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_70*1.007,XA_100),COLORYELL OW;XA_101:=IF(CLOSE<=XA_61 AND CLOSE>=XA_62,XA_96,DRAWNULL);XA_102:=CONST(INTPART(SUM(XA_101,XA_26)));VB153:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_74,3),COLORMAGENTA;XA_103:=IF(XA_90,XA_5,0);XA_104:=IF(XA_91,REF(HIGH,XA_91),HIGH);XA_105:=IF(XA_91,REF(XA_103,XA_91),XA_103);XA_106:=REF(XA_104,XA_91+1);XA_107:=CONST(XA_105);XA_108:=REF(XA_105,XA_91+1);XA_109:=CONST(XA_108);XA_110:=REF(XA_106,XA_91+1);VB154:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_74*1.007,XA_102),COLORYELL OW;XA_111:=IF(CLOSE<=XA_62,XA_96,DRAWNULL);XA_112:=CONST(INTPART(SUM(XA_111,XA_26)));VB158:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_78,4),COLORCYAN;VB159:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_78*1.007,XA_112),COLORYELL OW;XA_113:=IF(CLOSE>=XA_36,XA_96,DRAWNULL);XA_114:=CONST(INTPART(SUM(XA_113,XA_26)));VB163:DRAWTEXT(CURRBARSCOUNT=CONST(XA_26),XA_82,5),COLORYELLOW;VB164:DRAWNUMBER(CURRBARSCOUNT=CONST(XA_26-7),XA_82*1.007,XA_114),COLO RYELLOW;XA_115:=IF(CLOSE<=XA_36,XA_96,DRAWNULL);XA_116:=CONST(INTPART(SUM(XA_115,XA_26)));VB168:DRAWTEXT(CURRBARSCOUNT=CONST(XA_26),XA_95,6),COLORYELLOW;VB169:DRAWNUMBER(CURRBARSCOUNT=CONST(XA_26-7),XA_95*1.007,XA_116),COLO RYELLOW;XA_117:=REF(LOW,XA_3)=LLV(LOW,2*XA_3+1);XA_118:=BACKSET(XA_117,XA_3+1);XA_119:=FILTER(XA_118,XA_3) AND LOW=LLV(LOW,XA_3+1);XA_120:=BARSLAST(XA_58);XA_121:=IF(XA_119,XA_5,0);XA_122:=IF(XA_120,REF(XA_121,XA_120),XA_83);XA_123:=CONST(XA_122);XA_124:=REF(XA_122,XA_120+1);XA_125:=CONST(XA_124);。
通达信Ⅹ-筹码天机公式源码如下
通达信Ⅹ-筹码天机公式源码如下通达信Ⅹ-筹码天机公式源码如下:MA3:="MASS.A";MA5:="MASS.B";量能博弈:=(VOL >= HHV(VOL,10));FV:=VOL;量能博弈平台:((REF((((HIGH + LOW) + (3 * CLOSE)) / 5),BARSLAST(量能博弈)) * MA3) / MA5),LINETHICK0,colorFFFFFF;异动雷达:=SUMBARS((REF(FV,1) - FV),0);上:=REF(HIGH,BARSLAST(量能博弈));下:=REF(LOW,BARSLAST(量能博弈));VAR1:=(INBLOCK('A股板块') OR INBLOCK('B股板块'));量能博弈平台上:REF(HIGH,BARSLAST(量能博弈)),LINETHICK0,colorFFFFFF;量能博弈平台下:REF(LOW,BARSLAST(量能博弈)),LINETHICK0,colorFFFFFF;短线超跌:=(MA(CLOSE,14) * 0.9);黄色博弈:=(量能博弈 AND (异动雷达 > 300));蓝色博弈:=(量能博弈 AND BETWEEN(异动雷达,100,300));青色博弈:=((量能博弈AND (((VOL / CAPITAL) * 100) >= 3)) AND (异动雷达 <= 100));筹码分布:=(量能博弈 AND (异动雷达 >= 100));平台上:=REF(HIGH,BARSLAST(筹码分布));平台下:=REF(LOW,BARSLAST(筹码分布));平台:=REF((((HIGH + LOW) + (3 * CLOSE)) / 5),BARSLAST(筹码分布));A1:=REF((HIGH - ((HIGH - LOW) * 0.1)),BARSLAST(筹码分布));A2:=REF((HIGH - ((HIGH - LOW) * 0.2)),BARSLAST(筹码分布));A3:=REF((HIGH - ((HIGH - LOW) * 0.3)),BARSLAST(筹码分布));A4:=REF((HIGH - ((HIGH - LOW) * 0.4)),BARSLAST(筹码分布));A5:=REF((HIGH - ((HIGH - LOW) * 0.5)),BARSLAST(筹码分布));A6:=REF((HIGH - ((HIGH - LOW) * 0.6)),BARSLAST(筹码分布));A7:=REF((HIGH - ((HIGH - LOW) * 0.7)),BARSLAST(筹码分布));A8:=REF((HIGH - ((HIGH - LOW) * 0.8)),BARSLAST(筹码分布));A9:=REF((HIGH - ((HIGH - LOW) * 0.9)),BARSLAST(筹码分布));DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),平台上,'﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A1,'﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A2,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A3,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A4,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A5,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A6,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A7,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A8,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A9,'﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),平台下,'﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),平台上,'﹌﹌﹌'),ALIGN1,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A1,'﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A2,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A3,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A4,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A5,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A6,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A7,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A8,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A9,'﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),平台下,'﹌﹌﹌'),ALIGN1,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),平台,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),平台,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFF;上市首日:=IF((VAR1 = 1),(BARSCOUNT(CLOSE) = 1),0);消失条件:=(COUNT(筹码分布,BARSCOUNT(CLOSE)) = 0);平台上0:=REF(HIGH,BARSLAST(上市首日));平台下0:=REF(LOW,BARSLAST(上市首日));平台0:=REF((((HIGH + LOW) + (3 * CLOSE)) / 5),BARSLAST(上市首日));A10:=REF((HIGH - ((HIGH - LOW) * 0.1)),BARSLAST(上市首日));A20:=REF((HIGH - ((HIGH - LOW) * 0.2)),BARSLAST(上市首日));A30:=REF((HIGH - ((HIGH - LOW) * 0.3)),BARSLAST(上市首日));A40:=REF((HIGH - ((HIGH - LOW) * 0.4)),BARSLAST(上市首日));A50:=REF((HIGH - ((HIGH - LOW) * 0.5)),BARSLAST(上市首日));A60:=REF((HIGH - ((HIGH - LOW) * 0.6)),BARSLAST(上市首日));A70:=REF((HIGH - ((HIGH - LOW) * 0.7)),BARSLAST(上市首日));A80:=REF((HIGH - ((HIGH - LOW) * 0.8)),BARSLAST(上市首日));A90:=REF((HIGH - ((HIGH - LOW) * 0.9)),BARSLAST(上市首日));DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),平台上0,'﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A10,'﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A20,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A30,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A40,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A50,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A60,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A70,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A80,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A90,'﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),平台下0,'﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),平台上0,'﹌﹌﹌'),ALIGN1,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A10,'﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A20,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A30,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A40,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A50,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A60,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A70,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A80,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A90,'﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),平台下0,'﹌﹌﹌'),ALIGN1,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),平台0,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),平台0,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFF;台上:=REF(HIGH,BARSLAST(青色博弈));台下:=REF(LOW,BARSLAST(青色博弈));台:=REF((((HIGH + LOW) + (3 * CLOSE)) / 5),BARSLAST(青色博弈));A11:=REF((HIGH - ((HIGH - LOW) * 0.1)),BARSLAST(青色博弈));A21:=REF((HIGH - ((HIGH - LOW) * 0.2)),BARSLAST(青色博弈));A31:=REF((HIGH - ((HIGH - LOW) * 0.3)),BARSLAST(青色博弈));A41:=REF((HIGH - ((HIGH - LOW) * 0.4)),BARSLAST(青色博弈));A51:=REF((HIGH - ((HIGH - LOW) * 0.5)),BARSLAST(青色博弈));A61:=REF((HIGH - ((HIGH - LOW) * 0.6)),BARSLAST(青色博弈));A71:=REF((HIGH - ((HIGH - LOW) * 0.7)),BARSLAST(青色博弈));A81:=REF((HIGH - ((HIGH - LOW) * 0.8)),BARSLAST(青色博弈));A91:=REF((HIGH - ((HIGH - LOW) * 0.9)),BARSLAST(青色博弈));清晰转换A:=(COUNT(CROSS(台,平台),BARSLAST(青色博弈)) = 0);清晰转换B:=(COUNT(CROSS(平台,台),BARSLAST(青色博弈)) = 0);DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),台上,'﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A11,'﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A21,'﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A31,'﹋﹋﹋﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A41,'﹋﹋﹋﹋﹋﹋﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A51,'﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A61,'﹋﹋﹋﹋﹋﹋﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A71,'﹋﹋﹋﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A81,'﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A91,'﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),台下,'﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),台上,'﹌﹌﹌'),ALIGN1,colorFF;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A11,'﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A21,'﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A31,'﹋﹋﹋﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A41,'﹋﹋﹋﹋﹋﹋﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A51,'﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A61,'﹋﹋﹋﹋﹋﹋﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A71,'﹋﹋﹋﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A81,'﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A91,'﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),台下,'﹌﹌﹌'),ALIGN1,colorFF;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),台,'﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),台,'﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFF;现象:=((("CMFB.X1" OR "CMFB.X2") OR "CMFB.X3") OR "CMFB.X4");DRAWICON(((现象 AND BETWEEN(CLOSE,平台下,平台)) AND (MA3 = MA5)),LOW,1);EXPLAIN((现象AND BETWEEN(CLOSE,平台下,平台)),'主仓成本下限\n'),colorFFFF;DRAWICON(((现象 AND BETWEEN(CLOSE,平台上,平台)) AND (MA3 = MA5)),LOW,1);EXPLAIN((现象AND BETWEEN(CLOSE,平台上,平台)),'主仓成本均价\n'),colorFFFF;DRAWICON(((现象AND BETWEEN(CLOSE,平台上,(平台上* 1.03))) AND (MA3 = MA5)),LOW,1);EXPLAIN((现象AND BETWEEN(CLOSE,平台上,(平台上* 1.03))),'主仓成本上限\n'),colorFFFF;DRAWICON((((现象AND (CLOSE > 平台上)) AND BETWEEN(LOW,平台,(平台上 * 1.03))) AND (MA3 = MA5)),LOW,1);EXPLAIN(((现象 AND (CLOSE > 平台上)) AND BETWEEN(LOW,平台上,(平台上 * 1.03))),'主仓成本上限\n'),colorFFFF;本站所有指标公式源码均未测试,如果该公式不可用请点击报错告诉我们,感谢您的支持! 选股公式网打造最全的股票公式网站。
通达信指标公式源码 超级主力 副图指标 源码
活筹: 100*WINNER(REF(CLOSE,1)*1.1)-100*WINNER(REF(CLOSE,1)*0.9);死筹: 100*WINNER(CLOSE);
主力筹码: 100*WINNER(CLOSE*0.9);
获利3: 100*WINNER(CLOSE*0.97);获利20: 100*WINNER(CLOSE*0.9*0.9); 获利30: 100*WINNER(CLOSE*0.9*0.9*0.9);
穿透筹码: 100*WINNER(CLOSE)-100*WINNER(REF(CLOSE,1)*1);
AA:REF(主力筹码<30,1) AND 主力筹码>30,color0099ff;
QW:LOW<COST(4) AND CLOSE>COST(4),color888888;
STICKLINE(获利3>85,0,获利3,8,0),coloryellow;
STICKLINE(主力筹码>30,0,主力筹码,8,1),colorff00ff;
STICKLINE(获利20>20,0,获利20,8,1),color00ff00;
STICKLINE(获利30>20,0,获利30,8,1),colorwhite;
{用法:以紫红色活筹为核心,当你在使用[主力建仓]发现股价在60日均线和建仓线上时以错过了股价的最佳买入时机,你可以立刻用现在的这个指标里的活筹来研判!当活筹出现时你可以考虑跟庄{因为活筹是庄家拉升的信号,当然这个指标里也有庄家筹码,要是庄家筹码出现{白色柱体]那可就是牛了!95%100是大牛股了!}。
通达信指标公式源码 超级资金流指标 超级主力吃货指标
指标解读核心:主要盯住2条线:1、(主力控盘线上穿控盘临界线)为主力开始要做的起点;上穿强势控盘线为主升和逼空;2、资金流入线上穿资金强弱线,为主力关照的起点,下穿资金强弱线为休息时间。
{PP超级资金流}{副图}流通盘:CAPITAL/1000000,COLOR7F00FF,LINETHICK0;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);{//资金流入强度}SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);散户套牢线:INTPART(ZSHTL),COLOR66FF00,LINETHICK2;主力控盘线:INTPART(ZZLKP),COLOR4D4DFF,LINETHICK2;资金流入线:ZJLRQD,,COLOR7F00FF,LINETHICK2;资金强弱线:15,COLORFF80FF,LINETHICK2,CROSSDOT;控盘临界线:55,COLORFF937F,LINETHICK2,CROSSDOT;强势控盘线:75,COLORFF3399,LINETHICK2,CROSSDOT; ————————————————————————————————————————{PP资金流金叉}{选股}流通盘:=CAPITAL/1000000,COLOR7F00FF,LINETHICK0;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);{//资金流入强度}SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);散户套牢线:=INTPART(ZSHTL),COLOR66FF00,LINETHICK2;主力控盘线:=INTPART(ZZLKP),COLOR4D4DFF,LINETHICK2;{资金流入线:ZJLRQD,,COLOR7F00FF,LINETHICK2;资金强弱线:15,COLORFF80FF,LINETHICK2,CROSSDOT;控盘临界线:55,COLORFF937F,LINETHICK2,CROSSDOT;强势控盘线:75,COLORFF3399,LINETHICK2,CROSSDOT;}资金金叉:CROSS(主力控盘线,散户套牢线);{PP超大主力吃}{副图}{流通盘:CAPITAL/1000000,COLOR7F00FF,LINETHICK0;}N:=8;M:=13;P:=60;S:=3;V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;超大主力吃: IF(V4>=0,V4,0),COLOR7F00FF,LINETHICK3;超大主力吐: IF(V4<=0,V4,0),COLOR66FF00,LINETHICK2;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;超大主力吃货线:8,COLORFF80FF,LINETHICK2,CROSSDOT;。
通达信指标公式源码 通达信筹码一线主图 筹码幅图 无未来 源码
DRAWKLINE(H,O,L,C); HB:=COST(99.9);LB:=COST(0.1);B3:=(HB-LB)/50;B31:=HB-B3;B32:=HB-2*B3;B33:=HB-3*B3;B34:=HB-4*B3;B35:=HB-5*B3;B36:=HB-6*B3;B37:=HB-7*B3;B38:=HB-8*B3;B39:=HB-9*B3;B310:=HB-10*B3;B311:=HB-11*B3;B312:=HB-12*B3;B313:=HB-13*B3;B314:=HB-14*B3;B315:=HB-15*B3;B316:=HB-16*B3;B317:=HB-17*B3;B318:=HB-18*B3;B319:=HB-19*B3;B320:=HB-20*B3;B321:=HB-21*B3;B322:=HB-22*B3;B323:=HB-23*B3;B324:=HB-24*B3;B325:=HB-25*B3;B326:=HB-26*B3;B327:=HB-27*B3;B328:=HB-28*B3;B329:=HB-29*B3;B330:=HB-30*B3;B331:=HB-31*B3;B332:=HB-32*B3;B333:=HB-33*B3;B334:=HB-34*B3;B335:=HB-35*B3;B336:=HB-36*B3;B337:=HB-37*B3;B338:=HB-38*B3;B339:=HB-39*B3;B340:=HB-40*B3;B341:=HB-41*B3;B342:=HB-42*B3;B343:=HB-43*B3;B344:=HB-44*B3;B345:=HB-45*B3;B346:=HB-46*B3;B347:=HB-47*B3;B348:=HB-48*B3;B349:=HB-49*B3;A1:=WINNER(HB)*100-WINNER(B31)*100;A2:=WINNER(B31)*100-WINNER(B32)*100;A3:=WINNER(B32)*100-WINNER(B33)*100;A4:=WINNER(B33)*100-WINNER(B34)*100;A5:=WINNER(B34)*100-WINNER(B35)*100;A6:=WINNER(B35)*100-WINNER(B36)*100;A7:=WINNER(B36)*100-WINNER(B37)*100;A8:=WINNER(B37)*100-WINNER(B38)*100;A9:=WINNER(B38)*100-WINNER(B39)*100;A10:=WINNER(B39)*100-WINNER(B310)*100; A11:=WINNER(B310)*100-WINNER(B311)*100; A12:=WINNER(B311)*100-WINNER(B312)*100; A13:=WINNER(B312)*100-WINNER(B313)*100; A14:=WINNER(B313)*100-WINNER(B314)*100; A15:=WINNER(B314)*100-WINNER(B315)*100; A16:=WINNER(B315)*100-WINNER(B316)*100; A17:=WINNER(B316)*100-WINNER(B317)*100; A18:=WINNER(B317)*100-WINNER(B318)*100; A19:=WINNER(B318)*100-WINNER(B319)*100; A20:=WINNER(B319)*100-WINNER(B320)*100;A21:=WINNER(B320)*100-WINNER(B321)*100;A22:=WINNER(B321)*100-WINNER(B322)*100;A23:=WINNER(B322)*100-WINNER(B323)*100;A24:=WINNER(B323)*100-WINNER(B324)*100;A25:=WINNER(B324)*100-WINNER(B325)*100;A26:=WINNER(B325)*100-WINNER(B326)*100;A27:=WINNER(B326)*100-WINNER(B327)*100;A28:=WINNER(B327)*100-WINNER(B328)*100;A29:=WINNER(B328)*100-WINNER(B329)*100;A30:=WINNER(B329)*100-WINNER(B330)*100;A31:=WINNER(B330)*100-WINNER(B331)*100;A32:=WINNER(B331)*100-WINNER(B332)*100;A33:=WINNER(B332)*100-WINNER(B333)*100;A34:=WINNER(B333)*100-WINNER(B334)*100;A35:=WINNER(B334)*100-WINNER(B335)*100;A36:=WINNER(B335)*100-WINNER(B336)*100;A37:=WINNER(B336)*100-WINNER(B337)*100;A38:=WINNER(B337)*100-WINNER(B338)*100;A39:=WINNER(B338)*100-WINNER(B339)*100;A40:=WINNER(B339)*100-WINNER(B340)*100;A41:=WINNER(B340)*100-WINNER(B341)*100;A42:=WINNER(B341)*100-WINNER(B342)*100;A43:=WINNER(B342)*100-WINNER(B343)*100;A44:=WINNER(B343)*100-WINNER(B344)*100;A45:=WINNER(B344)*100-WINNER(B345)*100;A46:=WINNER(B345)*100-WINNER(B346)*100;A47:=WINNER(B346)*100-WINNER(B347)*100;A48:=WINNER(B347)*100-WINNER(B348)*100;A49:=WINNER(B348)*100-WINNER(B349)*100;A50:=WINNER(B349)*100-WINNER(LB)*100;STICKLINE(ISLASTBAR,HB ,HB ,A1*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B31 ,B31 ,A1*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B32 ,B32 ,A2*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B33 ,B33 ,A3*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B34 ,B34 ,A4*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B35 ,B35 ,A5*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B36 ,B36 ,A6*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B37 ,B37 ,A7*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B38 ,B38 ,A8*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B39 ,B39 ,A9*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B310 ,B310 ,A10*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B311 ,B311 ,A11*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B312 ,B312 ,A12*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B313 ,B313 ,A13*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B314 ,B314 ,A14*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B315 ,B315 ,A15*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B316 ,B316 ,A16*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B317 ,B317 ,A17*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B318 ,B318 ,A18*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B319 ,B319 ,A19*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B320 ,B320 ,A20*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B321 ,B321 ,A21*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B322 ,B322 ,A22*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B323 ,B323 ,A23*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B324 ,B324 ,A24*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B325 ,B325 ,A25*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B326 ,B326 ,A26*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B327 ,B327 ,A27*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B328 ,B328 ,A28*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B329 ,B329 ,A29*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B330 ,B330 ,A30*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B331 ,B331 ,A31*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B332 ,B332 ,A32*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B333 ,B333 ,A33*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B334 ,B334 ,A34*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B335 ,B335 ,A35*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B336 ,B336 ,A36*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B337 ,B337 ,A37*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B338 ,B338 ,A38*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B339 ,B339 ,A39*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B340 ,B340 ,A40*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B341 ,B341 ,A41*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B342 ,B342 ,A42*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B343 ,B343 ,A43*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B344 ,B344 ,A44*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B345 ,B345 ,A45*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B346 ,B346 ,A46*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B347 ,B347 ,A47*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B348 ,B348 ,A48*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,LB ,LB ,A50*15 ,0 ),COLORRED;当前获利筹码:=IF(WINNER(CLOSE),WINNER(CLOSE)*100,0);ZX2:=MIN(A1,MIN(A2,MIN(A3,MIN(A4,MIN(A5,MIN(A6,MIN(A7,MIN(A8,MIN(A9,MIN(A 10,MIN(A11,MIN(A12,MIN(A13,MIN(A14,MIN(A15,MIN(A16,MIN(A17,MIN(A18,MIN(A1 9,MIN(A20,MIN(A21,MIN(A22,MIN(A23,MIN(A24,MIN(A25,MIN(A26,MIN(A27,MIN(A28, MIN(A29,MIN(A30,MIN(A31,MIN(A32,MIN(A33,MIN(A34,MIN(A35,MIN(A36,MIN(A37,M IN(A38,MIN(A39,MIN(A40,MIN(A41,MIN(A42,MIN(A43,MIN(A44,MIN(A45,MIN(A46,MI N(A47,MIN(A48,MIN(A49,A50)))))))))))))))))))))))))))))))))))))))))))))))));筹码最低处:COST(ZX2),COLORMAGENTA;DRAWTEXT(ISLASTBAR,筹码最低处,'筹码最低价'),COLORMAGENTA;ZX1:=MAX(A1*15,MAX(A2*15,MAX(A3*15,MAX(A4*15,MAX(A5*15,MAX(A6*15,MAX(A 7*15,MAX(A8*15,MAX(A9*15,MAX(A10*15,MAX(A11*15,MAX(A12*15,MAX(A13*15,M AX(A14*15,MAX(A15*15,MAX(A16*15,MAX(A17*15,MAX(A18*15,MAX(A19*15,MAX(A 20*15,MAX(A21*15,MAX(A22*15,MAX(A23*15,MAX(A24*15,MAX(A25*15,MAX(A26*15 ,MAX(A27*15,MAX(A28*15,MAX(A29*15,MAX(A30*15,MAX(A31*15,MAX(A32*15,MAX (A33*15,MAX(A34*15,MAX(A35*15,MAX(A36*15,MAX(A37*15,MAX(A38*15,MAX(A39* 15,MAX(A40*15,MAX(A41*15,MAX(A42*15,MAX(A43*15,MAX(A44*15,MAX(A45*15,M AX(A46*15,MAX(A47*15,MAX(A48*15,MAX(A49*15,A50*15)))))))))))))))))))))))))))))))))))) )))))))))))));筹码最集中处:COST(ZX1/15),COLORRED,LINETHICK2;入1:IF(筹码最集中处>REF(筹码最集中处,1),筹码最集中处,DRAWNULL),COLORRED,LINETHICK2;出1:IF(筹码最集中处<REF(筹码最集中处,1),筹码最集中处,DRAWNULL),COLORGREEN,LINETHICK2;DRAWTEXT(ISLASTBAR,筹码最集中处,'筹码集中价'),COLORWHITE;STICKLINE(筹码最集中处>LOW AND 筹码最集中处<HIGH,筹码最集中处,MIN(MIN(OPEN,CLOSE),筹码最集中处),2,0),COLORMAGENTA;STICKLINE(筹码最集中处>MIN(C,O) AND 筹码最集中处<MAX(C,O),筹码最集中处,MIN(OPEN,CLOSE),2,0),COLORMAGENTA;STICKLINE(筹码最集中处>HIGH,OPEN,CLOSE,2,0),COLORMAGENTA;STICKLINE(筹码最集中处>HIGH,HIGH,LOW,0,0),COLORMAGENTA;STICKLINE(筹码最集中处>LOW AND 筹码最集中处<HIGH,筹码最集中处,MIN(MIN(OPEN,CLOSE),筹码最集中处),1.5,0),COLORGREEN;STICKLINE(筹码最集中处>MIN(C,O) AND 筹码最集中处<MAX(C,O),筹码最集中处,MIN(OPEN,CLOSE),2,0),COLORGREEN;STICKLINE(筹码最集中处>HIGH,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE(筹码最集中处>HIGH,HIGH,LOW,0,0),COLORGREEN;筹码幅图公式穿越筹码:ABS(WINNER(CLOSE)-WINNER(OPEN))*100,STICK,COLORDDDDFF;换手率::VOL/CAPITAL*100,STICK,COLORFF0099;地量换手:1/换手率:*100,STICK,COLORRED,LINETHICK3;A1:=LLV(HIGH,240);MYP:=100*(CLOSE-A1)/A1;A2:=REF(HHV(CLOSE,240),1);B2:=REF(LLV(CLOSE,240),1);RPY:=100*(CLOSE -B2)/(A2-B2);A3:=1.1*CLOSE;B3:=0.9*CLOSE;ASR:=100*(WINNER(A3)-WINNER(B3));A4:=WINNER(CLOSE);A5:=DMA(A4,VOL/CAPITAL);B4:=DMA(VOL,VOL/CAPITAL)/CAPITAL;A6:=100*VOL/CAPITAL;B6:=100*(WINNER(CLOSE)-REF(WINNER(CLOSE),1));A7:=ABS(B6/A6);CYA:A4/B4*50,COLOR00FF00;CYB:EMA(A4/B4*50,34),COLORFF00FF;CYC::A5/B4*50,COLORFFFF99;CYD:WINNER(CLOSE)/(VOL/CAPITAL),COLORYELLOW,STICK,LINETHICK4; STICKLINE(A7>30 AND (VOL/CAPITAL*100)<=3,地量换手,0,3,0),COLORWHITE; STICKLINE(RPY<75 AND MYP<30 AND ASR>60 AND 穿越筹码>=24 AND (VOL/CAPITAL*100)<=3 AND C>=O,地量换手,0,10,0),COLORFF00FF; STICKLINE(RPY<75 AND MYP<30 AND ASR>60 AND 穿越筹码>=24 AND (VOL/CAPITAL*100)<=3 AND C< O,地量换手,0,10,0),COLORFFFF33;筹码穿透率:=B6/A6;STICKLINE(筹码穿透率>10 AND CLOSE/REF(CLOSE,1)>=1.05 AND换手率:<=3,地量换手,0,10,0),COLORBLUE;。
筹码主图公式通达信指标公式源码
筹码主图公式TS:=130;N:=99;M:=3;MT:=3;M1:=5;M2:=7;M3:=21;M4:=12;M5:=50;DA1:=IF(TS>TOTALBARSCOUNT,TOTALBARSCOUNT,TS);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFDATE(HHV(H,DA),DATE);LO:=REFDATE(LLV(L,DA),DATE);C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);GZ:=EXP(LN(HI/LO)/10);LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA); LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA); LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA); LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA); LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA); LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA); LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;L4:=REFDATE(HHV(LH4,DA),DATE);L5:=REFDATE(HHV(LH5,DA),DATE);L6:=REFDATE(HHV(LH6,DA),DATE);L7:=REFDATE(HHV(LH7,DA),DATE);L8:=REFDATE(HHV(LH8,DA),DATE);L9:=REFDATE(HHV(LH9,DA),DATE);L10:=REFDATE(HHV(LH10,DA),DATE);SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,HI*N/100,(HI/GZ),1, 1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*N/10 0,HI/POW(GZ,2),1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*N/10 0,HI/POW(GZ,3),1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*N/100,HI/POW(GZ,4),1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*N/10 0,HI/POW(GZ,5),1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*N/10 0,HI/POW(GZ,6),1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*N/10 0,HI/POW(GZ,7),1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*P OW(GZ,3)*N/100,1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*P OW(GZ,2)*N/100,1,1)COLOR656566,LINETHICK1;STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)* N/100,1,1)COLOR656566,LINETHICK1;DRAWKLINE(H,O,L,C);JJ:=(CLOSE+HIGH+LOW)/3;{BS标志}DRAWICON((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)),LOW*0.98,7);DRAWICON((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)),HIGH*1.02,8);VAR1:=ZIG(3,10)<REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)>REF(ZIG(3,10),2);VAR2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2); STICKLINE(VAR1,C,O,3,0),COLORYELLOW,LINETHICK2;STICKLINE(VAR1,C,O,1,0),COLORYELLOW,LINETHICK2;STICKLINE(VAR1,H,L,0,0),COLORYELLOW,LINETHICK2;STICKLINE(VAR2,C,O,3,0),COLORFF0FF0,LINETHICK2;STICKLINE(VAR2,C,O,2,0),COLORFF0FF0,LINETHICK2;STICKLINE(VAR2,H,L,1,0),COLORFF0FF0,LINETHICK2;DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CL OSE,20)),HIGH*1.06,'-落袋为安'),COLORYELLOW;EXP7:EXPMA(CLOSE,M2),COLORWHITE,LINETHICK1;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299,NODRAW;高区:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,DOTLINE;低区:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,DOTLI NE;STICKLINE(CCI>=200 AND H>=高区,O,C,3,0),COLORBLUE;STICKLINE(CCI<=100 AND L<=低区,O,C,3,0),COLORYELLOW;。
通达信筹码分布主图源码指标公式
通达信筹码分布主图源码指标公式股票公式不明白请查阅:股票公式文件使用以及说明!{宝塔线}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);STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),8,0),COLOR0000AA;{红1}STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),6,0),COLOR0000CC;{红1}STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),4,0),COLOR0000DD;{红1}STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),2,0),COLOR0000FF;{红1}STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),0,0),COLORYELLOW;{红1}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) ANDCLOSE>=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);STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),8,0),COLOR998855;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),6,0),COLORBBAA77;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),4,0),COLORDDCC99;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),2,0),COLORFFEEBB;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),0,0),COLORCYAN;VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),8,0),COLOR00 FFFF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),6,0),COLOR00 C8FF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR10 ECFF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10 FFFF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),0,0),COLOR10 F0FF;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;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),8,0),COLOR00 D900;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),6,0),COLOR93 FFD1;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR93 FF22;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR24 FF22;{● 筹码分布主图指标底线:COST(30),COLOR00FF00, LINETHICK2;拉升线:COST(70),COLORFF00FF,LINETHICK2;逃顶线:=COST(90);风险线:=HHV(COST(90),20);VV:=HHV(COST(90),10);XX:=LLV(COST(70),20);市场重心:(HHV(H,0)+LLV(L,0))/2,COLORYELLOW,LINETHICK2; 套牢筹码:STICKLINE(逃顶线<VV,逃顶线,VV,8,0),COLORFFFF00;。
通达信指标公式源码 自用看筹码主图
m 1 999 80 HB:=COST(99.9); LB:=COST(0.1); B3:=(HB-LB)/50; B31:=HB-B3;B32:=HB-2*B3; B33:=HB-3*B3; B34:=HB-4*B3; B35:=HB-5*B3; B36:=HB-6*B3; B37:=HB-7*B3; B38:=HB-8*B3; B39:=HB-9*B3; B310:=HB-10*B3; B311:=HB-11*B3; B312:=HB-12*B3; B313:=HB-13*B3; B314:=HB-14*B3; B315:=HB-15*B3; B316:=HB-16*B3; B317:=HB-17*B3; B318:=HB-18*B3; B319:=HB-19*B3;B320:=HB-20*B3;B321:=HB-21*B3;B322:=HB-22*B3;B323:=HB-23*B3;B324:=HB-24*B3;B325:=HB-25*B3;B326:=HB-26*B3;B327:=HB-27*B3;B328:=HB-28*B3;B329:=HB-29*B3;B330:=HB-30*B3;B331:=HB-31*B3;B332:=HB-32*B3;B333:=HB-33*B3;B334:=HB-34*B3;B335:=HB-35*B3;B336:=HB-36*B3;B337:=HB-37*B3;B338:=HB-38*B3;B339:=HB-39*B3;B340:=HB-40*B3;B341:=HB-41*B3;B342:=HB-42*B3;B343:=HB-43*B3;B344:=HB-44*B3;B345:=HB-45*B3;B346:=HB-46*B3;B347:=HB-47*B3;B348:=HB-48*B3;B349:=HB-49*B3;A1:=WINNER(HB)*100-WINNER(B31)*100;A2:=WINNER(B31)*100-WINNER(B32)*100;A3:=WINNER(B32)*100-WINNER(B33)*100;A4:=WINNER(B33)*100-WINNER(B34)*100;A5:=WINNER(B34)*100-WINNER(B35)*100;A6:=WINNER(B35)*100-WINNER(B36)*100;A7:=WINNER(B36)*100-WINNER(B37)*100;A8:=WINNER(B37)*100-WINNER(B38)*100;A9:=WINNER(B38)*100-WINNER(B39)*100;A10:=WINNER(B39)*100-WINNER(B310)*100; A11:=WINNER(B310)*100-WINNER(B311)*100; A12:=WINNER(B311)*100-WINNER(B312)*100; A13:=WINNER(B312)*100-WINNER(B313)*100; A14:=WINNER(B313)*100-WINNER(B314)*100;A15:=WINNER(B314)*100-WINNER(B315)*100;A16:=WINNER(B315)*100-WINNER(B316)*100;A17:=WINNER(B316)*100-WINNER(B317)*100;A18:=WINNER(B317)*100-WINNER(B318)*100;A19:=WINNER(B318)*100-WINNER(B319)*100;A20:=WINNER(B319)*100-WINNER(B320)*100;A21:=WINNER(B320)*100-WINNER(B321)*100;A22:=WINNER(B321)*100-WINNER(B322)*100;A23:=WINNER(B322)*100-WINNER(B323)*100;A24:=WINNER(B323)*100-WINNER(B324)*100;A25:=WINNER(B324)*100-WINNER(B325)*100;A26:=WINNER(B325)*100-WINNER(B326)*100;A27:=WINNER(B326)*100-WINNER(B327)*100;A28:=WINNER(B327)*100-WINNER(B328)*100;A29:=WINNER(B328)*100-WINNER(B329)*100;A30:=WINNER(B329)*100-WINNER(B330)*100;A31:=WINNER(B330)*100-WINNER(B331)*100;A32:=WINNER(B331)*100-WINNER(B332)*100;A33:=WINNER(B332)*100-WINNER(B333)*100;A34:=WINNER(B333)*100-WINNER(B334)*100;A35:=WINNER(B334)*100-WINNER(B335)*100;A36:=WINNER(B335)*100-WINNER(B336)*100;A37:=WINNER(B336)*100-WINNER(B337)*100;A38:=WINNER(B337)*100-WINNER(B338)*100;A39:=WINNER(B338)*100-WINNER(B339)*100;A40:=WINNER(B339)*100-WINNER(B340)*100;A41:=WINNER(B340)*100-WINNER(B341)*100;A42:=WINNER(B341)*100-WINNER(B342)*100;A43:=WINNER(B342)*100-WINNER(B343)*100;A44:=WINNER(B343)*100-WINNER(B344)*100;A45:=WINNER(B344)*100-WINNER(B345)*100;A46:=WINNER(B345)*100-WINNER(B346)*100;A47:=WINNER(B346)*100-WINNER(B347)*100;A48:=WINNER(B347)*100-WINNER(B348)*100;A49:=WINNER(B348)*100-WINNER(B349)*100;A50:=WINNER(B349)*100-WINNER(LB)*100;MAX1:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(A1,A2),A3),A4),A5),A6 ),A7),A8),A9),A10);MAX2:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(A11,A12),A13),A14),A 15),A16),A17),A18),A19),A20);MAX3:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(A21,A22),A23),A24),A 25),A26),A27),A28),A29),A30);MAX4:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(A31,A32),A33),A34),A 35),A36),A37),A38),A39),A40);MAX5:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(A41,A42),A43),A44),A 45),A46),A47),A48),A49),A50);MAX6:=MAX(MAX(MAX(MAX(MAX1,MAX2),MAX3),MAX4),MAX5);筹码线:IF(MAX6=A1,HB,IF(MAX6=A2,B31,IF(MAX6=A3,B32,IF(MAX6=A4,B33,IF( MAX6=A5,B34,IF(MAX6=A6,B35,IF(MAX6=A7,B36,IF(MAX6=A8,B37,IF(MAX6 =A9,B38,IF(MAX6=A10,B39,IF(MAX6=A11,B310,IF(MAX6=A12,B311,IF(MAX6=A13,B312,IF(MAX6=A14,B 313,IF(MAX6=A15,B314,IF(MAX6=A16,B315,IF(MAX6=A17,B316,IF(MAX6=A 18,B317,IF(MAX6=A19,B318,IF(MAX6=A20,B319,IF(MAX6=A21,B320,IF(MAX6=A22,B321,IF(MAX6=A23,B322,IF(MAX6=A24,B 323,IF(MAX6=A25,B324,IF(MAX6=A26,B325,IF(MAX6=A27,B326,IF(MAX6=A 28,B327,IF(MAX6=A29,B328,IF(MAX6=A30,B329,IF(MAX6=A31,B330,IF(MAX6=A32,B331,IF(MAX6=A33,B332,IF(MAX6=A34,B 333,IF(MAX6=A35,B334,IF(MAX6=A36,B335,IF(MAX6=A37,B336,IF(MAX6=A 38,B337,IF(MAX6=A39,B338,IF(MAX6=A40,B339,IF(MAX6=A41,B340,IF(MAX6=A42,B341,IF(MAX6=A43,B342,IF(MAX6=A44,B 343,IF(MAX6=A45,B344,IF(MAX6=A46,B345,IF(MAX6=A47,B346,IF(MAX6=A 48,B347,IF(MAX6=A49,B348,IF(MAX6=A50,B349,LB)))))))))))))))))))))))))))))) )))))))))))))))))))),LINETHICK2,COLORFF00FF;STICKLINE(CROSS(C,筹码线),C,O,1,0),COLOR00FFFF;TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF( CLOSE,1)-LOW)));ATR:=MA(TLAMSENR,13);VAR1A:=(REF(CLOSE,1)-REF(ATR,1));黄金线:(HHV(VAR1A,12)),LINETHICK2,COLOR0080FF;半年开盘价:REF(O,BARSLAST(MOD(MONTH,6)=0)-1),COLOR009900,LINETHICK3;年:=YEAR,NODRAW;月:=MONTH,NODRAW;星期:=WEEKDAY,NODRAW;日1:=DATETODAY(DATE);上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);自然日:=日1-DATETODAY(上市日)+1;ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1)OR TOTALBARSCOUNT-CURRBARSCOUNT=0;本周第几天:=BARSLAST(ZB)+1;本月第几天:=BARSLAST(年*100+月!=REF(年*100+月,1))+1;MA1:=REF(C,本周第几天);MA2:=REF(MA1,本周第几天);MA3:=REF(MA2,本周第几天);MA4:=REF(MA3,本周第几天);MA5:=REF(MA4,本周第几天);MA6:=REF(MA5,本周第几天);MA7:=REF(MA6,本周第几天);MA8:=REF(MA7,本周第几天);MA9:=REF(MA8,本周第几天);十周价:=(C+MA1+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9)/10;出击突破:REFDATE(十周价,DATE),COLORWHITE,DOTLINE;DRAWTEXT(ISLASTBAR,出击突破,' --------出击突破'),COLORWHITE;N:=10;T1:=CONST(HHVBARS(V,N));T0:IF(CURRBARSCOUNT<=N+3,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL), COLORWHITE;IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT,COLORWHITE; DRAWTEXT(ISLASTBAR,T0,' --------量能平台'),COLORWHITE;DP:=IF(C=INDEXC,0,1);GJ:=AMOUNT/V/100;【明日阻力】:L+(GJ-L)+(C-L),COLORRED,NODRAW;【明日支撑】:L+(C-GJ),NODRAW;{通达信单阳不破}单阳:=C>O*1.03 AND VOL>REF(VOL,1)*1.5;不破价:=REF(L,BARSLAST(单阳));DRAWTEXT(单阳,L-L*0.02,'阳'),COLOR00FFFF;LS0:=BARSLAST(单阳);LS11:=IF(1,LS0=1,单阳);LS21:=IF(1,LLV(L,1)>REF(L,1),1);单阳不破:=LS11 AND LS21;STICKLINE(单阳不破,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破,不破价-不破价*0.02,'1'),COLORGREEN;LS12:=IF(2,LS0=2,单阳);LS22:=IF(2,LLV(L,2)>REF(L,2),1);单阳不破2:=LS12 AND LS22;STICKLINE(单阳不破2,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破2,不破价-不破价*0.02,'2'),COLORGREEN;LS13:=IF(3,LS0=3,单阳);LS23:=IF(3,LLV(L,3)>REF(L,3),1);单阳不破3:=LS13 AND LS23;STICKLINE(单阳不破3,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破3,不破价-不破价*0.02,'3'),COLORGREEN;LS14:=IF(4,LS0=4,单阳);LS24:=IF(4,LLV(L,4)>REF(L,4),1);单阳不破4:=LS14 AND LS24;STICKLINE(单阳不破4,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破4,不破价-不破价*0.02,'4'),COLORGREEN;LS15:=IF(5,LS0=5,单阳);LS25:=IF(5,LLV(L,5)>REF(L,5),1);单阳不破5:=LS15 AND LS25;STICKLINE(单阳不破5,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破5,不破价-不破价*0.02,'5'),COLORGREEN;LS16:=IF(6,LS0=6,单阳);LS26:=IF(6,LLV(L,6)>REF(L,6),1);单阳不破6:=LS16 AND LS26;STICKLINE(单阳不破6,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破6,不破价-不破价*0.02,'6'),COLORGREEN;LS17:=IF(7,LS0=7,单阳);LS27:=IF(7,LLV(L,7)>REF(L,7),1);单阳不破7:=LS17 AND LS27;STICKLINE(单阳不破7,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破7,不破价-不破价*0.02,'7'),COLORGREEN;LS18:=IF(8,LS0=8,单阳);LS28:=IF(8,LLV(L,8)>REF(L,8),1);单阳不破8:=LS18 AND LS28;STICKLINE(单阳不破8,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破8,不破价-不破价*0.02,'8'),COLORGREEN;LS19:=IF(9,LS0=9,单阳);LS29:=IF(9,LLV(L,9)>REF(L,9),1);单阳不破9:=LS19 AND LS29;STICKLINE(单阳不破9,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破9,不破价-不破价*0.02,'9'),COLORGREEN;LS110:=IF(10,LS0=10,单阳);LS210:=IF(10,LLV(L,10)>REF(L,10),1);单阳不破10:=LS110 AND LS210;STICKLINE(单阳不破10,不破价-不破价*0.002,不破价,4,0),COLORRED; DRAWTEXT(单阳不破10,不破价-不破价*0.02,'10'),COLORGREEN; {黄金分割线}顶1:=REFDATE(HHV(H,M),DATE);底1:=REFDATE(LLV(L,M),DATE);H1:=顶1-(顶1-底1)*0.191;H2:=顶1-(顶1-底1)*0.382;H3:=顶1-(顶1-底1)*0.5;H4:=顶1-(顶1-底1)*0.618;H5:=顶1-(顶1-底1)*0.809;顶:REFDATE(顶1,DATE),COLOR666666,DOTLINE;%19.8:REFDATE(H1,DATE),COLOR666666,DOTLINE;%38.2:REFDATE(H2,DATE),COLOR666666,DOTLINE;%50:REFDATE(H3,DATE),COLOR666666,DOTLINE;%61.8:REFDATE(H4,DATE),COLOR666666,DOTLINE;%80.9:REFDATE(H5,DATE),COLOR666666,DOTLINE;底:REFDATE(底1,DATE),COLOR666666,DOTLINE;DRAWTEXT(ISLASTBAR,顶,' 顶'),COLORGREEN;DRAWTEXT(ISLASTBAR,底,' 底'),COLORRED;。
通达信筹码峰分布主图指标公式
通达信筹码峰分布主图指标公式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;DRAWTEXT_FIX(ISLASTBAR,0,0.09,0,EXTERNSTR(0,12)),COLO RLIGREEN;{老王}DRAWTEXT_FIX(ISLASTBAR,0,0.03,0,EXTERNSTR(0,3)),COLO RWHITE;DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,EXTERNSTR(0,6)),COLO RLIBLUE;X_1:=ma(CLOSE,4);X_2:=MA(CLOSE,13);X_3:=MA(CLOSE,24);X_4:=MA(CLOSE,30);X_5:=MA(CLOSE,120);AA:=Abs((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);济安线:=DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLORMA GENTA;X_6:=X_2>X_3 AND X_3>X_4 AND X_4>X_5 AND X_2>REF(X_2,1) AND X_3>REF(X_3,1) AND X_4>REF(X_4,1) AND X_5>=REF(X_5,1);X_7:=ATAN((MA(CLOSE,13)/REF(MA(CLOSE,13),1)-1)*100)*57.299999;X_8:=120;X_9:=MA(CLOSE,X_8);X_10:=POW(CLOSE-X_9,2);X_11:=MA(X_10,X_8);X_12:=SQRT(X_11);X_13:=X_9+2*X_12;X_14:=X_9-2*X_12;筹码线:REF(X_13,1),COLORYELLOW,LINETHICK2;趋势线:MA(CLOSE,24),COLORRED,LINETHICK2;X_15:=(3*CLOSE+OPEN+LOW+HIGH)/6;X_16:=(20*X_15+19*REF(X_15,1)+18*REF(X_15,2)+17*REF(X_ 15,3)+16*REF(X_15,4)+15*REF(X_15,5)+14*REF(X_15,6)+13*REF( X_15,7)+12*REF(X_15,8)+11*REF(X_15,9)+10*REF(X_15,10)+9*RE F(X_15,11)+8*REF(X_15,12)+7*REF(X_15,13)+6*REF(X_15,14)+5* REF(X_15,15)+4*REF(X_15,16)+3*REF(X_15,17)+2*REF(X_15,18)+ REF(X_15,20))/210;X_17:=MA(X_16,7);X_18:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;X_19:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;X_20:=IF(CLOSE>REF(CLOSE,1),vol,-VOL);X_21:=SUM(IF(CLOSE=REF(CLOSE,1),0,X_20),0);X_22:=MA(X_21,30);X_23:=VOL;X_24:=X_23>REF(HHV(X_23,30),1);X_25:=X_21>X_22;X_26:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=10-0.01*100/REF(OPEN,1),1,0);X_27:=HIGH>=HHV(HIGH,20);X_28:=REF(X_26,1);X_29:=COUNT(X_28,5)>=1;X_30:=COUNT(X_28,13)>=1;X_31:=OPEN<=REF(CLOSE,1) AND X_18<(-2);X_32:=COUNT(X_31,2)>=1;X_33:=X_29 AND X_18>2.5 AND REF(X_32,1) AND REF(X_18<2.4,1) AND X_4>0;X_34:=X_33 AND COUNT(X_33,30)=1 ;STICKLINE(X_26,OPEN,CLOSE,2,0),COLORYELLOW;X_35:=HIGH>=HHV(HIGH,150);X_36:=X_35=1 AND BArslAST(REF(X_35=1,1))>=1 AND X_18>3;DRAWICON(FILTER(X_36=1,1),LOW-0.2,25),COLORYELLOW;X_37:=VOL>MA(VOL,89);X_38:=X_37=1 AND BARSLAST(REF(X_37=1,1))>=6 AND HIGH>济安线 AND X_4>X_5;STICKLINE(X_34,OPEN,CLOSE,1,0),COLORF00FF0;X_39:=X_6 AND CLOSE>X_2 AND LOW<=X_2 AND CLOSE>OPEN AND X_7>47 AND X_30;DRAWICON(X_34,LOW,24);DRAWICON(X_34,LOW-0.3,25);DRAWICON(X_34,LOW-0.6,26);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);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND crOSS(A8,MA(A8,2));{DRAWICON(FILTER(买=1,5),LOW-0.05,26),COLORYELLOW;} STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;。
通达信Ⅹ-筹码天机公式源码如下
通达信Ⅹ-筹码天机公式源码如下通达信Ⅹ-筹码天机公式源码如下:MA3:="MASS.A";MA5:="MASS.B";量能博弈:=(VOL >= HHV(VOL,10));FV:=VOL;量能博弈平台:((REF((((HIGH + LOW) + (3 * CLOSE)) / 5),BARSLAST(量能博弈)) * MA3) /MA5),LINETHICK0,colorFFFFFF;异动雷达:=SUMBARS((REF(FV,1) - FV),0);上:=REF(HIGH,BARSLAST(量能博弈));下:=REF(LOW,BARSLAST(量能博弈));V AR1:=(INBLOCK('A股板块') OR INBLOCK('B股板块')); 量能博弈平台上:REF(HIGH,BARSLAST(量能博弈)),LINETHICK0,colorFFFFFF;量能博弈平台下:REF(LOW,BARSLAST(量能博弈)),LINETHICK0,colorFFFFFF;短线超跌:=(MA(CLOSE,14) * 0.9);黄色博弈:=(量能博弈AND (异动雷达> 300));蓝色博弈:=(量能博弈AND BETWEEN(异动雷达,100,300)); 青色博弈:=((量能博弈AND (((VOL / CAPITAL) * 100) >=3)) AND (异动雷达= 100));平台上:=REF(HIGH,BARSLAST(筹码分布));平台下:=REF(LOW,BARSLAST(筹码分布));平台:=REF((((HIGH + LOW) + (3 * CLOSE)) /5),BARSLAST(筹码分布));A1:=REF((HIGH - ((HIGH - LOW) * 0.1)),BARSLAST(筹码分布));A2:=REF((HIGH - ((HIGH - LOW) * 0.2)),BARSLAST(筹码分布));A3:=REF((HIGH - ((HIGH - LOW) * 0.3)),BARSLAST(筹码分布));A4:=REF((HIGH - ((HIGH - LOW) * 0.4)),BARSLAST(筹码分布));A5:=REF((HIGH - ((HIGH - LOW) * 0.5)),BARSLAST(筹码分布));A6:=REF((HIGH - ((HIGH - LOW) * 0.6)),BARSLAST(筹码分布));A7:=REF((HIGH - ((HIGH - LOW) * 0.7)),BARSLAST(筹码分布));A8:=REF((HIGH - ((HIGH - LOW) * 0.8)),BARSLAST(筹码分布));A9:=REF((HIGH - ((HIGH - LOW) * 0.9)),BARSLAST(筹码分布));DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),平台上,'﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A1,'﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A2,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A3,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A4,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A5,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A6,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A7,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A8,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A9,'﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),平台下,'﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),平台上,'﹌﹌﹌'),ALIGN1,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A1,'﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A2,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A3,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A4,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A5,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A6,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 =MA5)),A7,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A8,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),A9,'﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),平台下,'﹌﹌﹌'),ALIGN1,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),平台,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND (MA3 = MA5)),平台,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFF; 上市首日:=IF((VAR1 = 1),(BARSCOUNT(CLOSE) = 1),0);消失条件:=(COUNT(筹码分布,BARSCOUNT(CLOSE)) = 0); 平台上0:=REF(HIGH,BARSLAST(上市首日));平台下0:=REF(LOW,BARSLAST(上市首日));平台0:=REF((((HIGH + LOW) + (3 * CLOSE)) /5),BARSLAST(上市首日));A10:=REF((HIGH - ((HIGH - LOW) * 0.1)),BARSLAST(上市首日));A20:=REF((HIGH - ((HIGH - LOW) * 0.2)),BARSLAST(上市首日));A30:=REF((HIGH - ((HIGH - LOW) * 0.3)),BARSLAST(上市首日));A40:=REF((HIGH - ((HIGH - LOW) * 0.4)),BARSLAST(上市首日));A50:=REF((HIGH - ((HIGH - LOW) * 0.5)),BARSLAST(上市首日));A60:=REF((HIGH - ((HIGH - LOW) * 0.6)),BARSLAST(上市首日));A70:=REF((HIGH - ((HIGH - LOW) * 0.7)),BARSLAST(上市首日));A80:=REF((HIGH - ((HIGH - LOW) * 0.8)),BARSLAST(上市首日));A90:=REF((HIGH - ((HIGH - LOW) * 0.9)),BARSLAST(上市首日));DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),平台上0,'﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A10,'﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A20,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A30,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A40,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A50,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A60,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A70,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A80,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A90,'﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFFFF00; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),平台下0,'﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),平台上0,'﹌﹌﹌'),ALIGN1,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A10,'﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A20,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A30,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A40,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A50,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A60,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A70,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A80,'﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),A90,'﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFFFF00; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),平台下0,'﹌﹌﹌'),ALIGN1,colorFF;DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),平台0,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFF; DRAWTEXT(((SYSPARAM(1) = BARPOS) AND 消失条件),平台0,'﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFF;台上:=REF(HIGH,BARSLAST(青色博弈));台下:=REF(LOW,BARSLAST(青色博弈));台:=REF((((HIGH + LOW) + (3 * CLOSE)) /5),BARSLAST(青色博弈));A11:=REF((HIGH - ((HIGH - LOW) * 0.1)),BARSLAST(青色博弈));A21:=REF((HIGH - ((HIGH - LOW) * 0.2)),BARSLAST(青色博弈));A31:=REF((HIGH - ((HIGH - LOW) * 0.3)),BARSLAST(青色博弈));A41:=REF((HIGH - ((HIGH - LOW) * 0.4)),BARSLAST(青色博弈));A51:=REF((HIGH - ((HIGH - LOW) * 0.5)),BARSLAST(青色博弈));A61:=REF((HIGH - ((HIGH - LOW) * 0.6)),BARSLAST(青色博弈));A71:=REF((HIGH - ((HIGH - LOW) * 0.7)),BARSLAST(青色博弈));A81:=REF((HIGH - ((HIGH - LOW) * 0.8)),BARSLAST(青色博弈));A91:=REF((HIGH - ((HIGH - LOW) * 0.9)),BARSLAST(青色博弈));清晰转换A:=(COUNT(CROSS(台,平台),BARSLAST(青色博弈)) = 0);清晰转换B:=(COUNT(CROSS(平台,台),BARSLAST(青色博弈)) = 0);DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),台上,'﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A11,'﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A21,'﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A31,'﹋﹋﹋﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A41,'﹋﹋﹋﹋﹋﹋﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A51,'﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A61,'﹋﹋﹋﹋﹋﹋﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A71,'﹋﹋﹋﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A81,'﹋﹋﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A91,'﹋'),ALIGN2,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),台下,'﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),台上,'﹌﹌﹌'),ALIGN1,colorFF;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A11,'﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A21,'﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A31,'﹋﹋﹋﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A41,'﹋﹋﹋﹋﹋﹋﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A51,'﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A61,'﹋﹋﹋﹋﹋﹋﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A71,'﹋﹋﹋﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A81,'﹋﹋﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),A91,'﹋'),ALIGN1,colorFF00;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),台下,'﹌﹌﹌'),ALIGN1,colorFF;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),台,'﹌﹌﹌﹌﹌﹌'),ALIGN2,colorFF;DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 清晰转换A) AND 清晰转换B) AND (MA3 = MA5)),台,'﹌﹌﹌﹌﹌﹌'),ALIGN1,colorFF;现象:=((("CMFB.X1" OR "CMFB.X2") OR "CMFB.X3") OR "CMFB.X4");DRAWICON(((现象AND BETWEEN(CLOSE,平台下,平台)) AND (MA3 = MA5)),LOW,1);EXPLAIN((现象AND BETWEEN(CLOSE,平台下,平台)),'主仓成本下限\n'),colorFFFF;DRAWICON(((现象AND BETWEEN(CLOSE,平台上,平台)) AND (MA3 = MA5)),LOW,1);EXPLAIN((现象AND BETWEEN(CLOSE,平台上,平台)),'主仓成本均价\n'),colorFFFF;DRAWICON(((现象AND BETWEEN(CLOSE,平台上,(平台上* 1.03))) AND (MA3 = MA5)),LOW,1);EXPLAIN((现象AND BETWEEN(CLOSE,平台上,(平台上* 1.03))),'主仓成本上限\n'),colorFFFF;DRAWICON((((现象AND (CLOSE > 平台上)) AND BETWEEN(LOW,平台,(平台上* 1.03))) AND (MA3 =MA5)),LOW,1);EXPLAIN(((现象AND (CLOSE > 平台上)) AND BETWEEN(LOW,平台上,(平台上* 1.03))),'主仓成本上限\n'),colorFFFF;本站所有指标公式源码均未测试,如果该公式不可用请点击报错告诉我们,感谢您的支持! 选股公式网打造最全的股票公式网站。
通达信指标公式源码 主图上加筹码峰公式
DRAWTEXT_FIX(C>0,0.004,0.11,0,DYBLOCK),COLORYELLOW,LINETHICK2; DRAWTEXT_FIX(C>0,0.06,0.11,0,HYBLOCK),COLORRED,LINETHICK2; DRAWTEXT_FIX(C>0,0.12,0.11,0,EXTERNSTR(0,1)),COLORWHITE,LINETHIC K2;DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFDATE(HHV(H,DA),DATE);LO:=REFDATE(LLV(L,DA),DATE);C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);GZ:=EXP(LN(HI/LO)/10);LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA); LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA); LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA); LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA); LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA); LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA); LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;L4:=REFDATE(HHV(LH4,DA),DATE);L5:=REFDATE(HHV(LH5,DA),DATE);L6:=REFDATE(HHV(LH6,DA),DATE);L7:=REFDATE(HHV(LH7,DA),DATE);L8:=REFDATE(HHV(LH8,DA),DATE);L9:=REFDATE(HHV(LH9,DA),DATE);L10:=REFDATE(HHV(LH10,DA),DATE);SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,HI*99/100,HI/GZ,9,0 )COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*99/10 0,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*99/10 0,HI/POW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*99/10 0,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*99/10 0,HI/POW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/10 0,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*99/10 0,HI/POW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*P OW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*P OW(GZ,2)*99/100,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)* 99/100,9,0)COLOR3C3C3A,LINETHICK3;DRAWKLINE(H,O,L,C);MA1:MA(CLOSE,5);MA2:MA(CLOSE,10);MA3:MA(CLOSE,30);MA4:MA(CLOSE,60);VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100; VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100; VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE ,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE ,1)),13,1)*100;VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);{自动画线}HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0; MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COL OR0055FF,POINTDOT;相对高点:DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),C OLORYELLOW,POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L*0.98,1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2;ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),C OLORFF55BB,LINETHICK2;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COL ORMAGENTA,POINTDOT,;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COL ORCYAN,POINTDOT;。
通达信缠论筹码主图指标公式
通达信缠论筹码主图指标公式JJ:AMOUNT/VOL/100;MA144:MA(JJ,144);G:=MA(C,5);D:=MA(C,10);HH:=REF(H,5)=HHV(H,11);LL:=REF(L,5)=LLV(L,11);FG01:=BACKSET(HH,6)>BACKSET(HH,5) ;FD01:=BACKSET(LL,6)>BACKSET(LL,5) ;FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND G>D,FG01,IF(BARSLAST(FD01)>BARSLAST(FG01),FG01,0));FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND D>G,FD01,IF(BARSLAST(FG01)>BARSLAST(FD01),FD01,0));FG0:=FG02 AND H=HHV(H,BARSLAST(FD02));FD0:=FD02 AND L=LLV(L,BARSLAST(FG02));GP:IF(FG0,H,DRAWNULL),CIRCLEDOT,COLORCYAN;DP:IF(FD0,L,DRAWNULL),CIRCLEDOT,COLORCYAN;GQ:=L>REF(H,1) AND DAY!=REF(DAY,1);DQ:=H<REF(L,1) AND DAY!=REF(DAY,1);GQL:=REF(L,BARSLAST(GQ));DQH:=REF(H,BARSLAST(DQ));FGH:=REF(H,BARSLAST(FG0));FGL:=REF(L,BARSLAST(FG0));FGH1:=REF(H,BARSLAST(FG0)+1);FGL1:=REF(L,BARSLAST(FG0)+1);FGH2:=REF(H,BARSLAST(FG0)+2);FGL2:=REF(L,BARSLAST(FG0)+2);FDH:=REF(H,BARSLAST(FD0));FDL:=REF(L,BARSLAST(FD0));FDH1:=REF(H,BARSLAST(FD0)+1);FDL1:=REF(L,BARSLAST(FD0)+1);FDH2:=REF(H,BARSLAST(FD0)+2);FDL2:=REF(L,BARSLAST(FD0)+2);FGZH:=IF(FGL<=FGL1,FGH2,FGH1);FGZL:=IF(FGH1<FGL,FGL,IF(FGL<=FGL1,FGL2,FGL1));FDZH:=IF(FDL1>FDH,FDH,IF(FDH>=FDH1,FDH2,FDH1));FDZL:=IF(FDH>=FDH1,FDL2,FDL1);FG1:=FGH>FDZH AND FG0;FD1:=FDL<FGZL AND FD0;FG:=FG1 AND FGH>FDH AND FGL>FDL AND FGL1>FDL;FD:=FD1 AND FDL<FGL AND FDH<FGH AND FDH1<FGH;BH0:=(H<=REF(H,1) AND L>=REF(L,1)) OR (H>=REF(H,1) AND L<=REF(L,1));BHG:=COUNT(BH0,BARSLAST(FD0));BHD:=COUNT(BH0,BARSLAST(FG0));BGQ:=COUNT(GQ,BARSLAST(FD0));BDQ:=COUNT(DQ,BARSLAST(FG0));BK0:=IF(BHG>0,BHG+2+1,IF(BHD,BHD+2+1,3));BK:=IF(BGQ,BK0-BGQ,IF(BDQ,BK0-BDQ,BK0));G1X:=(FG AND BARSLAST(FD)>BK);D1X:=(FD AND BARSLAST(FG)>BK);G1:=(FG0 AND REF(H,BARSLAST(FG0))>=REF(H,BARSLAST(G1X)) AND BARSLAST(D1X)>BARSLAST(G1X))OR (FG1 AND COUNT(GQ,BARSLAST(FD1))>0 AND REF(H,BARSLAST(FG1))>REF(H,BARSLAST(G1X)));D1:=(FD0 ANDREF(L,BARSLAST(FD0))<=REF(L,BARSLAST(D1X)) AND BARSLAST(G1X)>BARSLAST(D1X))OR (FD1 AND COUNT(DQ,BARSLAST(FG1))>0 AND REF(L,BARSLAST(FD1))<REF(H,BARSLAST(D1X)));G1H:=IF(BARSLAST(D1)>BARSLAST(G1),REF(H,BARSLAST(G 1)),REF(H,BARSLAST(D1))),;D1L:=IF(BARSLAST(G1)>BARSLAST(D1),REF(L,BARSLAST(D1) ),REF(L,BARSLAST(G1)));G2:=G1 AND H=HHV(G1H,BARSLAST(D1)+1) AND H>REF(H,1) AND BARSLAST(D1)>BARSLAST(G1);D2:=D1 AND L=LLV(D1L,BARSLAST(G1)+1) AND L<REF(L,1) AND BARSLAST(G1)>BARSLAST(D1);G3:=G2 OR (FG0 AND REF(H,BARSLAST(FG0))>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2));D3:=D2 OR (FD0 AND REF(L,BARSLAST(FD0))<REF(L,BARSLAST(D2)) AND BARSLAST(G2)>BARSLAST(D2));GPB:IF(G1X,H,DRAWNULL),CIRCLEDOT,COLORYELLOW;DPB:IF(D1X,L,DRAWNULL),CIRCLEDOT,COLORYELLOW;{画线}NN:=G3;UU:=D3;L1:DRAWLINE(UU,L,NN,H,0),COLORLIGREEN;L2:DRAWLINE(NN,H,UU,L,0),COLORLIGREEN;。
筹码分布表现在主图中通达信指标公式源码
筹码分布表现在主图中CM1:=INTPART(PPART(1)*100); CM2:=INTPART(PPART(2)*100); CM3:=INTPART(PPART(3)*100); CM4:=INTPART(PPART(4)*100); CM5:=INTPART(PPART(5)*100); CM6:=INTPART(PPART(6)*100); CM7:=INTPART(PPART(7)*100); CM8:=INTPART(PPART(8)*100); CM9:=INTPART(PPART(9)*100); CM10:=INTPART(PPART(10)*100); CM11:=INTPART(PPART(11)*100); CM12:=INTPART(PPART(12)*100); CM13:=INTPART(PPART(13)*100); CM14:=INTPART(PPART(14)*100); CM15:=INTPART(PPART(15)*100); CM16:=INTPART(PPART(16)*100); CM17:=INTPART(PPART(17)*100); CM18:=INTPART(PPART(18)*100); CM19:=INTPART(PPART(19)*100); CM20:=INTPART(PPART(20)*100); CM21:=INTPART(PPART(21)*100); CM22:=INTPART(PPART(22)*100); CM23:=INTPART(PPART(23)*100); CM24:=INTPART(PPART(24)*100); CM25:=INTPART(PPART(25)*100); CM26:=INTPART(PPART(26)*100); CM27:=INTPART(PPART(27)*100); CM28:=INTPART(PPART(28)*100); CM29:=INTPART(PPART(29)*100); CM30:=INTPART(PPART(30)*100); CM31:=INTPART(PPART(31)*100); CM32:=INTPART(PPART(32)*100); CM33:=INTPART(PPART(33)*100); CM34:=INTPART(PPART(34)*100); CM35:=INTPART(PPART(35)*100); CM36:=INTPART(PPART(36)*100); CM37:=INTPART(PPART(37)*100); CM38:=INTPART(PPART(38)*100); CM39:=INTPART(PPART(39)*100); CM40:=INTPART(PPART(30)*100); CM41:=INTPART(PPART(41)*100); CM42:=INTPART(PPART(42)*100); CM43:=INTPART(PPART(43)*100);CM44:=INTPART(PPART(44)*100);CM45:=INTPART(PPART(45)*100);CM46:=INTPART(PPART(46)*100);CM47:=INTPART(PPART(47)*100);CM48:=INTPART(PPART(48)*100);CM49:=INTPART(PPART(49)*100);CM50:=INTPART(PPART(50)*100);CM51:=INTPART(PPART(51)*100);CM52:=INTPART(PPART(52)*100);CM53:=INTPART(PPART(53)*100);CM54:=INTPART(PPART(54)*100);CM55:=INTPART(PPART(55)*100);CM56:=INTPART(PPART(56)*100);CM57:=INTPART(PPART(57)*100);CM58:=INTPART(PPART(58)*100);CM59:=INTPART(PPART(59)*100);CM60:=INTPART(PPART(60)*100);IF(CURRBARSCOUNT<INTPART(CM2/2),CONST(COSTEX(REF(C,1),REF(C,2))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM3/2),CONST(COSTEX(REF(C,2),REF(C,3))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM4/2),CONST(COSTEX(REF(C,3),REF(C,4))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM5/2),CONST(COSTEX(REF(C,4),REF(C,5))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM6/2),CONST(COSTEX(REF(C,5),REF(C,6))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM7/2),CONST(COSTEX(REF(C,6),REF(C,7))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM8/2),CONST(COSTEX(REF(C,8),REF(C,9))),DRAWNUL L),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM9/2),CONST(COSTEX(REF(C,9),REF(C,10))),DRAWNU LL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM10/2),CONST(COSTEX(REF(C,10),REF(C,11))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM11/2),CONST(COSTEX(REF(C,11),REF(C,12))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM12/2),CONST(COSTEX(REF(C,12),REF(C,13))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM13/2),CONST(COSTEX(REF(C,13),REF(C,14))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM14/2),CONST(COSTEX(REF(C,14),REF(C,15))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM15/2),CONST(COSTEX(REF(C,15),REF(C,16))),DRAWIF(CURRBARSCOUNT<INTPART(CM16/2),CONST(COSTEX(REF(C,16),REF(C,17))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM17/2),CONST(COSTEX(REF(C,17),REF(C,18))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM18/2),CONST(COSTEX(REF(C,18),REF(C,19))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM19/2),CONST(COSTEX(REF(C,19),REF(C,20))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM20/2),CONST(COSTEX(REF(C,20),REF(C,21))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM21/2),CONST(COSTEX(REF(C,21),REF(C,22))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM22/2),CONST(COSTEX(REF(C,22),REF(C,23))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM23/2),CONST(COSTEX(REF(C,23),REF(C,24))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM24/2),CONST(COSTEX(REF(C,24),REF(C,25))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM25/2),CONST(COSTEX(REF(C,25),REF(C,26))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM26/2),CONST(COSTEX(REF(C,26),REF(C,27))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM27/2),CONST(COSTEX(REF(C,27),REF(C,28))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM28/2),CONST(COSTEX(REF(C,28),REF(C,29))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM29/2),CONST(COSTEX(REF(C,29),REF(C,30))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM30/2),CONST(COSTEX(REF(C,30),REF(C,31))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM31/2),CONST(COSTEX(REF(C,31),REF(C,32))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM32/2),CONST(COSTEX(REF(C,32),REF(C,33))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM33/2),CONST(COSTEX(REF(C,33),REF(C,34))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM34/2),CONST(COSTEX(REF(C,34),REF(C,35))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM35/2),CONST(COSTEX(REF(C,35),REF(C,36))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM36/2),CONST(COSTEX(REF(C,36),REF(C,37))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM37/2),CONST(COSTEX(REF(C,37),REF(C,38))),DRAWIF(CURRBARSCOUNT<INTPART(CM38/2),CONST(COSTEX(REF(C,38),REF(C,39))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM39/2),CONST(COSTEX(REF(C,39),REF(C,40))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM40/2),CONST(COSTEX(REF(C,40),REF(C,41))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM41/2),CONST(COSTEX(REF(C,41),REF(C,42))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM42/2),CONST(COSTEX(REF(C,42),REF(C,43))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM43/2),CONST(COSTEX(REF(C,43),REF(C,44))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM44/2),CONST(COSTEX(REF(C,44),REF(C,45))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM45/2),CONST(COSTEX(REF(C,45),REF(C,46))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM46/2),CONST(COSTEX(REF(C,46),REF(C,47))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM47/2),CONST(COSTEX(REF(C,47),REF(C,48))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM48/2),CONST(COSTEX(REF(C,48),REF(C,49))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM49/2),CONST(COSTEX(REF(C,49),REF(C,50))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM50/2),CONST(COSTEX(REF(C,50),REF(C,51))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM51/2),CONST(COSTEX(REF(C,51),REF(C,52))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM52/2),CONST(COSTEX(REF(C,52),REF(C,53))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM53/2),CONST(COSTEX(REF(C,53),REF(C,54))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM54/2),CONST(COSTEX(REF(C,54),REF(C,55))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM55/2),CONST(COSTEX(REF(C,55),REF(C,56))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM56/2),CONST(COSTEX(REF(C,56),REF(C,57))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM57/2),CONST(COSTEX(REF(C,57),REF(C,58))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM58/2),CONST(COSTEX(REF(C,58),REF(C,59))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM59/2),CONST(COSTEX(REF(C,59),REF(C,60))),DRAWIF(CURRBARSCOUNT<INTPART(CM60/2),CONST(COSTEX(REF(C,60),REF(C,61))),DRAW NULL),COLORBLUE;IF(CURRBARSCOUNT<INTPART(CM1/2),CONST(C),DRAWNULL),COLORRED; DRAWKLINE(H,O,L,C);。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
以色带表示筹码的密集度:蓝色表示短筹密集,青黄色表示大量筹码沉淀,此时要密切关注股价突破方向和成交量配合。
此指标的与其他有关筹码的指标相比,其优势在于它的直观、直效性,而且还给出支撑/压力的强弱,这在同类指标中是独一无二的,能及时准确地判断,这一点在实战中非常重要,可以让你买在低点,出在高点。
注意,在上升趋势中,还能用来寻找起爆点哟,当出现筹码高度密集信号时,关注股价是否启涨出现数阴包前阳,或能量不济多为假突破突破密筹区需要巨量配合假突破是无法滤去的,因为很可能是庄家想拉,但发现阻力很大,转而变成震荡洗盘;或者大盘不配合,庄家选择弃庄(形成顶部)。
本公式真实反映了这种情况,其实突破是真是假很容易通过盘面强弱和成交量变化而识别出来W00:=COST(1);W10:=COST(10);W20:=COST(20);W30:=COST(30);W40:=COST(40);W50:=COST(50);W60:=COST(60);W70:=COST(70);W80:=COST(80);W90:=COST(90);W100:=COST(99);W5:=COST(5);W15:=COST(15);W25:=COST(25);W35:=COST(35);W45:=COST(45);W55:=COST(55);W65:=COST(65);W75:=COST(75);W85:=COST(85);W95:=COST(95);C5:=W5-W00;C10:=W10-W5;C15:=W15-W10;C20:=W20-W15;C25:=W25-W20;C30:=W30-W25;C35:=W35-W30;C40:=W40-W35;C45:=W45-W40;C50:=W50-W45;C55:=W55-W50;C60:=W60-W55;C65:=W65-W60;C70:=W70-W65;C75:=W75-W70;C80:=W80-W75;C85:=W85-W80;C90:=W90-W85;C95:=W95-W90;C100:=W100-W95;ZX:=MIN(C5,MIN(C10,MIN(C15,MIN(C20,MIN(C25,MIN(C30,MIN(C35,MIN(C40,MIN(C45, MIN(C50,MIN(C55,MIN(C60,MIN(C65,MIN(C70,MIN(C75,MIN(C80,MIN(C85,MIN(C90,MIN (C95,C100)))))))))))))))))));STICKLINE(ZX=C5,W00,W5,5,0),COLORFF8800;STICKLINE(ZX=C10,W10,W5,5,0),COLORFF8800;STICKLINE(ZX=C15,W15,W10,5,0),COLORFF8800;STICKLINE(ZX=C20,W20,W15,5,0),COLORFF8800;STICKLINE(ZX=C25,W25,W20,5,0),COLORFF8800; STICKLINE(ZX=C30,W30,W25,5,0),COLORFF8800; STICKLINE(ZX=C35,W35,W30,5,0),COLORFF8800; STICKLINE(ZX=C40,W40,W35,5,0),COLORFF8800; STICKLINE(ZX=C45,W45,W40,5,0),COLORFF8800; STICKLINE(ZX=C50,W50,W45,5,0),COLORFF8800; STICKLINE(ZX=C55,W55,W50,5,0),COLORFF8800; STICKLINE(ZX=C60,W60,W55,5,0),COLORFF8800; STICKLINE(ZX=C65,W65,W60,5,0),COLORFF8800; STICKLINE(ZX=C70,W70,W65,5,0),COLORFF8800; STICKLINE(ZX=C75,W75,W70,5,0),COLORFF8800; STICKLINE(ZX=C80,W80,W75,5,0),COLORFF8800; STICKLINE(ZX=C85,W85,W70,5,0),COLORFF8800; STICKLINE(ZX=C90,W90,W85,5,0),COLORFF8800; STICKLINE(ZX=C95,W95,W90,5,0),COLORFF8800; STICKLINE(ZX=C100,W100,W95,5,0),COLORFF8800;筹宽:=W100-W00;J90:=W90-W60;J80:=W80-W50;J70:=W70-W40;J60:=W60-W30;J50:=W50-W20;J40:=W40-W10;J30:=W30-W00;STICKLINE(J90/筹宽<0.08,W90,W60,5,0),COLOR74D9A4; STICKLINE(J80/筹宽<0.08,W80,W50,5,0),COLOR74D9A4; STICKLINE(J70/筹宽<0.08,W70,W40,5,0),COLOR74D9A4; STICKLINE(J60/筹宽<0.08,W60,W30,5,0),COLOR74D9A4; STICKLINE(J50/筹宽<0.08,W50,W20,5,0),COLOR74D9A4; STICKLINE(J40/筹宽<0.08,W40,W10,5,0),COLOR74D9A4; JJ90:=W90-W70;JJ80:=W80-W60;JJ70:=W70-W50;JJ60:=W60-W40;JJ50:=W50-W30;JJ40:=W40-W20;JJ30:=W30-W10;STICKLINE(JJ90/筹宽<0.05,W90,W70,5,0),COLORFFFF00;STICKLINE(JJ80/筹宽<0.05,W80,W60,5,0),COLORFFFF00; STICKLINE(JJ70/筹宽<0.05,W70,W50,5,0),COLORFFFF00; STICKLINE(JJ60/筹宽<0.05,W60,W40,5,0),COLORFFFF00; STICKLINE(JJ50/筹宽<0.05,W50,W30,5,0),COLORFFFF00; STICKLINE(JJ40/筹宽<0.05,W40,W20,5,0),COLORFFFF00; STICKLINE(JJ30/筹宽<0.05,W30,W10,5,0),COLORFFFF00; {彩色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((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),CO LORYELLOW;STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),CO LORWHITE;{突破}STICKLINE(REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 AND C>O,C,O,1,0),COLOR00CCFF;。