N1:=BARSLAST(C<REF(C,1) OR (C=REF(C,1) AND REF(C,1)<REF(C,2)));
M1:=BARSLAST(C>REF(C,1) OR (C=REF(C,1) AND REF(C,1)>REF(C,2)));
CZB:=VOL/SUM(VOL,100)*100;
GY:=IF(N1>0,SUM(CZB,N1),0),POINTDOT;
XQ:=IF(M1>0,SUM(CZB,M1),0),POINTDOT;
STICKLINE(N1>0,0,GY,1.5,0),colorred;
STICKLINE(M1>0,0,XQ,1.5,0),colorgreen;