vol,VOLSTICK;
开盘秒数:=IF(CURRENTDATE=DATE,if(CURRENTTIME>93000 and CURRENTTIME<150000,
if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200),
if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600),7200)),14400),0);
DM:=CEILING(开盘秒数/60);
A1:=if(MOD(开盘秒数,3600)=0,3600,MOD(开盘秒数,3600));
A2:=if(MOD(开盘秒数,1800)=0,1800,MOD(开盘秒数,1800));
A3:=if(MOD(开盘秒数,900)=0,900,MOD(开盘秒数,900));
A4:=if(MOD(开盘秒数,300)=0,300,MOD(开盘秒数,300));
{- }
虚拟量:IF(CURRENTDATE=DATE and BARSTATUS=2,if(DATATYPE=6 ,vol*240/DM,
if(DATATYPE=5,if(MOD(开盘秒数,3600)<15,vol,vol*3600/A1),
if(DATATYPE=4,if(MOD(开盘秒数,1800)<15,vol,vol*1800/A2),
if(DATATYPE=3,if(MOD(开盘秒数,900)<15,vol,vol*900/A3),
if(DATATYPE=2,if(MOD(开盘秒数,300)<15,vol,vol*300/A4),
if(DATATYPE=1,if(MOD(开盘秒数,60)<15,vol,
vol*60/if(MOD(开盘秒数,60)=0,60,MOD(开盘秒数,60))),vol)))))),vol),LINETHICK0,COLORYELLOW;
STICKLINE(BARSTATUS=2,虚拟量,VOL,7.3,01),COLOR00FFFF,LINEDOT;
MA5:MA(虚拟量,5),COLOR00FFFF;
MA35:MA(虚拟量,35),COLORMAGENTA;
MA135:ma(虚拟量,135),COLORGREEN;