雙色成交量源碼(副圖):
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交量1:vol,linethick0;
主動買盤:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),linethick0,colorred;
主動賣盤:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),linethick0,colorgreen;
stickline(VOL>0,vol,0,7,1),colorwhite;
stickline(主動買盤>0,0,主動買盤,7,0),colorred;
stickline(主動賣盤<0,0,主動賣盤,7,0),colorgreen;
V11:=AMOUNT/10000;
成交金額:V11/10000;
X4:=EMA(C,20);
廿斜率:(X4-REF(X4,1))/REF(X4,1)*100,LINETHICK0;
十換手:SUM(VOL,10)/CAPITAL*100;