量:VOL,NODRAW,colorwhite;
STICKLINE(量<=HHV(量,144)*0.2,0,量,10,0),colorgray;
STICKLINE(量>=HHV(量,144),0,量,10,0),colorgreen;
STICKLINE(量>HHV(量,144)*0.2 AND 量<HHV(量,144) AND C>REF(C,1) AND (量/REF(量,1)<1.5 OR 量/REF(量,1)>3.6),0,量,10,1),colorred
;
STICKLINE(量>HHV(量,144)*0.2 AND 量<HHV(量,144) AND C<=REF(C,1) AND (量/REF(量,1)<1.5 OR 量/REF(量,1)>3.6),0,量,10,1),colorcyan;
STICKLINE(量<=HHV(量,144)*0.2 AND 量/REF(量,1)>=1.5 AND 量/REF(量,1)<=3.6,REF(量,1),量,10,0),coloryellow;
STICKLINE(量>HHV(量,144)*0.2 AND 量<HHV(量,144) AND 量/REF(量,1)>=1.5 AND 量/REF(量,1)<=3.6,0,量,10,0),coloryellow;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),NODRAW,colormagenta;
主卖:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),NODRAW,colorgreen;
净流:主买+主卖,NODRAW,colorcyan;
STICKLINE(C>REF(C,1),0,主买,8,0),colormagenta;
STICKLINE(C<=REF(C,1),0,主买,8,0),colormagenta;
量比:VOL/REF(VOL,1),NODRAW,colorcyan;
主买占比:主买/量*100,NODRAW,COLOR336699;
E5:EMA(量,5),colorcyan;
E21:EMA(量,21),colorgreen;
E144:EMA(量,144),colormagenta;