以下是通达信猎庄分时副图源码资金流量
资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK;
资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK;
资金流量:资金流入+资金流出;
DRAWBAND(资金流量,RGB(150,0,150),0,RGB(0,100,0));
成交额:=V*C/100;
A1:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A2:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
买盘:(A1),LINETHICK2,COLORRED;
卖盘:(A2),LINETHICK2,COLORGREEN;
进出:买盘-卖盘,COLORYELLOW,NODRAW;