REFLINE:0;成交量:vol,PRECIS2,LINETHICK0;
AAA:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));{系数=成交量/((最高价-最低价)*2-绝对值(收盘价-开盘价))}
主买:=IF(CLOSE>OPEN,AAA*(HIGH-LOW),IF(CLOSE<OPEN,AAA*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2));
主卖:=-IF(CLOSE>OPEN,0-AAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE< OPEN,0-AAA*(HIGH-LOW),0-成交量/2));
净额:主买-主卖,linethick0;;
A1:=MIN((COUNT(ORDER(2),0)),60);
ddx1:EMA(净额,A1) * A1;
DDX2:MA(DDX1,5);
DDX3:MA(DDX1,10);
STICKLINE((净额 > 0),0,净额,5,0),COLOR3D,colorred;
STICKLINE((净额 < 0),0,净额,5,0),COLOR3D,COLOR33FF33;