日线量比指标 通达信公式(附图)

[复制链接]
查看107 | 回复0 | 2021-8-20 16:11:51 | 显示全部楼层 |阅读模式

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));

14W924034950-19447.jpg

14W924034950-19447.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则