量价:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买入:=IF(C>OPEN,量价*(HIGH-LOW),IF(C<OPEN,量价*((HIGH-OPEN)+(C-LOW)),VOL/2)),NODRAW;
卖出:=IF(C>OPEN,0-量价*((HIGH-C)+(OPEN-LOW)),IF(C<OPEN,0-量价*(HIGH-LOW),0-VOL/2)),NODRAW;
主力流入:(买入+卖出)/99,NODRAW;
封单:DYNAINFO(88)/10000,NODRAW;
STICKLINE(主力流入>0,0,主力流入,3,0),COLORRED;
STICKLINE(主力流入<0,0,主力流入,3,0),COLORGREEN;
STICKLINE(C/REF(C,1)>1.099 AND H>L AND H=C AND 封单,主力流入,主力流入+封单,2,0),COLORMAGENTA;