通达信成交量副图,含倍量、虚拟量
炒股离不开成交量,送大家个成交量副图指标,含倍量、虚拟量(5分钟、15分钟、30分钟、60分钟和日线)。
通达信源码:
V1:=PERIOD;
V2:=IF(V1=1,5,IF(V1=2,15,IF(V1=3,30,IF(V1=4,60,IF(V1=5,240,DRAWNULL)))));
V3:=MOD(FROMOPEN,V2);
V4:=IF(V3=0,V2,V3);
XNV:IF(CURRBARSCOUNT=1,V*V2/V4,DRAWNULL),NODRAW,COLORFF0099;
STICKLINE(CURRBARSCOUNT=1,XNV,0,-1,-1),COLORFF0099;
CJL:VOL,VOLSTICK,COLORMAGENTA;
STICKLINE(V/REF(V,1)>1.9 OR XNV/REF(V,1)>1.9,V,V/2,2.5,0),COLORFF0099;
|