量:=v/10000;
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;
卖盘:-(IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2))),COLORblue;
周量:sum(量,5),LINETHICK0;
周买:sum(买盘,5),LINETHICK0;
周卖:sum(卖盘,5),LINETHICK0;
月买:sum(买盘,20),LINETHICK0,colorwhite;
月卖:sum(卖盘,20),LINETHICK0,colorwhite;
月量:sum(量,20),colorwhite;
季买:sum(买盘,60),LINETHICK0,colorwhite;
季卖:sum(卖盘,60),LINETHICK0,colorwhite;
季量:sum(量,60),colorwhite,pointdot;
买量比:买盘/量,colorred;
卖盘/量;
周量比:周买/周量,LINETHICK2,colorred;
周卖/周量,LINETHICK2;
月量比:月买/月量,LINETHICK4,colorred;
月卖/月量,LINETHICK4,colorblue;
季量比:(季买/季量),LINETHICK0,coloryellow;
(季卖/季量),LINETHICK0,colorgreen;