以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 金字塔软件问题提交 (http://www.weistock.com/bbs/list.asp?boardid=2) ---- [求助]4个账户达到条件同时下4个单子实现不了? (http://www.weistock.com/bbs/dispbbs.asp?boardid=2&id=72793) |
-- 作者:bbking -- 发布时间:2014/12/9 10:14:58 -- [求助]4个账户达到条件同时下4个单子实现不了? if hold>0 and abx<ma1 then begin tsell(1,px11,lmt,cc2,0,ac1,pz1); tsellshort(1,px12,lmt,cc1,0,ac1,pz2); tsellshort(1,px13,lmt,cc3,0,ac1,pz3); tsellshort(1,px14,lmt,cc3,0,ac1,pz4); tsell(1,px21,lmt,cc2,0,ac2,pz1); tsellshort(1,px22,lmt,cc1,0,ac2,pz2); tsellshort(1,px23,lmt,cc3,0,ac2,pz3); tsellshort(1,px24,lmt,cc3,0,ac2,pz4); tsell(1,px31,lmt,cc2,0,ac3,pz1); tsellshort(1,px32,lmt,cc1,0,ac3,pz2); tsellshort(1,px33,lmt,cc3,0,ac3,pz3); tsellshort(1,px34,lmt,cc3,0,ac3,pz4); tsell(1,px41,lmt,cc2,0,ac4,pz1); tsellshort(1,px42,lmt,cc1,0,ac4,pz2); tsellshort(1,px43,lmt,cc3,0,ac4,pz3); tsellshort(1,px44,lmt,cc3,0,ac4,pz4); SETREGVAL(\'abx\',\'abx1_hold\',0); end 类似于上面的操作~ SETREGVAL(\'abx\',\'abx1_hold\',0); 这句都执行了但是单子下不进去... 模拟盘测试的时候下不了单 不知道实盘怎么样.. |
-- 作者:yukizzc -- 发布时间:2014/12/9 10:28:53 -- 预警记录都有吗?都有的话可能模拟账户掉线,这个你看下日志是否有掉线的记录。 |
-- 作者:bbking -- 发布时间:2014/12/9 10:31:54 -- 就是没预警记录 但是注册表键值变了 |
-- 作者:yukizzc -- 发布时间:2014/12/9 11:09:47 -- 你的注册表只是赋值0,看不出区别 SETREGVAL(\'abx\',\'abx1_hold\',CURRENTTIME()); //你记录下电脑时间看下 我本地刚测了没有问题,预警记录也都有。 |