AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2))/25000,LINETHICK0;
卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0- AA*(HIGH-LOW),0-VOL/2))/25000,LINETHICK0,COLORCYAN;
一日资金流入:AMOUNT*买量*0.768/10000,COLORRED,LINETHICK0;
一日资金流出:AMOUNT*卖量/10000,COLORGREEN,LINETHICK0;
净额:一日资金流入+一日资金流出,LINETHICK0;
BBD:COUNT(净额>0,10),COLORRED;
资金:LAST(净额>0,3,1);
STICKLINE(净额>0,0,净额,2,0),COLORRED,LINETHICK2;
STICKLINE(净额<0,净额,0,2,0),COLORGREEN,LINETHICK2;
0,POINTDOT,COLORWHITE;
五日:SUM(净额,5),LINETHICK1;
BB:=REF(净额,1);
三日:SUM(净额,3),LINETHICK1;
十日:SUM(净额,10),LINETHICK1;