A1:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
BL:=VOL/CAPITAL*100;
资金进:SUM(IF(CLOSE>OPEN,BL,0),20),LINETHICK0;
资金出:SUM(IF(CLOSE<=OPEN,BL,0),20),LINETHICK0;
资金流向:SUM(资金进-资金出,3);
STICKLINE(A1>=0,0,A1,5,0),colorFF;
DRAWICON(A1<0,0,11);
DRAWICON(A1>=0,0,10);
PARTLINE(资金流向>0,资金流向),colorFF;
PARTLINE(资金流向<0,资金流向),colorFF00;