/* 
{-----主图 资金模块-----}
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;
TESTSKIP(NOT(B OR B OR B OR B OR S OR S OR S OR S)!=0);
大宗净流入:=(B+B)-(S+S),COLORRED,NODRAW;
净流入:=(B+B+B+B)-(S+S+S+S);
大宗进:=(B)+(B);
大宗出:=(S)+(S);
非大宗进:=(B)+(B);
非大宗出:=(S)+(S);
主力买力度:=LARGEINTRDVOL*100/VOL,NODRAW;
主力卖力度:=LARGEOUTTRDVOL*100/VOL,NODRAW;
DRAWRECTREL(0,530,235,999.2,IF(120,RGB(0,10,47),0));
DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;
{DAZHIV:=CONST(MAX(ABS(净流入),MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))));}
DRAWRECTREL(10,CONST(950-(ABS(净流入)*250/DAZHIV)),40,950,IF(CONST(h5平台源码下载净流入>0),RGB(250,0,0),RGB(0,250,0)));
DRAWRECTREL(55,CONST(950-(ABS(大宗进)*250/DAZHIV)),80,950,IF(CONST(大宗进>0),RGB(255,0,255),RGB(0,0,50)));
DRAWRECTREL(84,CONST(950-(ABS(大宗出)*250/DAZHIV)),109,950,IF(CONST(大宗出>0),RGB(50,50,255),RGB(255,0,0)));
DRAWRECTREL(120,CONST(950-(ABS(非大宗进)*250/DAZHIV)),145,950,IF(CONST(非大宗进>0),RGB(250,0,250),RGB(0,0,50)));
DRAWRECTREL(149,CONST(950-(ABS(非大宗出)*250/DAZHIV)),174,950,IF(CONST(非大宗出>0),RGB(50,50,250),RGB(255,0,0)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.00,1,0,'资金驱动 主力进出 散户进出'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.008,0.68,0,'净流入'),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.008,0.82,0,INTPART(净流入)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.052,0.88,0,INTPART(大宗进)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.085,0.82,0,INTPART(大宗出)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.118,0.88,0,INTPART(非大宗进)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.146,0.82,0,INTPART(非大宗出)),COLORWHITE;
主买A:=ACTINVOL,COLORRED,NODRAW;
主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;
主买:主买A*100/(主买A+主卖A),COLORRED,NODRAW;
主卖:主卖A*100/(主买A+主卖A),COLORGREEN,NODRAW;
DRAWRECTREL(0,530,176,580,RGB(0,100,0));
{DRAWRECTREL(50,530,176,580,RGB(0,125,200));}
DRAWRECTREL(50,530,50+CONST(主买*120/100),580,RGB(175,50,250));
DRAWTEXT_FIX(1,0.00,0.53,0,STRCAT(STRCAT(':
',CON2STR(主买,2)),' ')),COLORYELLOW;
DRAWTEXT_FIX(1,0.12,0.53,0,STRCAT(STRCAT('
',CON2STR(主卖,2)),' ')),COLORYELLOW;
DRAWRECTREL(1,580,176,630,RGB(0,50,150));
DRAWRECTREL(110,580,176,630,RGB(0,200,50));
DRAWRECTREL(50,580,50+CONST(主力买力度*120/100),630,RGB(200,0,50));
DRAWTEXT_FIX(1,0.00,0.58,0,STRCAT(STRCAT('买卖力:
',CON2STR(主力买力度,2)),' ')),COLORYELLOW;
DRAWRECTREL(110,580,176-CONST(主力买力度*120/100),630,RGB(0,50,155));
DRAWTEXT_FIX(1,0.12,0.58,0,STRCAT(STRCAT('
',CON2STR(主力卖力度,2)),' ')),COLORYELLOW;
DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*100000/FINANCE(7),NODRAW;

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。