通达信盘中虚拟换手率指标公式
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);
HSL0:=100*VOL/(FINANCE(7)/100),VOLSTICK;
VVOL:=IF(CURRBARSCOUNT=1,HSL0*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),VVOL,0,-1,-1),COLOR00C0C0;
HSL:100*VOL/(FINANCE(7)/100),VOLSTICK;
未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
TOTAL赋值:IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))))
MTIME赋值:MOD(FROM开盘价,TOTAL)
如果MTIME<0.5返回TOTAL否则返回MTIME
HSL0赋值:100*成交量/(FINANCE(7)/100),成交量STICK
如果 到最后交易的周期=1返回HSL0*TOTAL/CTIME否则返回DRAWNULL
STICKLINE( 到最后交易的周期=1 && (SETCODE=0 || SETCODE=1),V成交量,0,-1,-1),COLOR00C0C0
输出
HSL:100*成交量/(FINANCE(7)/100),成交量STICK