测试time函数发现的一个小bug
[attach]3712[/attach]如图:CU1011 1分钟图上,K线图的时间是1353
但,指标图显示结果是0.14
我用fileappend输出的结果,也是1453
指标的源码应该没有错:
Begin
PlotNumeric("time",time());
fileappend("c:\\mylog.txt",text(time()));
End [b] [url=http://tradeblazer.net/forum/redirect.php?goto=findpost&pid=52553&ptid=9021]1#[/url] [i]leevolvo[/i] [/b]
这是由于系统精度导致的,四舍五入了
你将time*10000 哦。谢谢 lh948
页:
[1]
