九毛八公式指标
请老师帮助一个主图添加成交量的公式能否加入虚拟成交量和5.10.20均量线.显示在主图中。非常感谢!!!!! {主图成交量} MAXV:=CONST(HHV(VOL,21)); MAXS:=CONST(HHV(HIGH,21)); BS:=MAXV/MAXS; VOLUME:=VOL/BS*0.10; ORIGIN:=CONST(LLV(LOW,0))-CONST(0.5*HHV(VOLUME,0)),; STICKLINE(CLOSE>=OPEN,ORIGIN,ORIGIN+VOLUME,0.2,0),COLORRED; STICKLINE(CLOSE公式模块:
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL); CTIME:=IF(MTIME<0.5,TOTAL,MTIME); Vvol:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL); MAXV:=CONST(HHV(VOL,21)); MAXS:=CONST(HHV(HIGH,21)); BS:=MAXV/MAXS; VOLUME:=VOL/BS*0.10; ORIGIN:=CONST(LLV(LOW,0))-CONST(0.5*HHV(VOLUME,0)),; STICKLINE(CLOSE>=OPEN,ORIGIN,ORIGIN+VOLUME,0.2,0),COLORRED; STICKLINE(CLOSE<OPEN,ORIGIN,ORIGIN+VOLUME,0.2,0),COLORGREEN; STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),VVOL/BS*0.10+ORIGIN,ORIGIN+VOLUME,0.2,-1),COLOR00C0C0; NOTEXT1:MA(VOLUME,5)+ORIGIN; NOTEXT2:MA(VOLUME,10)+ORIGIN; NOTEXT3:MA(VOLUME,20)+ORIGIN;