寸心超牛筹码(通达信公式 副图 源码 测试图)
{寸心超牛筹码}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);{【参数定义】}RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;K1:=SMA(RSV,10,1);D1:=SMA(K1,5,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;{//变异KD风险系数}TGLD:=MOD(TFXXS,10);{//踏浪涨停概率点}TGLXS:=(TFXXS-REF(TFXXS,1))*10;{//变异KD乖离系数}TYCFX:=TFXXS+TGLXS;{//变异KD预测风险}乖离系数:=TGLXS,NODRAW,COLORRED;价量:=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),NODRAW;主力活跃力度:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25),NODRAW;快线:=(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25),NODRAW;牛股出现预警:=WINNER(C/1.10)*100,COLOR00FFFF,NODRAW;主力赢利25持仓:=WINNER(C/1.25)*100,COLORFF00FF,NODRAW;主力筹码:=EMA(WINNER(CLOSE)*70,3);散户筹码:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);散户套牢筹码:=散户筹码/(主力筹码+散户筹码)*100;主升浪波段:=主力筹码/(主力筹码+散户筹码)*100,COLORFF6100,NODRAW;主力主导行情:=EMA(主升浪波段,55),NODRAW,COLORFF00FF;金叉疯牛:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);界:=MA(CLOSE,27);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;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));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,125)+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;MA5:=EMA(A1,7);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)/EXPMA(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(VOL,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(VOL,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
DRAWNUMBER(双过百,主力抢筹力度*1.35,SUM(双过百,15)),COLORYELLOW;