通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信资金控盘指标公式
VAR1:=(WINNER((CLOSE)*(0.9)))*(100);
VAR2:=(WINNER((HIGH)*(0.9)))*(100);
VAR3:=(WINNER((LOW)*(0.9)))*(100);
最高价线:VAR2,CoLor00FFFF;
最低价线:VAR3,CoLorFF00FF;
收盘价线:VAR1,CoLor00FF00;
平均:MA(VAR1,20),CoLorFFFFFF;
IF((VAR1>1),VAR1,VAR1),Stick,Linethick3,CoLorFF0000;
VAR1,Stick,Linethick3,CoLor000000;
IF((VAR1>1),VAR2,VAR3),Stick,Linethick3,CoLor008000;
VAR3,Stick,Linethick3,CoLor000000;
IF((VAR1<=1),VAR1,VAR1),Stick,Linethick3,CoLorFF0000;
VAR1,Stick,Linethick3,CoLor000000;
IF((VAR1<=1),VAR2,VAR3),Stick,Linethick3,CoLor6D2454;
VAR3,Stick,Linethick3,CoLor000000;
AA:最高价线,CoLor00FFFF;
BB:最低价线,CoLorF00FF0;
CC:收盘价线,CoLor00FF00;
DD:平均,CoLorFFFFFF;
TR:=MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1)));
DMZ:=IF((H+L)<=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
DMF:=IF((H+L)>=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
DIZ:=SUM(DMZ,13)/(SUM(DMZ,13)+SUM(DMF,13));
DIF:=SUM(DMF,13)/(SUM(DMF,13)+SUM(DMZ,13));
DDI:DIZ-DIF,COLORSTICK;
ADDI:SMA(DDI,30,10);
AD:MA(ADDI,5);
流通盘: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<90ANDREF(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;
VAR0a:=EMA(EMA(EMA(CLOSE,2),2),2);MA13:(MA(VAR0a,13)*0.99);(MA(VAR0a,13)*0.999);
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)),LINETHICK4,color0080ff;VAR1:=EMA(AMOUNT/VOL/100,3);
控盘成本:EMA(VAR1,88);低吸伏击:EMA(VAR1,88)*0.85,LINETHICK2,colorFFFF00;
走势铁底:低吸伏击*0.87,LINETHICK3,colorFF00FF;VAR2:=LOW<=走势铁底
ANDCLOSE>REF(CLOSE,1)*1.02;
控盘成本,LINETHICK2;DRAWICON(FILTER(VAR2,6),L,1);
二、通达信资金监控指标公式
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
主力能量:=(主力-均量);
大户能量:=(大户-均量);
中户能量:=(中户-均量);
散户能量:=(散户-均量);
JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));
ZLCJ:=JZ*ABS(主力能量);
DHCJ:=JZ*ABS(大户能量);
ZHCJ:=JZ*ABS(中户能量);
SHCJ:=JZ*ABS(散户能量);
STICKLINE(散户能量>0ANDSHCJ,0,SHCJ,-1,0),COLORGRAY;
STICKLINE(散户能量<0ANDSHCJ,0,SHCJ,-1,1),COLORGRAY;
STICKLINE(中户能量>0ANDZHCJ,SHCJ,SHCJ+ZHCJ,-1,0),COLORMAGENTA;
STICKLINE(中户能量<0ANDZHCJ,SHCJ,SHCJ+ZHCJ,-1,1),COLORMAGENTA;
STICKLINE(大户能量>0ANDDHCJ,SHCJ+ZHCJ,SHCJ+ZHCJ+DHCJ,-1,0),COLORLIBLUE;
STICKLINE(大户能量<0ANDDHCJ,SHCJ+ZHCJ,SHCJ+ZHCJ+DHCJ,-1,1),COLORLIBLUE;
STICKLINE(主力能量>0ANDZLCJ,SHCJ+ZHCJ+DHCJ,SHCJ+ZHCJ+DHCJ+ZLCJ,-1,0),COLORYELLOW;
STICKLINE(主力能量<0ANDZLCJ,SHCJ+ZHCJ+DHCJ,SHCJ+ZHCJ+DHCJ+ZLCJ,-1,1),COLORYELLOW;
成交量:V,NODRAW;
机构量:ZLCJ,COLORYELLOW,NODRAW;
大户量:DHCJ,COLORLIBLUE,NODRAW;
中户量:ZHCJ,COLORMAGENTA,NODRAW;
散户量:SHCJ,COLORGRAY,NODRAW;
DRAWTEXT(V>0ANDISLASTBARANDABS(主力能量),V*0.98,IF(主力能量>0,'机构+','机构-')),COLORYELLOW;
DRAWTEXT(V>0ANDISLASTBARANDABS(大户能量),V/4*3,IF(大户能量>0,'大户+','大户-')),COLORLIBLUE;
DRAWTEXT(V>0ANDISLASTBARANDABS(中户能量),V/2,IF(中户能量>0,'中户+','中户-')),COLORMAGENTA;
DRAWTEXT(V>0ANDISLASTBARANDABS(散户能量),V/4,IF(散户能量>0,'散户+','散户-')),COLORGRAY;
换手率:VOL/CAPITAL*100,LINETHICK0;
STICKLINE(C>0,0,0,10,0),COLORGRAY;
VV:=AMOUNT/100000000;
LB:=MA(VV,1)/HHV(VV,0);
XS:=2;
obv:=SUM(IF(C>REF(C,1),vv,IF(C<REF(C,1),-vv,0)),180);
wobv:=EMA(obv,3);
rOBY:=DMA(obv,LB/xs);
sOBV:=DMA(obv,LB/XS/xs);
YOBV:=DMA(obv,LB/XS/XS/xs);
SSOBC:=DMA(obv,LB/XS/XS/XS/xs);
LOBV:=DMA(obv,LB/XS/XS/XS/XS/xs);
QROBV:((SSOBC-LOBV+(YOBV-LOBV)/2+(sOBV-LOBV)/3+(rOBY-LOBV)/4+(wobv-LOBV)/5)/5);
MQR:MA(qrobv,8);
OBc:((rOBY-LOBV)/2+(sOBV-SSOBC+YOBV-LOBV)/2+wobv-sOBV)/3,LINETHICK2;
MOBv:MA(OBC,4);
KOBV:=2*(obc-MOBV);
DOBV:2*(QROBV-MQR),COLORSTICK;
MACDOBV:(KOBV+DOBV)/2,NODRAW;
STICKLINE(MACDOBV>=0,0,MACDOBV,5,1),COLORRED;
STICKLINE(MACDOBV<0,0,MACDOBV,5,1),COLOR00bb00;
STICKLINE(DOBV>=0,0,DOBV,0,0),COLOR00CCCC;
STICKLINE(DOBV<0,0,DOBV,0,0),COLORCYAN;
OBVH1:=REF(MACDOBV/2,BARSLAST(MACDOBV=HHV(MACDOBV,34))),COLOR0099FF,LINETHICK1;
OBVH2:REF(MACDOBV/2,BARSLAST(MACDOBV=HHV(MACDOBV,72))),COLORWHITE,LINETHICK1;
OBVL1:=REF(MACDOBV/2,BARSLAST(MACDOBV=LLV(MACDOBV,34))),COLORGRAY,LINETHICK2;
OBVL2:=REF(MACDOBV/2,BARSLAST(MACDOBV=LLV(MACDOBV,144))),COLOR0099FF,LINETHICK2;
大行情:=NOT(REF(OBVH1,1)=REF(OBVH2,1))ANDOBVH1=OBVH2;
DRAWTEXT(MACDOBV>OBVH1,OBVL2*2,'*'),COLORWHITE;
DRAWTEXT(大行情,OBVH2*4,'★'),COLORRED;
QGOBV:=REF(HHV(mobv,9),1);
QDOBV:=REF(LLV(mobv,9),1);
ZJGL:=(((obc-MOBV)/ABS(MobV)+(QRobV-MQR)/ABS(MQR)+((obc-qrobv)/ABS(QROBV)+(MOBV-MQR)/ABS(MQR))/2)/3)*10;
DSGL:=(((obc-MOBV)/ABS(MobV)+(obc-QgOBV)/ABS(QgobV)+(MobV-QDOBV)/ABS(QDobV))/3)*10;
SGL:=(ZJGL+DSGL)/2;
DRAWTEXT(CROSS(ZJGL,0)ANDOBC>REF(OBC,1),QROBV*0.8,'★'),COLORYELLOW;
DRAWTEXT(CROSS(DSGL,0)ANDOBC>REF(OBC,1)ANDOBC>QROBV,QROBV*1.25,'★'),COLORWHITE;
Z_J1:=EMA(C,2)-EMA(C,150);
Z_J2:=EMA(Z_J1,100);
Z_J3:=2*(Z_J1-Z_J2);
Z_J4:=POW(Z_J3,3)*0.1+POW(Z_J3,1);
主流资金:IF(Z_J3>0.1,Z_J4,0)*5,LINETHICK2,COLORGREEN;
G_J1:=EMA(C,2)-EMA(C,89);
G_J2:=EMA(G_J1,30);
G_J3:=2*(G_J1-G_J2)*9.8;
G_J4:=POW(G_J3,3)*0.1+POW(G_J3,2);
攻击资金:IF(G_J3>0.015,G_J4,0)/28,LINETHICK2,COLORRED;
流存资金:IF(攻击资金=0,-ABS(G_J4/28),0),LINETHICK2,COLORYELLOW;
[源码注释]通达信公式动态翻译结果
输出XG:1日前的最低价=计算跌停价ANDC>最低价 AND 开盘价>1日前的最高价
推荐阅读:通达信主力资金控盘指标公式
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<90ANDREF(ZSHTL,1)>90);{//走牛天数}
ZSHJJ:=EMA(ZSHTL,89);{//散户警戒}
ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}
ZJLRQD:=INTPART(ZZLKP-ZZLJJ+0.5);{//资金流入强度}
SH8:=EMA(ZSHTL,8);
套牢系数:ema(ZSHTL,3),COLORCYAN;
控盘系数:ema(ZZLKP,3),COLORRED;
资金流入强度:ZJLRQD,COLORMAGENTA;
资金流入均值:ema(ZJLRQD,3),COLORGREEN,DOTLINE;
强弱:0,COLORWHITE,DOTLINE;
短线:"kdj.j"(5,3,3),coloraaaaaa;
散户线:100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),LINETHICK3,color00ff00;
RSV30:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
K30:=SMA(RSV30,5,1);
D30:=SMA(K30,3,1);
J30:=3*K30-2*D30;
主力线:EMA(J30,6),COLORYELLOW,LINETHICK3;
rsv21:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
k21:=SMA(rsv21,13,8);
趋势:CEILING(SMA(k21,13,8)),COLORRED,LINETHICK4;
0;20;50;80;100;
PJJ:=DMA((((HIGH+LOW)+(CLOSE*2))/4),0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));
XVL:=(IF((CLOSE>OPEN),(QJJ*(HIGH-LOW)),IF((CLOSE<OPEN),(QJJ*((HIGH-OPEN)+(CLOSE-LOW))),(VOL/2)))+IF((CLOSE>OPEN),(0-(QJJ*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE<OPEN),(0-(QJJ*(HIGH-LOW))),(0-(VOL/2)))));
ZLL:=(VOL/CAPITAL);
HSL1:=IF((ZLL>10),10,ZLL);
HSL:=((XVL/20)/1.15);
攻击流量:=(((HSL*0.55)+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(攻击流量,8);
LLJX:=EMA(攻击流量,3);
STICKLINE(((HSL*0.4)>=0),((HSL*0.4)+LLJX),0,3,0),COLOR00FFFF;
STICKLINE(((HSL*0.4)<0),((HSL*0.4)+LLJX),0,3,0),COLOR00FF00;
资金流入:=IF((HSL*0.4+LLJX)>0,(HSL*0.4+LLJX),DRAWNULL),COLORRED;
资金流出:=IF((HSL*0.4+LLJX)<0,(HSL*0.4+LLJX),DRAWNULL),COLOR00FF00;
资金进出:=(HSL*0.4+LLJX),LINETHICK0;
万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;
资金净进出:IF((HSL*0.4+LLJX)>0,资金流入,资金流出),COLORWHITE,POINTDOT;
进出比例%:IF((HSL*0.4+LLJX)>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;
连红天1:=BARSLASTCOUNT(资金净进出>0),,COLORA20FFD,NODRAW;
连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW;
连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW;
连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW;
近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW;
最多连红天1:=MAX(REF(近期连红天,1),近期连红天),COLORYELLOW,NODRAW;
最多连红天2:=MAX(最多连红天1,REF(近期连红天,2)),COLORYELLOW,NODRAW;
最多连红天3:=MAX(最多连红天2,REF(近期连红天,3)),COLORYELLOW,NODRAW;
最多连红天4:=MAX(最多连红天3,REF(近期连红天,4)),COLORYELLOW,NODRAW;
最多连红天5:=MAX(最多连红天4,REF(近期连红天,5)),COLORYELLOW,NODRAW;
最多连红天:MAX(最多连红天5,REF(近期连红天,6)),COLORYELLOW,NODRAW;
三日资金:SUM(资金进出,3),COLORWHITE,NODRAW;
五日资金:SUM(资金进出,5),COLORFF00FF,NODRAW;
十日资金:SUM(资金进出,10),COLOR0000FF,NODRAW;
资金流量:=LLJX,LINETHICK0,COLOR0000FF;
STICKLINE((资金流量>0),资金流量,0,3,0),COLOR0000FF;
STICKLINE((资金流量<0),资金流量,0,3,0),COLORFF3300;
黄柱初出蓝:=REF(资金流出,1)<0AND资金流入>30ANDC>OANDC>REF(C,1)ANDC>MA(C,3);
X:=(3*C+2*L+O+H)/7;
多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210;
长黄柱:=资金流入>300ANDCROSS(C,多空线);
DRAWTEXT(黄柱初出蓝,-30,'★'),COLORFF00FF;
DRAWTEXT(长黄柱,((HSL*0.4)*1.5)*1.4,'★'),COLORRED;
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;
每日公式解答:
股票公式编写要求:
10日内真阴地量的选股公式。
股票公式编写结果:
地量:V=LLV(V,10)&&C<REF(C,1);
评论(0)