Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共4 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]4个账户达到条件同时下4个单子实现不了?

1楼
bbking 发表于:2014/12/9 10:14:58
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);
这句都执行了但是单子下不进去...
模拟盘测试的时候下不了单
不知道实盘怎么样..
2楼
yukizzc 发表于:2014/12/9 10:28:53

预警记录都有吗?都有的话可能模拟账户掉线,这个你看下日志是否有掉线的记录。

3楼
bbking 发表于:2014/12/9 10:31:54
 就是没预警记录
但是注册表键值变了
4楼
yukizzc 发表于:2014/12/9 11:09:47

你的注册表只是赋值0,看不出区别

SETREGVAL('abx','abx1_hold',CURRENTTIME());   //你记录下电脑时间看下

我本地刚测了没有问题,预警记录也都有。

共4 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.01367 s, 2 queries.