M1:=5;
M2:=35;
M3:=135;
量:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
VOLUME:量,VOLSTICK;
买量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE<OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1;
总量:=(买量+卖量),VOLSTICK;
净量:=买量-卖量>0;
短量:=量-总量>0;
STICKLINE(买量,0,VOL,0.8,0),COLORRED;
STICKLINE(净量,0,VOL,0.8,0),COLORYELLOW;
STICKLINE(短量,0,VOL,0.8,0),COLORMAGENTA;
拉升净买入黄色:0,COLORYELLOW;吸筹冲顶红色:0,COLORRED;短买量:0,COLORMAGENTA;
MA5V:MA(V,5),LINETHICK2,COLORYELLOW;
MA35V:MA(V,35),LINETHICK2,COLORMAGENTA;
MA135V:MA(V,135),LINETHICK2,COLORRED;
换手:VOL/CAPITAL*100,POINTDOT COLORMAGENTA;
五:SUM(换手,5), COLORWHITE;
十:SUM(换手,10), COLORYELLOW;
万手:=VOL/10000,LINETHICK0;
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主买:主动买/10000,COLORRED;
主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));
主卖:-主动卖/10000,COLORGREEN;
净流入:(主动买+主动卖)/10000;