STICKLINE(CLOSE,30,40,4.1,1),COLORFFFFFF;
STICKLINE(CLOSE,20,30,4.1,1),COLORFFFFFF;
STICKLINE(CLOSE,0,20,4.1,1),COLORFFFFFF;
STICKLINE(CLOSE,0,10,4.1,1),COLORFFFFFF;
DDX:(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;
DDY:IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0),NODRAW;
DDZ:IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0),NODRAW;
BBD:(LARGETRDINNUM-LARGETRDOUTNUM),NODRAW;
STICKLINE(CLOSE,30,40,4.1,1),COLORFFFFFF;
DRAWNUMBER(DDX>0,36,DDX),COLORFF00FF;
DRAWNUMBER(DDX<0,36,DDX),COLORFFAA00;
STICKLINE(CLOSE,20,30,4.1,1),COLORFFFFFF;
DRAWNUMBER(DDY>0,26,DDY),COLORFF00FF;
DRAWNUMBER(DDY<0,26,DDY),COLORFFAA00;
STICKLINE(CLOSE,10,20,4.1,1),COLORFFFFFF;
DRAWNUMBER(DDZ>0,16,DDZ),COLORFF00FF;
DRAWNUMBER(DDZ<0,16,DDZ),COLORFFAA00;
STICKLINE(CLOSE,0,10,4.1,1),COLORFFFFFF;
DRAWNUMBER(BBD>0,6,BBD),COLORFF00FF;
DRAWNUMBER(BBD<0,6,BBD),COLORFFAA00;
DRAWTEXT(ISLASTBAR,36, ' 【DDX】'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,26, ' 【DDY】'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,16, ' 【DDZ】'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,06, ' 【BBD】'),COLORFFFFFF;
STICKLINE(CLOSE,70,80,4.1,1),COLORFFFFFF;
STICKLINE(CLOSE,60,70,4.1,1),COLORFFFFFF;
STICKLINE(CLOSE,50,60,4.1,1),COLORFFFFFF;
STICKLINE(CLOSE,40,50,4.1,1),COLORFFFFFF;
STICKLINE(CLOSE,30,40,4.1,1),COLORFFFFFF;
STICKLINE(CLOSE,20,30,4.1,1),COLORFFFFFF;
STICKLINE(CLOSE,0,20,4.1,1),COLORFFFFFF;
STICKLINE(CLOSE,0,10,4.1,1),COLORFFFFFF;
主力净额:ROUND((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000.0),COLORFF00FF,NODRAW;
净占比:主力净额*100/(AMOUNT/10000),NODRAW,COLORFFAA00;
主力超B:=L2_AMO(0,0)/10000.0;
主力大B:=L2_AMO(1,0)/10000.0;
主力中B:=L2_AMO(2,0)/10000.0;
主力小B:=L2_AMO(3,0)/10000.0;
主力超S:=-L2_AMO(0,1)/10000.0;
主力大S:=-L2_AMO(1,1)/10000.0;
主力中S:=-L2_AMO(2,1)/10000.0;
主力小S:=-L2_AMO(3,1)/10000.0;
主买超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;
主买净额:ROUND((主买超B+主买大B+主买中B+主买小B)+(主买超S+主买大S+主买中S+主买小S)),NODRAW,COLORFF00FF;
主买占比:主买净额*100/(AMOUNT/10000),NODRAW,COLORFFAA00;
主力特大单:ROUND((L2_AMO(0,0)/10000.0)+(-L2_AMO(0,1)/10000.0))COLORRED,NODRAW;
主力大单:ROUND((L2_AMO(1,0)/10000.0)+(-L2_AMO(1,1)/10000.0))COLOR4080FF,NODRAW;
主力中单:ROUND((L2_AMO(2,0)/10000.0)+(-L2_AMO(2,1)/10000.0))COLORYELLOW,NODRAW;
主力小单:ROUND((L2_AMO(3,0)/10000.0)+(-L2_AMO(3,1)/10000.0))COLOR00FF00,NODRAW;
主买特大单:ROUND((L2_AMO(0,2)/10000.0)+(-L2_AMO(0,3)/10000.0))COLORCYAN,NODRAW;
主买大单:ROUND((L2_AMO(1,2)/10000.0)+(-L2_AMO(1,3)/10000.0))COLORFF0000,NODRAW;
主买中单:ROUND((L2_AMO(2,2)/10000.0)+(-L2_AMO(2,3)/10000.0))COLOR8B00FF,NODRAW;
主买小单:ROUND((L2_AMO(3,2)/10000.0)+(-L2_AMO(3,3)/10000.0))COLOR808080,NODRAW;
STICKLINE(CLOSE,70,80,4.1,1),COLORFFFFFF;
DRAWNUMBER(主力特大单>0,76,主力特大单),COLORFF00FF;
DRAWNUMBER(主力特大单<0,76,主力特大单),COLORFFAA00;
STICKLINE(CLOSE,60,70,4.1,1),COLORFFFFFF;
DRAWNUMBER(主力大单>0,66,主力大单),COLORFF00FF;
DRAWNUMBER(主力大单<0,66,主力大单),COLORFFAA00;
STICKLINE(CLOSE,50,60,4.1,1),COLORFFFFFF;
DRAWNUMBER(主力中单>0,56,主力中单),COLORFF00FF;
DRAWNUMBER(主力中单<0,56,主力中单),COLORFFAA00;
STICKLINE(CLOSE,40,50,4.1,1),COLORFFFFFF;
DRAWNUMBER(主力小单>0,46,主力小单),COLORFF00FF;
DRAWNUMBER(主力小单<0,46,主力小单),COLORFFAA00;
STICKLINE(CLOSE,30,40,4.1,1),COLORFFFFFF;
DRAWNUMBER(主买特大单>0,36,主买特大单),COLORFF00FF;
DRAWNUMBER(主买特大单<0,36,主买特大单),COLORFFAA00;
STICKLINE(CLOSE,20,30,4.1,1),COLORFFFFFF;
DRAWNUMBER(主买大单>0,26,主买大单),COLORFF00FF;
DRAWNUMBER(主买大单<0,26,主买大单),COLORFFAA00;
STICKLINE(CLOSE,10,20,4.1,1),COLORFFFFFF;
DRAWNUMBER(主买中单>0,16,主买中单),COLORFF00FF;
DRAWNUMBER(主买中单<0,16,主买中单),COLORFFAA00;
STICKLINE(CLOSE,0,10,4.1,1),COLORFFFFFF;
DRAWNUMBER(主买小单>0,6,主买小单),COLORFF00FF;
DRAWNUMBER(主买小单<0,6,主买小单),COLORFFAA00;
DRAWTEXT(ISLASTBAR,76, ' 【主力特大单】'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,66, ' 【主力大单】'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,56, ' 【主力中单】'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,46, ' 【主力小单】'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,36, ' 【主买特大单】'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,26, ' 【主买大单】'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,16, ' 【主买中单】'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,06, ' 【主买小单】'),COLORFFFFFF;