主买A:=ACTINVOL,COLORRED,NODRAW;
主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;
主买:主买A*100/(主买A+主卖A),NODRAW,COLORRED;
主卖:主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;
净量:=ABS(主买A-主卖A);
STICKLINE(主买A>主卖A,0,主买A,2,1),COLOR0014AD;
STICKLINE(主买A>主卖A,0,净量,2,0),COLOR0014CE;
STICKLINE(主卖A>主买A,0,主卖A,2,1),COLOR00BB00;
STICKLINE(主卖A>主买A,0,净量,2,0),COLOR00CC00;
DRAWRECTREL(50,0,CONST(主买*500/(主买+主卖)+50),80,RGB(230,65,0));
DRAWRECTREL(50,110,CONST(主卖*500/(主买+主卖)+50),190,RGB(0,104,0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.005,0,0,'主买'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.005,0.1,0,'主卖'),COLORGREEN;