大智慧分时BBD主图 分时阶段资金 大盘线
大盘:=EMA(INDEXC,500)/EMA(c,500);
大盘线:INDEXC/大盘,LINETHICK3,Color00FF00 ;
DRAWTEXT( BARSTATUS=2,大盘线 ,'大盘' ),LINETHICK6,Color00FF00;
gqc:=DYNAINFO(3);
gh:=DYNAINFO(5);
gL:=DYNAINFO(6);
当前波幅:=max(gh-gqc,gqc-gL);
gf:=当前波幅/gqc;
最低位置:=gqc-当前波幅;
zl:=(("DATA@dde分时"(6)+"DATA@dde分时"(4))-("DATA@dde分时"(7)+"DATA@dde分时"(5)));
主力净额:zl*SUM(AMOUNT,0)/10000,linethick0,PRECIS2,colorred;
zjcbf:=max(hhvall(主力净额),0-llvall(主力净额));
p1:=主力净额*gf/zjcbf;
zjcx:=(p1+1)*gqc;
ma(zjcx,3),linethick2,PRECIS2,ColorFF0DFF;
DRAWTEXT( BARSTATUS=2,zjcx ,'BBD' ),LINETHICK7,ColorFF0DFF;
★主力净:=(("DATA@dde分时"(6)+"DATA@dde分时"(4))-("DATA@dde分时"(7)+"DATA@dde分时"(5)))*SUM(AMOUNT,0)/10000;
特净额:=("DATA@dde分时"(4)-"DATA@dde分时"(5))*SUM(AMOUNT,0)/10000;
大净额:=("DATA@dde分时"(6)-"DATA@dde分时"(7))*SUM(AMOUNT,0)/10000;
中净:=((1-("DATA@dde分时"(8)+"DATA@dde分时"(6)+"DATA@dde分时"(4)))-(1-("DATA@dde分时"(9)+"DATA@dde分时"(7)+"DATA@dde分时"(5))))*SUM(AMOUNT,0)/10000;
小净:=("DATA@dde分时"(8)-"DATA@dde分时"(9))*SUM(AMOUNT,0)/10000;
DRAWTEXTABS(0 ,145 ,'★主力净 '+★主力净),LINETHICK3,ColorFFFFFF;
DRAWTEXTABS(0 ,105 ,'小净 '+小净),LINETHICK3, ColorFFFF00 ;
DRAWTEXTABS(130 ,105 ,'中净 '+中净),LINETHICK3,ColorYellow;
DRAWTEXTABS(0 ,125 ,'大净额 '+大净额),LINETHICK3,COLOR1E90FF;
DRAWTEXTABS(130 ,125 ,'特净额 '+特净额),LINETHICK3,COLORcc00FF;
DRAWTEXTREL(0,720,'数 据 分 类'),COLORFF00FF,LINETHICK3;
DRAWTEXTREL(0,750,'超 大 账 户'),COLOR0000FF,LINETHICK3;
DRAWTEXTREL(0,780,'大 户 账 户'),COLOR3366FF,LINETHICK3;
DRAWTEXTREL(150,720,'9:30-10:00'),COLORFFFFFF,LINETHICK1;
DRAWTEXTREL(245,720,'10:00-10:30'),COLORFFFFFF,LINETHICK1;
DRAWTEXTREL(340,720,'10:30-11:00'),COLORFFFFFF,LINETHICK1;
DRAWTEXTREL(435,720,'11:00-11:30'),COLORFFFFFF,LINETHICK1;
DRAWTEXTREL(530,720,'13:00-13:30'),COLORFFFFFF,LINETHICK1;
DRAWTEXTREL(625,720,'13:30-14:00'),COLORFFFFFF,LINETHICK1;
DRAWTEXTREL(720,720,'14:00-14:30'),COLORFFFFFF,LINETHICK1;
DRAWTEXTREL(815,720,'14:30-15:00'),COLORFFFFFF,LINETHICK1;
DRAWTEXTREL(910,720,'总 净 额'),COLORFFFFFF,LINETHICK2;
{10点}TD10D:=REF(特净额,BARSLAST(TIME<=100000));
DD10D:=REF(大净额,BARSLAST(TIME<=100000));
DRAWTEXTREL(150,750,STRRIGHT(NUMTOSTRN(TD10D,2),9)),COLOR0000FF,LINETHICK2;
DRAWTEXTREL(150,780,STRRIGHT(NUMTOSTRN(DD10D,2),9)),COLOR3366FF,LINETHICK2;
{10点半}
TD10DB:=REF(特净额,BARSLAST(TIME>100000 AND TIME<=103000));
DD10DB:=REF(大净额,BARSLAST(TIME>100000 AND TIME<=103000));
DRAWTEXTREL(245,750,STRRIGHT(NUMTOSTRN(TD10DB-TD10D,2),9)),COLOR0000FF,LINETHICK2;
DRAWTEXTREL(245,780,STRRIGHT(NUMTOSTRN(DD10DB-DD10D,2),9)),COLOR3366FF,LINETHICK2;
{11点}
TD11D:=REF(特净额,BARSLAST(TIME>103000 AND TIME<=110000));
DD11D:=REF(大净额,BARSLAST(TIME>103000 AND TIME<=110000));
DRAWTEXTREL(340,750,STRRIGHT(NUMTOSTRN(TD11D-TD10DB,2),9)),COLOR0000FF,LINETHICK2;
DRAWTEXTREL(340,780,STRRIGHT(NUMTOSTRN(DD11D-DD10DB,2),9)),COLOR3366FF,LINETHICK2;
{11点半}
TD11DB:=REF(特净额,BARSLAST(TIME>110000 AND TIME<=113000));
DD11DB:=REF(大净额,BARSLAST(TIME>110000 AND TIME<=113000));
DRAWTEXTREL(435,750,STRRIGHT(NUMTOSTRN(TD11DB-TD11D,2),9)),COLOR0000FF,LINETHICK2;
DRAWTEXTREL(435,780,STRRIGHT(NUMTOSTRN(DD11DB-DD11D,2),9)),COLOR3366FF,LINETHICK2;
{13点半}
TD13DB:=REF(特净额,BARSLAST(TIME>130000 AND TIME<=133000));
DD13DB:=REF(大净额,BARSLAST(TIME>130000 AND TIME<=133000));
DRAWTEXTREL(530,750,STRRIGHT(NUMTOSTRN(TD13DB-TD11DB,2),10)),COLOR0000FF,LINETHICK2;
DRAWTEXTREL(530,780,STRRIGHT(NUMTOSTRN(DD13DB-DD11DB,2),10)),COLOR3366FF,LINETHICK2;
{14点}
TD14D:=REF(特净额,BARSLAST(TIME>133000 AND TIME<=140000));
DD14D:=REF(大净额,BARSLAST(TIME>133000 AND TIME<=140000));
DRAWTEXTREL(625,750,STRRIGHT(NUMTOSTRN(TD14D-TD13DB,2),10)),COLOR0000FF,LINETHICK2;
DRAWTEXTREL(625,780,STRRIGHT(NUMTOSTRN(DD14D-DD13DB,2),10)),COLOR3366FF,LINETHICK2;
{14点半}
TD14DB:=REF(特净额,BARSLAST(TIME>140000 AND TIME<=143000));
DD14DB:=REF(大净额,BARSLAST(TIME>140000 AND TIME<=143000));
DRAWTEXTREL(720,750,STRRIGHT(NUMTOSTRN(TD14DB-TD14D,2),10)),COLOR0000FF,LINETHICK2;
DRAWTEXTREL(720,780,STRRIGHT(NUMTOSTRN(DD14DB-DD14D,2),10)),COLOR3366FF,LINETHICK2;
{15点}
TD15D:=REF(特净额,BARSLAST(TIME>143000 AND TIME<=150000));
DD15D:=REF(大净额,BARSLAST(TIME>143000 AND TIME<=150000));
DRAWTEXTREL(815,750,STRRIGHT(NUMTOSTRN(TD15D-TD14DB,2),10)),COLOR0000FF,LINETHICK2;
DRAWTEXTREL(815,780,STRRIGHT(NUMTOSTRN(DD15D-DD14DB,2),10)),COLOR3366FF,LINETHICK2;
{总净额}
DRAWTEXTREL(910,750,STRRIGHT(NUMTOSTRN(特净额,2),10)),COLOR0000FF,LINETHICK4;
DRAWTEXTREL(910,780,STRRIGHT(NUMTOSTRN(大净额,2),10)),COLOR3366FF,LINETHICK4;
|