欢迎您光临花生网社区!
| |

 找回密码
 立即注册
查看: 2690|回复: 0
打印 上一主题 下一主题

序列数据类型的问题,急需解答!!! [复制链接]



vip

Rank: 9Rank: 9Rank: 9

1#
发表于 2013-4-11 14:25:56 |显示全部楼层 | [分享到 腾讯微博 新浪微博]
1,判断相等的话,可以用ROUND函数把精度搞到一致
2,time 取的是K线的时分秒,在日线及以上周期,time都返回0,

试下这个公式在1分钟,周线上跑的log

#Run_By_Bar
variable:New_Time(0);
//New_Time := 0;
Print('##',New_Time);
Print('&&',time/100);
if New_Time = time/100 then
begin
   Print(New_Time, '++',time/100);
   exit;  
end;

ma1: Average(c,5);
New_Time := Time/100;
Print(New_Time, '--',time/100);


然后就知道原因了。我也是发现的,至于为啥还没搞明白。

log:
11-14:25:14  testsell 输出:##1424

11-14:25:14  testsell 输出:&&1425

11-14:25:14  testsell 输出:1425--1425

11-14:25:14  testsell 输出:##1424

11-14:25:14  testsell 输出:&&1425

11-14:25:14  testsell 输出:1425--1425

11-14:25:15  testsell 输出:##1424

11-14:25:15  testsell 输出:&&1425

11-14:25:15  testsell 输出:1425--1425

11-14:25:15  testsell 输出:##1424

11-14:25:15  testsell 输出:&&1425

11-14:25:15  testsell 输出:1425--1425

11-14:25:16  testsell 输出:##1424

11-14:25:16  testsell 输出:&&1425

11-14:25:16  testsell 输出:1425--1425

11-14:25:16  testsell 输出:##1424

11-14:25:16  testsell 输出:&&1425

11-14:25:16  testsell 输出:1425--1425


为啥
11-14:25:16  testsell 输出:##1424

11-14:25:16  testsell 输出:&&1425
得研究一下。。

使用道具 举报

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


bottom

Archiver|www.hs633.com ( 粤ICP备11107430号 )

GMT+8, 2024-5-18 23:26 , Processed in 0.085939 second(s), 8 queries .

花生网 Copyright©2012-2014

回顶部