通达信日线量比指标公式

TT:=IF(HOUR>12,(HOUR-13)*60+MINUTE+120,(HOUR-9)*60+MINUTE-30);
P:=IF(PERIOD=5,FROMOPEN,TT);
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(M大智慧策略投资终端ACE破解版,股票软件破解,大智慧软件破解,通达信软件破解,沪深10档L2数据,全息盘口,同花顺金融大师,通达信超赢版,通达信通赢版,通达信MVP交易终端,通达信研究版,通达信iTrend,拓赢,超赢,BBD,DDE,ai,深一度,ai形态TIME<0.5,TOTAL,MTIME);
VVOL:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,VOL),NODRAW;
S1:=IF(PERIOD=4,60,IF(PERIOD=3,30,IF(PERIOD=2,15,IF(PERIOD=1,5,1))));
S2:=IF(PERIOD=5,4,IF(PERIOD=4,8,IF(PERIOD=3,16,IF(PERIOD=2,48,240))));
S3:=P/S1,NODRAW;
分时量比:=SUM(VOL,S3)/S3/DYNAINFO(16)/TOTAL;
日量比:=VVOL/REF(MA(VOL,5),1);
量比:IF(PERIOD<5,分时量比,IF(PERIOD=5,日量比,0));

通达信日线量比指标公式