量:=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;
|