{分时超赢-(分时主图.叠加超赢)}
{分时线}
最新:C,COLORWHITE,LINETHICK2,PRECIS2,LAYER0;
AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
BB:=BETWEEN(C/AA,C+H,C-H);
均线:IF(BB=0,MA(C,BARSCOUNT(C)),AA),COLOR00FFFF,LINETHICK2,PRECIS2;
昨收:"卫东.昨收#DAY",COLORFF00FF,LINETHICK0,PRECIS2,LAYER0;
主动率:="卫东.主动率#day";
单数比:="卫东.单数比#day";
通吃率:="卫东.通吃率#day";
DRAWTEXTABS(160,5,datestr(DATE)+’ 星期’+WEEKDAY+’ ‘+STKLABEL+’ ‘+STKNAME+
‘ ‘+DYNAINFO(7)+’元’+’ ‘+DYNAINFO(14)*100+’%’),LINETHICK4,COLOR00b5ff;
DRAWTEXTREL(0,5,’《夏卫东-原创》’),COLOR0000FF;
DRAWTEXTREL(0,180,’大盘指数:’+"卫东.大盘指数#day"),COLORYELLOW;
DRAWTEXTREL(0,220,’大盘涨幅:’+"卫东.大盘涨幅#day"+’%’),LINETHICK0,PRECIS2,COLORFFFFFF;
DRAWTEXTREL(0,260,’上涨家数:’+"卫东.上涨家数#day"+’家’),COLOR0000FF;
DRAWTEXTREL(0,300,’平盘家数:’+"卫东.平盘家数#day"+’家’),COLORFFFFFF;
DRAWTEXTREL(0,340,’下跌家数:’+"卫东.下跌家数#day"+’家’),COLOR00FF00;
DRAWTEXTREL(0,380,’股票代码:’+STKLABEL),COLORFFFF00;
DRAWTEXTREL(0,420,’股票名称:’+STKNAME),COLORFFFF00;
DRAWTEXTREL(0,460,’最新价格:’+DYNAINFO(7)+’元’),COLORFF00FF;
DRAWTEXTREL(0,500,’今日涨幅:’+DYNAINFO(14)*100+’%’),COLOR00FFFF;
DRAWTEXTREL(0,540,’历史最高:’+HHV(HIGH,0)+’元’),Colorred;
DRAWTEXTREL(0,580,’历史最低:’+LLV(LOW,0)+’元’),COLOR00FF00;
DRAWTEXTREL(0,620,’换 手 率:’+DYNAINFO(37)*100+’%’),COLORFF00FF;
DRAWTEXTREL(0,660,’市 盈 率:’+DYNAINFO(39)+’%’),COLOR00FFFF;
DRAWTEXTREL(0,700,’市 净 率:’+DYNAINFO(58)+’%’),COLOR00FF00;
DRAWTEXTREL(0,740,’主 动 率:’+NUMTOSTRN(主动率,2)+’%’),COLOR0033FF;
DRAWTEXTREL(0,780,’单 数 比:’+NUMTOSTRN(单数比,2)+’%’),COLOR00FF00;
DRAWTEXTREL(0,820,’通 吃 率:’+NUMTOSTRN(通吃率,2)+’%’),COLOR00FFff;
{分时超赢
ZLLR:=SUM((AMOUNT*"卫东.主单买#day"/10000),0);
ZLLC:=SUM((AMOUNT*"卫东.主单卖#day"/10000),0);
主净:ZLLR-ZLLC,COLOR00FFFF,LINETHICK0,PRECIS2;
TDLR:=SUM((AMOUNT*"卫东.特单买#day"/10000),0);
TDLC:=SUM((AMOUNT*"卫东.特单卖#day"/10000),0);
超净:TDLR-TDLC,COLOR0000FF,LINETHICK0,PRECIS2;
DDLR:=SUM((AMOUNT*"卫东.大单买#day"/10000),0);
DDLC:=SUM((AMOUNT*"卫东.大单卖#day"/10000),0);
大净:DDLR-DDLC,COLOR1e90ff,LINETHICK0,PRECIS2;
ZDLR:=SUM((AMOUNT*"卫东.中单买#day"/10000),0);
ZDLC:=SUM((AMOUNT*"卫东.中单卖#day"/10000),0);
中净:ZDLR-ZDLC,COLORff7f50,LINETHICK0,PRECIS2;
XDLR:=SUM((AMOUNT*"卫东.散单买#day"/10000),0);
XDLC:=SUM((AMOUNT*"卫东.散单卖#day"/10000),0);
散净:XDLR-XDLC,COLOR00FF00,LINETHICK0,PRECIS2;
{画柱图};
最大值:=400/(MAX(ZLLR,ZLLC,TDLR,TDLC,DDLR,DDLC,ZDLR,ZDLC,XDLR,XDLC,散净,中净,大净,超净,主净));
主力买:=600-(ZLLR*最大值);
主力卖:=600-(ZLLC*最大值);
超大买:=600-(TDLR*最大值);
超大卖:=600-(TDLC*最大值);
大户买:=600-(DDLR*最大值);
大户卖:=600-(DDLC*最大值);
中户买:=600-(ZDLR*最大值);
中户卖:=600-(ZDLC*最大值);
散户买:=600-(XDLR*最大值);
散户卖:=600-(XDLC*最大值);
散户净买:=400-(ABS(散净)*最大值);
中户净买:=400-(ABS(中净)*最大值);
大户净买:=400-(ABS(大净)*最大值);
超大净买:=400-(ABS(超净)*最大值);
主力净买:=400-(ABS(主净)*最大值);
{各单增减比例显示}
主力持仓:="卫东.主力持仓#day";
超大持仓:="卫东.超大持仓#day";
大户持仓:="卫东.大户持仓#day";
中户持仓:="卫东.中户持仓#day";
散户持仓:="卫东.散户持仓#day";
主力增仓:="卫东.主力增仓#day";
超大增仓:="卫东.超大增仓#day";
大户增仓:="卫东.大户增仓#day";
中户增仓:="卫东.中户增仓#day";
散户增仓:="卫东.散户增仓#day";
DRAWRECTREL(330,主力买,350,610,RGB(200,0,0)),COLOR000000,LAYER5;
DRAWRECTREL(350,主力卖,370,610,RGB(0,200,0)),COLOR000000,LAYER5;
DRAWRECTREL(370,主力净买,390,610,(IF((主净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;
DRAWRECTREL(445,超大买,465,610,RGB(200,0,0)),COLOR000000,LAYER5;
DRAWRECTREL(465,超大卖,485,610,RGB(0,200,0)),COLOR000000,LAYER5;
DRAWRECTREL(485,超大净买,505,610,(IF((超净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;
DRAWRECTREL(560,大户买,580,610,RGB(200,0,0)),COLOR000000,LAYER5;
DRAWRECTREL(580,大户卖,600,610,RGB(0,200,0)),COLOR000000,LAYER5;
DRAWRECTREL(600,大户净买,620,610,(IF((大净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;
DRAWRECTREL(675,中户买,695,610,RGB(200,0,0)),COLOR000000,LAYER5;
DRAWRECTREL(695,中户卖,715,610,RGB(0,200,0)),COLOR000000,LAYER5;
DRAWRECTREL(715,中户净买,735,610,(IF((中净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;
DRAWRECTREL(790,散户买,810,610,RGB(200,0,0)),COLOR000000,LAYER5;
DRAWRECTREL(810,散户卖,830,610,RGB(0,200,0)),COLOR000000,LAYER5;
DRAWRECTREL(830,散户净买,850,610,(IF((散净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;
DRAWRECTREL( 329,610,391,640,IF((主净>= 0),RGB(200,0,0),RGB(0,255,0))),COLOR000000,LAYER0;
DRAWRECTREL( 330,640,390,655,RGB(255,255,0)),COLOR00FFFF,LAYER0;
DRAWRECTREL( 444,610,506,640,IF((超净>= 0),RGB(200,0,0),RGB(0,255,0))),COLOR000000,LAYER5;
DRAWRECTREL( 445,640,505,655,RGB(255,0,0)),COLOR0000FF,LAYER5;
DRAWRECTREL( 559,610,621,640,IF((大净>= 0),RGB(200,0,0),RGB(0,255,0))),COLOR000000,LAYER5;
DRAWRECTREL( 560,640,620,655,RGB(255,144,0)),COLOR1e90ff,LAYER5;
DRAWRECTREL( 674,610,736,640,IF((中净>= 0),RGB(200,0,0),RGB(0,255,0))),COLOR000000,LAYER5;
DRAWRECTREL( 675,640,735,655,RGB(80,127,200)),COLORff7f50,LAYER5;
DRAWRECTREL( 789,610,851,640,IF((散净>= 0),RGB(200,0,0),RGB(0,255,0))),COLOR000000,LAYER5;
DRAWRECTREL( 790,640,850,655,RGB(0,255,0)),COLOR00FF00,LAYER5;
DRAWTEXTREL(310,530,’主’),ColorDDFFFF;
DRAWTEXTREL(310,600,’力’),ColorDDFFFF;
DRAWTEXTREL(425,530,’超’),ColorDDFFFF;
DRAWTEXTREL(425,600,’大’),ColorDDFFFF;
DRAWTEXTREL(540,530,’大’),ColorDDFFFF;
DRAWTEXTREL(540,600,’户’),ColorDDFFFF;
DRAWTEXTREL(655,530,’中’),ColorDDFFFF;
DRAWTEXTREL(655,600,’户’),ColorDDFFFF;
DRAWTEXTREL(770,530,’散’),ColorDDFFFF;
DRAWTEXTREL(770,600,’户’),ColorDDFFFF;
DRAWTEXTREL(280,660,’买入:’),colorred;
DRAWTEXTREL(280,700,’卖出:’),Color00FF00;
DRAWTEXTREL(280,740,’净买:’),COLOR1199FF;
DRAWTEXTREL(280,780,’持仓:’),COLOR00FFFF;
DRAWTEXTREL(280,820,’增仓:’),COLORFFFF00;
DRAWTEXTREL(330,660,NUMTOSTRN(ZLLR,2)),colorred;
DRAWTEXTREL(330,700,NUMTOSTRN(ZLLC,2)),COLOR00FF00;
DRAWTEXTREL(330,740,NUMTOSTRN(主净,2)),COLOR1199FF;
DRAWTEXTREL(330,780,NUMTOSTRN(主力持仓,2)+’%’),COLOR00FFFF;
DRAWTEXTREL(330,820,NUMTOSTRN(主力增仓,2)+’%’),COLORFFFF00;
DRAWTEXTREL(445,660,NUMTOSTRN(TDLR,2)),colorred;
DRAWTEXTREL(445,700,NUMTOSTRN(TDLC,2)),COLOR00FF00;
DRAWTEXTREL(445,740,NUMTOSTRN(超净,2)),COLOR1199FF;
DRAWTEXTREL(445,780,NUMTOSTRN(超大持仓,2)+’%’),COLOR00FFFF;
DRAWTEXTREL(445,820,NUMTOSTRN(超大增仓,2)+’%’),COLORFFFF00;
DRAWTEXTREL(560,660,NUMTOSTRN(DDLR,2)),colorred;
DRAWTEXTREL(560,700,NUMTOSTRN(DDLC,2)),COLOR00FF00;
DRAWTEXTREL(560,740,NUMTOSTRN(大净,2)),COLOR1199FF;
DRAWTEXTREL(560,780,NUMTOSTRN(大户持仓,2)+’%’),COLOR00FFFF;
DRAWTEXTREL(560,820,NUMTOSTRN(大户增仓,2)+’%’),COLORFFFF00;
DRAWTEXTREL(675,660,NUMTOSTRN(ZDLR,2)),colorred;
DRAWTEXTREL(675,700,NUMTOSTRN(ZDLC,2)),COLOR00FF00;
DRAWTEXTREL(675,740,NUMTOSTRN(中净,2)),COLOR1199FF;
DRAWTEXTREL(675,780,NUMTOSTRN(中户持仓,2)+’%’),COLOR00FFFF;
DRAWTEXTREL(675,820,NUMTOSTRN(中户增仓,2)+’%’),COLORFFFF00;
DRAWTEXTREL(790,660,NUMTOSTRN(XDLR,2)),colorred;
DRAWTEXTREL(790,700,NUMTOSTRN(XDLC,2)),COLOR00FF00;
DRAWTEXTREL(790,740,NUMTOSTRN(散净,2)),COLOR1199FF;
DRAWTEXTREL(790,780,NUMTOSTRN(散户持仓,2)+’%’),COLOR00FFFF;
DRAWTEXTREL(790,820,NUMTOSTRN(散户增仓,2)+’%’),COLORFFFF00;
评论(0)