通达信量王资金及超大中小对副图指标 看穿主力资金进出 源码 附图

{量王资金副图源码如下}

N:=100;
M1:=5;
M2:=10;
{量王}

H_L:=0.1*CONST(HHV(AMOUNT,240));
V100:= V<=LLV(V,N)*1.2 AND V>0 AND BARSCOUNT(V)>=N;
百日地量:COUNT(V100,5)>=3;
DRAWTEXT(FILTER(百日地量,4),AMOUNT+2*H_L,'地量'),COLORGRAY;

总量:AMOUNT,VOLSTICK;
MAVOL1:=MA(总量,M1);
MAVOL2:=MA(总量,M2);

去除次新股:=BARSCOUNT(C)>=15;{次新股的天数}
ZTB:=C>INTPART(REF(C,1)*(1+10/100)/0.01+0.5)*0.01-0.006 AND C=H;
STICKLINE(AMOUNT>800000000 AND ZTB,0,AMOUNT,-1,0),COLORRED;
STICKLINE(AMOUNT>1000000000 AND ZTB,0,AMOUNT,-1,0),COLORMAGENTA;

启动:=MA(总量,250),DOTLINE,LINETHICK1,COLORWHITE;
量比:V/REF(MA(V,5),1),COLORBROWN,NODRAW;
几倍:=1.9;
倍量: 总量 >=REF(总量,1)*几倍 AND (IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW;
倍缩: REF(总量,1)>= 总量 *几倍,COLORMAGENTA,NODRAW;
百低:总量=LLV(总量,125) AND BARSCOUNT(总量)>=125,COLORBLUE,NODRAW;
平量: RANGE(总量 /REF(总量,1),0.97,1.03) AND BARSCOUNT(总量)>=2,COLORWHITE,NODRAW;
天量:总量=HHV(总量,120), COLORRED;
量王:天量&&倍量&&量比>2&&(BARSCOUNT(C)+1)>120,COLORGREEN, NODRAW;
倍数:总量/REF(总量,1),COLORYELLOW,NODRAW;
量王后:REF(量王,1) AND V>REF(V,1),COLORMAGENTA;
STICKLINE(量王后,0,总量*0.88,2,0),COLORMAGENTA;
V1:=总量 *0.9;
V2:= 总量 *0.8;
STICKLINE(倍量, 0,V1,1,0),COLORYELLOW;
STICKLINE(倍缩, 0,V1,0.1,0),COLORMAGENTA;
STICKLINE(百低, 0,V1,1,0),COLORBLUE;

STICKLINE(天量,0,V1,0.1,0),COLORRED;
STICKLINE(量王&&COUNT(量王,2)<=1,0,AMOUNT,-1,0),COLORGREEN;
STICKLINE(C<O AND C>REF(C,1),0, 总量,0,0),COLORRED;{假阴柱}
STICKLINE((量王 AND 总量),总量/3,总量/3,2,0)COLORRED LINETHICK9;
STICKLINE((量王 AND 总量),总量*2/3,总量*2/3,2,0)COLORRED LINETHICK9;
STICKLINE((量王 AND 总量),总量*1/2,总量*1/2,2,0)COLORRED LINETHICK9;
LX1:=BARSLAST(量王>0);
NOTEXT8:IF(CURRBARSCOUNT<=CONST(LX1)+1,CONST(REF(总量,LX1)),DRAWNULL),COLORGREEN LINETHICK1;

天量王:总量=HHV(总量,500),COLORRED;
{DRAWLINE(天量王,H,REF(天量王,1),REF(H,1),1),COLORYELLOW,DOTLINE,LINETHICK2;}
LX3:=BARSLAST(天量王>=1);
NOTEXT10:IF(CURRBARSCOUNT<=CONST(LX3)+1,CONST(REF(总量,LX3)),DRAWNULL),COLORYELLOW, LINETHICK2;
STICKLINE((天量王 AND 总量),总量,总量*0.9,3,0),COLORYELLOW ;
梯量:=EVERY(C>O,3) AND EVERY(C>REF(C,1),2) AND EVERY(V>REF(V,1),2){ AND SUM(涨幅,3)<15};
梯量王:梯量 AND 总量>NOTEXT8 AND 天量 AND 量比>1.618 AND (BARSCOUNT(C)+1)>120;
LX2:=BARSLAST(梯量王>=1);
DRAWLINE(梯量王,H,REF(梯量王,1),REF(H,1),1),COLORLIRED,DOTLINE;
DRAWLINE(梯量王,L,REF(梯量王,1),REF(L,1),1),COLORLICYAN,DOTLINE;

梯量王后:=LX2=1 AND V>REF(V,1),COLORMAGENTA;
DRAWLINE(梯量王后,H,REF(梯量王后,1),REF(H,1),1),COLORRED,DOTLINE;
梯量太后:=LX2=2 AND V>REF(V,2),COLORMAGENTA;
DRAWLINE(梯量太后,H,REF(梯量太后,1),REF(H,1),1),COLORRED,LINETHICK1;
DRAWLINE(梯量太后,L,REF(梯量太后,1),REF(L,1),1),COLORCYAN;
{通达信资金}
DRAWRECTREL(0,250,200,999.4,IF(120,RGB(10,0,0),0));
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),NODRAW;
超大单:=(超B)-(超S),NODRAW;
大单:=(大B)-(大S),NODRAW;
中单:=(中B)-(中S),NODRAW;
小单:=(小B)-(小S),NODRAW;
DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;

DRAWRECTREL(0,CONST(830-(ABS(净流入)*500/DAZHI)),30,935,IF(CONST(净流入)>0,RGB(255,0,0{255,255,255}),RGB(23,125,255)));
DRAWRECTREL(40,CONST(830-(ABS(超大单)*500/DAZHI)),70,935,IF(CONST(超大单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(80,CONST(830-(ABS(大单)*500/DAZHI)),110,935,IF(CONST(大单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(120,CONST(830-(ABS(中单)*500/DAZHI)),150,935,IF(CONST(中单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(160,CONST(830-(ABS(小单)*500/DAZHI)),190,935,IF(CONST(小单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.98,0,'净流'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.040,0.98,0,'超大'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.080,0.98,0,'大单'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.120,0.98,0,'中单'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.160,0.98,0,'小单'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.25,0,'资金搏弈 (万元)'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.002,0.55,0,INTPART(净流入)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.040,0.55,0,INTPART(超大单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.080,0.555,0,INTPART(大单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.120,0.550,0,INTPART(中单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.160,0.55,0,INTPART(小单)),COLORWHITE;


{资金三(超大中小分类)对手盘超大中小对M2副图源码如下}

超B:=L2_AMO(0,0)/10000.0;
大B:=L2_AMO(1,0)/10000.0;
中B:=L2_AMO(2,0)/10000.0;
小B:=L2_AMO(3,0)/10000.0;
超S:=L2_AMO(0,1)/10000.0;
大S:=L2_AMO(1,1)/10000.0;
中S:=L2_AMO(2,1)/10000.0;
小S:=L2_AMO(3,1)/10000.0;
大单净量:=((超B+大B)-(超S+大S))/CAPITAL*1000,NODRAW;
净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),NODRAW;
主力净额:(超B+大B)-(超S+大S),COLORRED,NODRAW;
超大单:超B-超S,COLORRED,NODRAW;
大单:大B-大S,COLORYELLOW,NODRAW;
中单:中B-中S,COLORBLUE,NODRAW;
小单:小B-小S,COLORGREEN,NODRAW;

{STICKLINE(主力净额>0,0,主力净额,2,0),COLORRED;
STICKLINE(主力净额<0,0,主力净额,2,0),COLORCYAN};
近3日流向:SUM(主力净额,3),NODRAW;
近5日流向:SUM(主力净额,5),NODRAW;
{柱子区域}
STICKLINE( 小单,0,小单,2,0),COLORGREEN;
STICKLINE( 超大单,0,超大单,2,0),COLORRED;
STICKLINE( 中单,0,中单,1,0),COLORBLUE;
STICKLINE( 大单,0,大单,1,0),COLORYELLOW;

{机构参与}
成交总量:=((超B+大B+中B+小B)+(超S+大S+中S+小S))/2;
机构参与:IF(超大单>0,(超B+大B)/成交总量*100,(-超S-大S)/成交总量*100),COLORRED,NODRAW;
机构参与度:=CONST(IF(1 ,机构参与,DRAWNULL)),NODRAW;
DRAWTEXT_FIX(机构参与度>=30,0.850,1-0.2,0,STRCAT('当日机构参与度%: ',CON2STR(机构参与度,2))),COLOR0000FF;
DRAWTEXT_FIX(机构参与度<30,0.850,1-0.2,0,STRCAT('当日机构参与度%: ',CON2STR(机构参与度,2))),COLORFFFF00;

动态市值:=CAPITAL*C*100/10000/10000;
超大占流通盘比%:超大单/动态市值*100/10000,COLORRED,NODRAW;
大单净量%:超大占流通盘比%,COLORMAGENTA,NODRAW;
显示数值条件:=超大占流通盘比%>=1;
DRAWTEXT(显示数值条件,超大单*0.7,VAR2STR(超大单,0)),COLORGREEN;
DRAWTEXT(显示数值条件,超大单*0.5,VAR2STR(超大占流通盘比%,2)),COLORYELLOW;

0,COLORWHITE;




未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图