A1:=(vol/CLOSE)/3,NODRAW;
A2:=SUM((IF(((A1 0.20) AND (CLOSE (REF(CLOSE,1)))),A1,0)),0);
A3:=SUM((IF(((A1 0.20) AND (CLOSE (REF(CLOSE,1)))),A1,0)),0);
A4:=SUM((IF(((A1 0.29) AND (CLOSE (REF(CLOSE,1)))),A1,0)),0);
A5:=SUM((IF(((A1 0.29) AND (CLOSE (REF(CLOSE,1)))),A1,0)),0);
A6:=((A2+A3)+A4)+A5;
A7:=IF((ISLAstBAR=1),((100*A2)/A6),0);
A8:=((IF((ISLASTBAR=1),((100*A3)/A6),0)));
A9:=((IF((ISLASTBAR=1),((100*A4)/A6),0)));
A10:=((IF((ISLASTBAR=1),((100*A5)/A6),0)));
红色买盘:(A2),LINETHICK3,COLORRED;
绿色卖盘:(A3),LINETHICK3,COLORGREEN;
买入:(A2/(A2+A3))*100,COLORRED,NODRAW;
卖出:(A3/(A2+A3))*100,COLORGREEN,NODRAW;
DRAWICON(买入/卖出 2,红色买盘,1);