通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
通达信筹码分布主图指标公式
WH:=WINNER(HIGH)*100;
WP:=WINNER(CLOSE)*100;
WL:=WINNER(LOW)*100;
加码:=WP-WL;
减码:=WP-WH;
穿透力:加码+减码,COLORYELLOW,LINETHICK0;
STICKLINE(穿透力>0,穿透力,0,2,0),COLORRED;
STICKLINE(穿透力<0,ABS(穿透力),0,2,1),COLORGREEN;
实际V:VOL,LINETHICK0;
VAR1:=DYNAINFO(17)*REF(MA(VOL,5),1);
VAR2:=DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT;
STICKLINE(VAR2,VAR1,0,1,0);
VAR3:=DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT;
STICKLINE(VAR3,VAR1,0,1,0);
预测:IF(DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT,VAR1,VAR2);
{IF(DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT,VAR1,VAR3),COLORGREEN;}
预测V:STICKLINE(IF(DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT,VAR1,VAR2),VAR1,0,3,0),COLORGREEN;
STICKLINE(IF(DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT,VAR1,VAR3),VAR1,0,1,0),COLORGREEN;
STICKLINE(CLOSE>MA(CLOSE,30),0,VOL,3,1),COLORRED;
穿越筹码:=(WINNER(CLOSE)-WINNER(OPEN))*100;
RR:=SMA(穿越筹码,5,1);
流通盘:CAPITAL/1000000,VOLSTICK;
换手率:VOL/CAPITAL*100,LINETHICK2;
每股收益:FINANCE(33),VOLSTICK;
市盈率:DYNAINFO(39),VOLSTICK;
计算:=REF(CLOSE,1)*0.865;
再计算:=REF(CLOSE,13)*0.772;
即将启动:IF((CLOSE-MIN(计算,再计算))/CLOSE<0.1ANDSUM(流通盘,5)/5<1.8,1,0),COLORGREEN;{55.93–65.33–76.29%(16093)}
STICKLINE(即将启动,0,V,3,0),LINETHICK3,COLORGREEN;
STICKLINE(VOL>MA(VOL,5)*0.1,0,VOL,1,0),COLORADADAD;
DRAWICON(即将启动,18,1);
买点1:=CROSS(RR,0)AND穿越筹码>0AND即将启动ORCROSS(RR,0)AND穿越筹码>0ANDREF(即将启动,1),COLOR00A6A3;{68.1–75.35–83,55%(1083)}
GG:=CROSS("KDJ.K","KDJ.D")ANDRR>0;
买点2:=GGANDREF(即将启动,2)ORGGANDREF(即将启动,3)ORGGANDREF(即将启动,4)ORGGANDREF(即将启动,5)ORGGANDREF(即将启动,6),COLORFF9797;{57.55–63.04–77.54%(2264)}
DRAWICON(买点1OR买点2,18,4);
MA1:MA(CLOSE,17),COLORFF00FF,LINETHICK2;
MA2:IF(MA1>=REF(MA1,1),MA1,DRAWNULL),COLORFF00FF,LINETHICK1;
MA3:IF(REF(MA1,1)>MA1,MA1,DRAWNULL),COLOR59A100,LINETHICK2;
箱顶:MA(REF(HHV(C,10),1),1),LINETHICK1,COLORFFA188;
箱底:MA(REF(LLV(C,10),1),1),LINETHICK1,COLORFFA188;
VARB:=IF(CLOSE>150,91.3,0.913);
MA4:MA(CLOSE,2),COLOR0300B2,LINETHICK2;
MA5:IF(MA4>=REF(MA4,1),MA4,DRAWNULL),COLORRED,LINETHICK1;
MA6:IF(REF(MA4,1)>MA4,MA4,DRAWNULL),COLORFFEAC8,LINETHICK2;
下沿:INTPART(CLOSE/VARB)*VARB,POINTDOT,LINETHICK4,COLOR5B6EE0;
上沿:下沿+VARB,POINTDOT,LINETHICK4,COLOR00FF00;
中线:(下沿+上沿)/2,POINTDOT,COLORWHITE,LINETHICK4;
STICKLINE(MA1>MA4,MA1,MA4,0,0),COLORFFA610;
STICKLINE(MA1<MA4,MA4,MA1,0,0),COLOR00FFFF;
STICKLINE((C<O),OPEN,CLOSE,3,0),COLORCC9A85;
STICKLINE((C<O),HIGH,LOW,0,0),COLORCCBBAD;
STICKLINE((C>=O),OPEN,CLOSE,3,0),COLOR0000DD;
STICKLINE((C>=O),HIGH,LOW,0,0),COLOR0000FF;
顶压:HHV(MA(H,11),50),COLOR00FFFF;
短压:HHV(MA(H,11),15),COLOR0090E0;
XL1:=LLV(MA(H,11),1);
趋势:IF(XL1>=短压,短压,XL1),COLORFFFFFF;
X1:=(3*C+H+L+O)/6;
X2:=EMA(X1,10);
X3:=REF(X2,1);
X4:=(REF(HIGH,1)+REF(LOW,1))/2;
X5:=MA(CLOSE,21)+2*STD(CLOSE,21);
X6:=REF(CLOSE,1);{出货}
X7:=SMA(MAX(CLOSE-X6,0),7,1)/SMA(ABS(CLOSE-X6),7,1)*100;
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);{40}
WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);{减}
WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);
WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);
WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;
DK:=SMA(WZ4,3,1)*1.5;
DD:=SMA(DK,3,1);
DJ:=3*DK-2*DD;
WZ5:=EMA(CLOSE,12)-EMA(CLOSE,26);
WZ6:=EMA(WZ5,9);
WZ7:=2*(WZ5-WZ6);{50}
WZ8:=REF(WZ7,1);
WZ9:=CROSS(WZ8,WZ7)ANDWZ8>0;
DRAWTEXT(WZ9ANDDJ>250,H,'←减'),COLORBCFF8B;
VAR11:=EMA(CLOSE,8);{起步}
VAR2:=EMA(VAR11,20);
VAR3:=CROSS(VAR11,VAR2);
VAR4:=VAR11<MA(CLOSE,120);
VAR5:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;{逃命}
VAR6:=SMA(VAR5,5,1);
VAR7:=SMA(VAR6,8,1);{60}
VAR8:=CROSS(VAR6,VAR7)ANDVAR7<20;
VAR9:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60)ANDVAR8;
VARA:=IF(CLOSE>1000,VAR8,VAR9);
起步:=VAR3ANDVAR4;
逃遁:=VARA;
STICKLINE(X2>X3,X2*0.98,X2,6,1),COLOR0000FF;
STICKLINE(X2<X3,X2*0.98,X2,6,1),COLORF10011;
WW1:=SUM(MA(C,10),9)/10.110;
XX1:=MA(LOW,2)*0.96;
XX2:=MA(LOW,26)*0.85;
XX3:=REF(XX1,1)<XX2ANDREF(XX1,1)<XX1ANDREF(XX1,1)<REF(XX1,2);
VAR1:=INDEXC;
VAR12:=MA(VAR1,6);
VAR13:=MA(VAR1,24);
VAR14:=MA(VAR1,32);
VAR15:=MA(VAR1,62);
VAR16:=MA(VAR1,105);
VAR17:=VAR15<REF(VAR15,1)ANDVAR6<REF(VAR16,1)ANDVAR15<VAR6*0.98;
VAR18:=VAR14>VAR12*1.11ANDVAR13>VAR12*1.095;
VAR19:=VAR12>VAR1*0.95;
VAR111:=EMA(WINNER(CLOSE)*70,3);
VAR112:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
VAR113:=CLOSE/MA(CLOSE,40)*100<76;
VAR114:=CLOSE/MA(CLOSE,60)*100<74;
VAR115:=HIGH>LOW*1.051;
VAR116:=VAR115ANDCOUNT(VAR15,5)>1;
VAR117:=VAR17ANDVAR8ANDVAR19ANDCLOSE/COST(8)<=0.8
AND(CLOSE>OPENORCLOSE<OPEN)
AND(REF(CLOSE,1)>REF(OPEN,1)ORREF(CLOSE,1)<REF(OPEN,1))
ANDCLOSE>0.1ORVAR16
AND(VAR113ORVAR114)ANDVAR112<20ANDVAR111<20
AND(WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5OR
TROUGHBARS(3,15,1)<4ANDCROSS(EMA(CLOSE,21)-EMA(CLOSE,8),
EMA(EMA(CLOSE,21)-EMA(CLOSE,8),5));
XL11:=EMA(CLOSE,10)/100;{70}
XL2:=MA((XL11-REF(XL11,10))/REF(XL11,10),3)*100;
XL3:=MA(XL2,3);
XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0)
ANDX2>X3,L-0.1,'←●反弹'),COLORGREEN;
DRAWTEXT(IF(CROSS((VAR11-LLV(VAR1,4))/(HHV(VAR11,4)-LLV
(VAR11,4))*4*25,87.5)AND
VAR1<40,87,0)ANDX2>X3,L-0.2,'←●短买'),COLORFFBBD8;
DRAWTEXT(CROSS(VAR1,10)ANDX2>X3,L-0.3,'←●买'),COLOR89B2FF;
DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA
((CLOSE*2+HIGH+LOW)/4,26)-EMA(EMA((CLOSE*2+HIGH+LOW)/
4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2))*5.8,0.47),LOW,0)
ANDX2>X3,L-0.4,'←●加仓'),COLORFF5ED8;{80}
LL1:=(EMA(CLOSE,3)-EMA(CLOSE,13));
LL2:=EMA(LL1,9);
LL3:=BARSLAST(CROSS(LL1,LL2));
LL4:=REF(LL3,LL3+1);
LL5:=LL2<REF(LL2,LL4);
变盘:=CROSS(LL1,LL2)ANDLL5;
DRAWTEXT(起步>0,L,'★起步?'),COLOR00FF00;
STICKLINE(起步>0,C*1.05,C,7,0),COLORRED;
DRAWTEXT(逃遁>0,H*1.04,'●←逃'),COLOR7FFFD6;
通达信动态筹码主图指标公式
主持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORMAGENTALINETHICK2;
散持仓:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66,LINETHICK3;
强分界:80,COLORYELLOW;
庄筹度:WINNER(C)*100COLORREDLINETHICK2;
散筹度:(WINNER(C*1.1)-WINNER(C*0.9))*100COLORGREENLINETHICK2;
弱分界:0,COLORYELLOW;
VAR1:=REF(CLOSE,5);
VAR2:=REF(WINNER(CLOSE)*100,5);
VAR3:=WINNER(VAR1)*100;
筹转5:VAR2-VAR3;
VAR4:=REF(CLOSE,10);
VAR5:=REF(WINNER(CLOSE)*100,10);
VAR6:=WINNER(VAR4)*100;
筹转10:VAR5-VAR6;
VAR7:=REF(CLOSE,20);
VAR8:=REF(WINNER(CLOSE)*100,20);
VAR9:=WINNER(VAR7)*100;
筹转20:VAR8-VAR9;
VARA:=REF(CLOSE,30);
VARB:=REF(WINNER(CLOSE)*100,30);
VARC:=WINNER(VARA)*100;
筹转30:VARB-VARC;
MA(C,9),LINETHICK2,COLORYELLOW;
MA(C,21),LINETHICK2,COLORRED;
IF(MA(C,9)<REF(MA(C,9),1),MA(C,9),DRAWNULL),LINETHICK2,COLORBLUE;
IF(MA(C,21)<REF(MA(C,21),1),MA(C,21),DRAWNULL),LINETHICK2,COLORGREEN;
VAR1:=((((HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),4)<0)AND((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2)>REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1)))AND(REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1)<REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)))AND(REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)<REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),3)));
DRAWTEXT(VAR1,L*0.98,'★短买'),COLORYELLOW;
DRAWTEXT(CROSS(MA(C,3),MA(C,9))ANDC>=REF(C,1)ANDC>O,L*0.98,'★加仓'),COLORMAGENTA;
明日均线:REF(C,2)*2-REF(C,5),LINETHICK0,COLOR550055;
后日均线:REF(C,1)*2-REF(C,4),LINETHICK0,COLOR008800;
大后天均线:C*2-REF(C,3),LINETHICK0,COLOR008888;
持股线:EMA(CLOSE,13);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
AA:=EMA(CLOSE,10);
多头:STICKLINE(DIF>DEA,CLOSE,OPEN,8,0),COLORRED;
STICKLINE(DIF>DEA,HIGH,LOW,0,0),COLORRED;
空头:STICKLINE(DIF<=DEA,CLOSE,OPEN,8,0),COLORGREEN;
STICKLINE(DIF<=DEA,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(DIF<=DEAANDAA>MA(CLOSE,50),CLOSE,OPEN,8,0),COLORYELLOW;
STICKLINE(DIF<=DEAANDAA>MA(CLOSE,50),HIGH,LOW,0,0),COLORYELLOW;
STICKLINE(DIF>DEAANDAA<MA(CLOSE,50),CLOSE,OPEN,8,0),COLOR77AAFF;
STICKLINE(DIF>DEAANDAA<MA(CLOSE,50),HIGH,LOW,0,0),COLOR77AAFF;
DRAWTEXT(CROSS(DIF,DEA),LOW*0.995,'怀玉买'),COLORYELLOW,LINETHICK3;
DRAWTEXT(CROSS(DEA,DIF),HIGH*1.01,'格格卖'),COLORGREEN,LINETHICK3;
评论(0)