收费版DDX每半小时的统计 因为是我收费时使用的,我现在盘后才能看到,网友需要我发给大家,是我编的和别的分时阶段不一样,你看好不好使,各取所需吧,
{分时阶段}
DRAWRECTREL(-1,0,1000,1000,RGB(0,0,10)),color00FF00,LINETHICK2,LAYER7;0,DOTLINE,LAYER0;
BBD:SUM((ordervol(1,2)-ordervol(2,2))/v*amount/10000,0),linethick0;
DRAWTEXTABS(500,10,’ 【资金BBD>10万:’ + IFS((BBD)>=0,’流入】 ‘,’流出】’) +NUMTOSTRN((BBD),0)+’万; ‘),LINETHICK0,COLOR00FFff;
BBDT:SUM((ordervol(1,3)-ordervol(2,3))/v*amount/10000,0),linethick0;
DRAWTEXTABS(70,65,’【特单>50万】:▄ ‘+NUMTOSTRN(BBDT,2)+’万’),COLORff9900,LINETHICK0;
BBDD:BBD-BBDT,linethick0;
DRAWTEXTABS(70,45,’【大单10-50万】:▄ ‘+NUMTOSTRN(BBDD,2)+’万’),COLOR0077FF,LINETHICK0;
BBD中入:=SUM((ordervol(1,1)-ordervol(1,2))/v*amount/10000,0);
BBD中出:=SUM((ordervol(2,1)-ordervol(2,2))/v*amount/10000,0);
BBDZ:BBD中入-BBD中出,linethick0;
DRAWTEXTABS(70,25,’【中单2-10万】:▄ ‘+NUMTOSTRN(BBDZ,2)+’万’),COLOR00FFFF,LINETHICK0;
BBD小入:=SUM((1-ordervol(1,1))/v*amount/10000,0);
BBD小出:=SUM((1-ordervol(2,1))/v*amount/10000,0);
BBDX:BBD小入-BBD小出,linethick0;
DRAWTEXTABS(70,5,’【小单<2万】:▄ ‘+NUMTOSTRN(BBDX,2)+’万’),COLOR00FF00,LINETHICK0;
{以上可单独使用也是一个公式}
主力净额:BBD,PRECIS2,colorred,linethick2;
特净额:BBDT,colorff9900,LAYER0,linethick2; ;
大净额:BBDD,color0077ff,LAYER0; ;
中净额:BBDZ,color00ffff,DOTLINE,LAYER0;
散净额:BBDX,color00ff00,DOTLINE,LAYER0; ;
主力净额-ref(主力净额,1),colorstick,LINETHICK1;
{STICKLINE(主力净额>0,(特净额+大净额),主力净额+(特净额+大净额),2,0),COLOR0000ff,LINETHICK2;
STICKLINE(主力净额<0,(特净额+大净额),主力净额+(特净额+大净额),2,0),COLOR00ff00,LINETHICK2;}
DRAWTEXTREL(3,200,’成交单:>10W ‘),COLOR00FFFF,LINETHICK3;
DRAWTEXTREL(3,370,’成交单:<2.0W’),COLOR00FfFF,LINETHICK3;
分钟数A:(TIME0=36000),PRECIS0,linethick0;
VERTLINE(分钟数A,1),COLOR00FF00,LAYER4;
分钟数AB:(TIME0=37800),PRECIS0,linethick0;
VERTLINE(分钟数AB,4),COLOR00FFFF,LAYER4;
分钟数B:(TIME0=39600),PRECIS0,linethick0;
VERTLINE(分钟数B,1),COLOR00FF00,LAYER4;
分钟数C:(TIME0=41400),PRECIS0,linethick0;
VERTLINE(分钟数C,4),COLOR00FFFF,LAYER4;
分钟数CB:(TIME0=48600),PRECIS0,linethick0;
VERTLINE(分钟数CB,1),COLOR00FF00,LAYER4;
分钟数D:(TIME0=50400),PRECIS0,linethick0;
VERTLINE(分钟数D,4),COLOR00FFFF,LAYER4;
分钟数DB:(TIME0=52200),PRECIS0,linethick0;
VERTLINE(分钟数DB,1),COLOR00FF00,LAYER4;
分钟数E:(TIME0=54000),PRECIS0,linethick0;
VERTLINE(分钟数E,4),COLOR00FFFF,LAYER4;
{10点}
TD10D:=REF(特净额+大净额,BARSLAST(TIME<=100000));
DD10D:=REF(散净额,BARSLAST(TIME<=100000));
DRAWTEXTREL(60,300,STRRIGHT(NUMTOSTRN(TD10D,2),9)),COLOR0066FF,LINETHICK3;
DRAWTEXTREL(60,470,STRRIGHT(NUMTOSTRN(DD10D,2),9)),COLOR00FF00,LINETHICK3;
{10点半}
TD10DB:=REF(特净额+大净额,BARSLAST(TIME>100000 AND TIME<=103000));
DD10DB:=REF(散净额,BARSLAST(TIME>100000 AND TIME<=103000));
DRAWTEXTREL(180,300,STRRIGHT(NUMTOSTRN(TD10DB-TD10D,2),9)),COLOR0066FF,LINETHICK3;
DRAWTEXTREL(180,470,STRRIGHT(NUMTOSTRN(DD10DB-DD10D,2),9)),COLOR00FF00,LINETHICK3;
{11点}
TD11D:=REF(特净额+大净额,BARSLAST(TIME>103000 AND TIME<=110000));
DD11D:=REF(散净额,BARSLAST(TIME>103000 AND TIME<=110000));
DRAWTEXTREL(300,300,STRRIGHT(NUMTOSTRN(TD11D-TD10DB,2),9)),COLOR0066FF,LINETHICK3;
DRAWTEXTREL(300,470,STRRIGHT(NUMTOSTRN(DD11D-DD10DB,2),9)),COLOR00FF00,LINETHICK3;
{11点半}
TD11DB:=REF(特净额+大净额,BARSLAST(TIME>110000 AND TIME<=113000));
DD11DB:=REF(散净额,BARSLAST(TIME>110000 AND TIME<=113000));
DRAWTEXTREL(430,300,STRRIGHT(NUMTOSTRN(TD11DB-TD11D,2),9)),COLOR0066FF,LINETHICK3;
DRAWTEXTREL(430,470,STRRIGHT(NUMTOSTRN(DD11DB-DD11D,2),9)),COLOR00FF00,LINETHICK3;
{13点半}
TD13DB:=REF(特净额+大净额,BARSLAST(TIME>130000 AND TIME<=133000));
DD13DB:=REF(散净额,BARSLAST(TIME>130000 AND TIME<=133000));
DRAWTEXTREL(550,300,STRRIGHT(NUMTOSTRN(TD13DB-TD11DB,2),10)),COLOR0066FF,LINETHICK3;
DRAWTEXTREL(550,470,STRRIGHT(NUMTOSTRN(DD13DB-DD11DB,2),10)),COLOR00FF00,LINETHICK3;
{14点}
TD14D:=REF(特净额+大净额,BARSLAST(TIME>133000 AND TIME<=140000));
DD14D:=REF(散净额,BARSLAST(TIME>133000 AND TIME<=140000));
DRAWTEXTREL(670,300,STRRIGHT(NUMTOSTRN(TD14D-TD13DB,2),10)),COLOR0066FF,LINETHICK3;
DRAWTEXTREL(670,470,STRRIGHT(NUMTOSTRN(DD14D-DD13DB,2),10)),COLOR00FF00,LINETHICK3;
{14点半}
TD14DB:=REF(特净额+大净额,BARSLAST(TIME>140000 AND TIME<=143000));
DD14DB:=REF(散净额,BARSLAST(TIME>140000 AND TIME<=143000));
DRAWTEXTREL(790,300,STRRIGHT(NUMTOSTRN(TD14DB-TD14D,2),10)),COLOR0066FF,LINETHICK3;
DRAWTEXTREL(790,470,STRRIGHT(NUMTOSTRN(DD14DB-DD14D,2),10)),COLOR00FF00,LINETHICK3;
{15点}
TD15D:=REF(特净额+大净额,BARSLAST(TIME>143000 AND TIME<=150000));
DD15D:=REF(散净额,BARSLAST(TIME>143000 AND TIME<=150000));
DRAWTEXTREL(910,300,STRRIGHT(NUMTOSTRN(TD15D-TD14DB,2),10)),COLOR0000FF,LINETHICK3;
DRAWTEXTREL(910,470,STRRIGHT(NUMTOSTRN(DD15D-DD14DB,2),10)),COLOR00FF00,LINETHICK3;
{总净额}
DRAWTEXTREL(470,550,’【’+NUMTOSTRN(特净额+大净额,1)+’万】’),COLOR0000FF,LINETHICK4;
DRAWTEXTREL(470,750,’【’+NUMTOSTRN(散净额,1)+’万】’),COLOR00FF00,LINETHICK4;
ahx:=hhvall(hhv(特净额+大净额,0));
alx:=LLvall(llv(特净额+大净额,0));
DRAWTEXTREL(630,550,’成交单>10W▄MAX:【’+NUMTOSTRN(ahx,1)+’万】’),COLOR0000FF,LINETHICK3,LAYER0;
DRAWTEXTREL(200,550,’成交单>10W▄MIN:【’+NUMTOSTRN(alx,1)+’万】’),COLOR00FFff,LINETHICK3,LAYER0;
ahxs:=hhvall(hhv(散净额,0));
alxs:=LLvall(llv(散净额,0));
DRAWTEXTREL(200,750,’成交单<2.W▄MAX:【’+NUMTOSTRN(ahxs,1)+’万】’),COLOR00ffFF,LINETHICK3,LAYER0;
DRAWTEXTREL(630,750,’成交单<2.W▄MIN:【’+NUMTOSTRN(alxs,1)+’万】’),COLOR00ff00,LINETHICK3,LAYER0;.
评论(0)