VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
卖:=-IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;
主买%:买/VOL*100,COLORYELLOW,NODRAW;
MA买:MA(买,M1),COLORWHITE,LINETHICK1;
MA卖:MA(卖,M2),COLORFF00FF,LINETHICK1;
IF(主买%>=60,MA买,DRAWNULL),COLORRED,LINETHICK2;
IF(主买%<=30,MA买,DRAWNULL),COLORGREEN,LINETHICK2;
DRAWICON(CROSS(MA买,MA卖),MA买,1);
DRAWICON(CROSS(MA卖,MA买),MA买,2);
DRAWICON(主买%>90,MA买,18);