量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VOLUME:量,VOLSTICK;
买量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE<OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1;
总量:=(买量+卖量),VOLSTICK;
净量:=买量-卖量>0;
短量:=量-总量>0;
STICKLINE(买量,0,VOL,0.8,0),COLORRED;
STICKLINE(净量,0,VOL,0.8,0),COLORYELLOW;
STICKLINE(短量,0,VOL,0.8,0),COLORMAGENTA;
净买量黄色:0,COLORYELLOW;买量红色:0,COLORRED;短买量:0,COLORMAGENTA;
20106510101272738.png
|