理想超赢主力多日动态(超准主图 源码)
{超赢多日-(超赢多日统计副图)}
TODAY:=DYNAINFO(7)=CLOSE and DYNAINFO(10)=AMOUNT and (ORDER(1)=0 and ORDER(2)=0);
Ddmr:=IF(TODAY,("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(2,2)),(bigorder(1,2)-bigorder(2,2)))*vol/capital*100;
Ddmrs:=sum(Ddmr,0);
小单买:=IF(TODAY,(1-"DDEDATA@BIGORDER"(1,1)),(1-bigorder(1,1)));
小单卖:=IF(TODAY,(1-"DDEDATA@BIGORDER"(2,1)),(1-bigorder(2,1)));
中单买:=IF(TODAY,("DDEDATA@BIGORDER"(1,1)-"DDEDATA@BIGORDER"(1,2)),(bigorder(1,1)-bigorder(1,2)));
中单卖:=IF(TODAY,("DDEDATA@BIGORDER"(2,1)-"DDEDATA@BIGORDER"(2,2)),(bigorder(2,1)-bigorder(2,2)));
大单买:=IF(TODAY,("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(1,3)),(bigorder(1,2)-bigorder(1,3)));
大单卖:=IF(TODAY,("DDEDATA@BIGORDER"(2,2)-"DDEDATA@BIGORDER"(2,3)),(bigorder(2,2)-bigorder(2,3)));
特单买:=IF(TODAY,"DDEDATA@BIGORDER"(1,3),bigorder(1,3));
特单卖:=IF(TODAY,"DDEDATA@BIGORDER"(2,3),bigorder(2,3));
主单买:=IF(TODAY,("DDEDATA@BIGORDER"(1,2)),BIGORDER(1,2));
主单卖:=IF(TODAY,("DDEDATA@BIGORDER"(2,2)),BIGORDER(2,2));
DRAWTEXTABS(0,5,'★理想超赢主力多日动态★'),COLOR1199FF,LINETHICK3;
DRAWTEXTABS(0,25,'大盘指数: '+INDEXC),COLOR00FFFF,LINETHICK2;
DRAWTEXTABS(0,40,'股票代码: '+STKLABEL),COLOR1199FF,LINETHICK2;
DRAWTEXTABS(0,55,'股票名称: '+STKNAME),COLORFFFF00,LINETHICK2;
DRAWTEXTABS(0,70,'今日最新: '+DYNAINFO(7)+'元'),COLORFF00FF,LINETHICK2;
DRAWTEXTABS(0,85,'今日最高: '+DYNAINFO(5)+'元'),COLOR0000FF,LINETHICK2;
DRAWTEXTABS(0,100,'今日最低: '+DYNAINFO(6)+'元'),COLOR00FF00,LINETHICK2;
DRAWTEXTABS(0,115,'今日涨幅: '+DYNAINFO(14)*100+'%'),COLOR5B5BFF,LINETHICK2;
DRAWTEXTABS(0,130,'今日振幅: '+DYNAINFO(13)*100+'%'),COLOR999EEF,LINETHICK2;
主买:=主单买*AMOUNT/10000;
主卖:=主单卖*AMOUNT/10000;
主净:主买-主卖,COLOR00FFFF,LINETHICK0,PRECIS2;
主增:=(VOL/CAPITAL)*100*(主单买-主单卖);
超买:=特单买*AMOUNT/10000;
超卖:=特单卖*AMOUNT/10000;
超净:超买-超卖,COLOR00FFFF,LINETHICK0,PRECIS2;
超增:=(VOL/CAPITAL)*100*(特单买-特单卖);
大买:=大单买*AMOUNT/10000;
大卖:=大单卖*AMOUNT/10000;
大净:大买-大卖,COLOR00FFFF,LINETHICK0,PRECIS2;
大增:=(VOL/CAPITAL)*100*(大单买-大单卖);
中买:=中单买*AMOUNT/10000;
中卖:=中单卖*AMOUNT/10000;
中净:中买-中卖,COLOR00FFFF,LINETHICK0,PRECIS2;
中增:=(VOL/CAPITAL)*100*(中单买-中单卖);
散买:=小单买*AMOUNT/10000;
散卖:=小单卖*AMOUNT/10000;
散净:散买-散卖,COLOR00FFFF,LINETHICK0,PRECIS2;
散增:=(VOL/CAPITAL)*100*(小单买-小单卖);
最大值:=400/(MAX(散买,散卖,中买,中卖,大买,大卖,超买,超卖,主买,主卖,散净,中净,大净,超净,主净));
散户买:=500-(散买*最大值);
散户卖:=500-(散卖*最大值);
散户净买:=500-ABS(散净*最大值);
中户买:=500-(中买*最大值);
中户卖:=500-(中卖*最大值);
中户净买:=500-ABS(中净*最大值);
大户买:=500-(大买*最大值);
大户卖:=500-(大卖*最大值);
大户净买:=500-ABS(大净*最大值);
超大买:=500-(超买*最大值);
超大卖:=500-(超卖*最大值);
超大净买:=500-ABS(超净*最大值);
主力买:=500-(主买*最大值);
主力卖:=500-(主卖*最大值);
主力净买:=500-ABS(主净*最大值);
DRAWRECTREL(600,散户买,620,500,RGB(200,0,0)),COLOR000000;
DRAWRECTREL(620,散户卖,640,500,RGB(0,200,0)),COLOR000000;
DRAWRECTREL(640,散户净买,660,500,(IF((散净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;
DRAWRECTREL(680,中户买,700,500,RGB(200,0,0)),COLOR000000;
DRAWRECTREL(700,中户卖,720,500,RGB(0,200,0)),COLOR000000;
DRAWRECTREL(720,中户净买,740,500,(IF((中净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000;
DRAWRECTREL(760,大户买,780,500,RGB(200,0,0)),COLOR000000;
DRAWRECTREL(780,大户卖,800,500,RGB(0,200,0)),COLOR000000;
DRAWRECTREL(800,大户净买,820,500,(IF((大净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000;
DRAWRECTREL(840,超大买,860,500,RGB(200,0,0)),COLOR000000;
DRAWRECTREL(860,超大卖,880,500,RGB(0,200,0)),COLOR000000;
DRAWRECTREL(880,超大净买,900,500,(IF((超净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000;
DRAWRECTREL(920,主力买,940,500,RGB(200,0,0)),COLOR000000;
DRAWRECTREL(940,主力卖,960,500,RGB(0,200,0)),COLOR000000;
DRAWRECTREL(960,主力净买,980,500,(IF((主净 >= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000;
DRAWRECTREL(920,50,980,503,0),COLOR00FFFF;
DRAWRECTREL(840,50,900,503,0),COLORFF00FF;
DRAWRECTREL(760,50,820,503,0),COLOR00FF00;
DRAWRECTREL(680,50,740,503,0),COLORB5B5B5;
DRAWRECTREL(600,50,660,503,0),COLORFF9911;
DRAWRECTREL(519,50,580,505,0),COLOR00FFFF;
DRAWRECTREL(439,50,500,505,0),COLOR00FFFF;
DRAWRECTREL(359,50,420,505,0),COLOR00FFFF;
DRAWRECTREL(279,50,340,505,0),COLOR00FFFF;
DRAWTEXTREL(240,510,'时期'),COLORDDFFFF;
DRAWTEXTREL(240,600,'买入'),COLOR0000FF;
DRAWTEXTREL(240,700,'卖出'),COLOR00FF00;
DRAWTEXTREL(240,800,'净买'),COLOR00FFFF;
DRAWTEXTREL(240,900,'增减'),COLOR5B5BFF;
DRAWTEXTREL(600,510,'今日散户'),COLORDDFFFF;
DRAWTEXTREL(600,600,NUMTOSTRN(散买,2)),COLOR0000FF;
DRAWTEXTREL(600,700,NUMTOSTRN(散卖,2)),COLOR00FF00;
DRAWTEXTREL(600,800,NUMTOSTRN(散净,2)),COLOR00FFFF;
DRAWTEXTREL(600,900,NUMTOSTRN(散增,2)+'%'),COLOR5B5BFF;
DRAWTEXTREL(680,510,'今日中户'),COLORDDFFFF;
DRAWTEXTREL(680,600,NUMTOSTRN(中买,2)),COLOR0000FF;
DRAWTEXTREL(680,700,NUMTOSTRN(中卖,2)),COLOR00FF00;
DRAWTEXTREL(680,800,NUMTOSTRN(中净,2)),COLOR00FFFF;
DRAWTEXTREL(680,900,NUMTOSTRN(中增,2)+'%'),COLOR5B5BFF;
DRAWTEXTREL(760,510,'今日大户'),COLORDDFFFF;
DRAWTEXTREL(760,600,NUMTOSTRN(大买,2)),COLOR0000FF;
DRAWTEXTREL(760,700,NUMTOSTRN(大卖,2)),COLOR00FF00;
DRAWTEXTREL(760,800,NUMTOSTRN(大净,2)),COLOR1199FF;
DRAWTEXTREL(760,900,NUMTOSTRN(大增,2)+'%'),COLOR5B5BFF;
DRAWTEXTREL(840,510,'今日超大'),COLORDDFFFF;
DRAWTEXTREL(840,600,NUMTOSTRN(超买,2)),COLOR0000FF;
DRAWTEXTREL(840,700,NUMTOSTRN(超卖,2)),COLOR00FF00;
DRAWTEXTREL(840,800,NUMTOSTRN(超净,2)),COLOR00FFFF;
DRAWTEXTREL(840,900,NUMTOSTRN(超增,2)+'%'),COLOR5B5BFF;
DRAWTEXTREL(920,510,'今日主力'),COLORDDFFFF;
DRAWTEXTREL(920,600,NUMTOSTRN(主买,2)),COLOR0000FF;
DRAWTEXTREL(920,700,NUMTOSTRN(主卖,2)),COLOR00FF00;
DRAWTEXTREL(920,800,NUMTOSTRN(主净,2)),COLOR00FFFF;
DRAWTEXTREL(920,900,NUMTOSTRN(主增,2)+'%'),COLOR5B5BFF;
昨买:=REF(主买,1);
昨卖:=REF(主卖,1);
昨净:=REF(主净,1);
昨增:=REF(主增,1);
昨值:=300/(MAX(昨买,昨卖,昨净));
昨买A:=500-(昨买*昨值);
昨卖A:=500-(昨卖*昨值);< |