通达信日线量比指标公式
2020/12/30 18:55:01
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(MTIME<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));
投股 票网 www.tou18 .cn
股市公式下载推荐