{虚拟量}
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),NODRAW;
STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),VVOL,0,-1,-1),COLORBROWN;{虚拟量};
STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),VVOL/2,0,-1,-1),COLORBROWN;{虚拟量};
VOLUME:VOL,VOLSTICK;
低量柱:=IF(V=LLV(V,20),9,8);
XG低:=低量柱>8;
百日高量:=IF(DYNAINFO(4)>0 AND V=HHV(V,80) AND BARSCOUNT(C)>30 ,1,0);
DRAWTEXT(百日高量 ,VOL*1.5,'100'),COLORWHITE;
百日低量:=IF(DYNAINFO(4)>0 AND V=LLV(V,50) AND BARSCOUNT(C)>30 ,1,0);
STICKLINE(百日低量,0,V,2,0),COLORYELLOW ;
{倍量柱}
倍量柱:=VOL>=REF(V,1)*1.9 AND C>O ;
DRAWTEXT(倍量柱 ,VOL*1.8,'倍'),COLORRED;
梯量连阳:=REF(V,1)>REF(V,2)*1.1 AND V>REF(V,1)*1.1 AND UPNDAY(C,3) AND COUNT(C/REF(C,1)<=1.03,3)=3
AND DYNAINFO(4)>0 AND FINANCE(42)>30;
DRAWTEXT(梯量连阳 ,VOL*1.8,'XT'),COLORRED;
倍阴柱:=VOL>=REF(V,1)*1.9 AND C
STICKLINE(倍阴柱,0,V,2,0),COLORGREEN ; {平量}