通达信预估换手率
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);
预估换手率:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),100*VOL/(FINANCE(7)/100)*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),预估换手率,0,-1,-1),COLOR00C0C0;
换手率:100*VOL/(FINANCE(7)/100),VOLSTICK;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数: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
输出
预估换手率:IF(( 到最后交易的周期=1 AND DYNAINFO(8)>1),100*成交量/(FINANCE(7)/100)*TOTAL/CTIME,DRAWNULL),NODRAW
STICKLINE(( 到最后交易的周期=1 AND DYNAINFO(8)>1),预估换手率,0,-1,-1),COLOR00C0C0
输出
换手率:100*成交量/(FINANCE(7)/100),成交量STICK