AAA:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
主买:=IF(CLOSE>OPEN,AAA*(HIGH-LOW),IF(CLOSE<OPEN,AAA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;
主卖:=-IF(CLOSE>OPEN,0-AAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AAA*(HIGH-LOW),0-VOL/2)),LINETHICK0;
净量:=(主买-主卖),LINETHICK0;
净占比:=净量/CAPITAL*100;
净占比路线:SUM(净占比,0);
M5:MA(净占比路线,5);
M20:MA(净占比路线,20);