通达信买卖成交量副图指标 源码无未来 无加密

向上的红色表示买入量

向下的绿色表示卖出量

 源码是:

{主动买卖成交量}

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,NODRAW;

卖:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLORGREEN,NODRAW;DRAWTEXT_FIX(C>O,0.01,0.01,0,'

STICKLINE(VOL,0,VOL,2,1),COLORGREEN;

STICKLINE(买,0,买,2,0),COLORRED;

STICKLINE(卖,0,卖,2,0),COLORGREEN;