欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件金字塔软件问题提交 → 半夜淀粉莫名其妙有行情,导致交易紊乱

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有3034人关注过本帖平板打印复制链接

主题:半夜淀粉莫名其妙有行情,导致交易紊乱

帅哥哟,离线,有人找我吗?
xiebooo
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:论坛游侠 帖子:165 积分:0 威望:0 精华:0 注册:2015/11/17 17:32:45
  发帖心情 Post By:2016/11/11 18:19:53 [只看该作者]


----------------------------------------------------------------------------------------
然后请看我自己在代码中加的debugfile2语句记录下来的情况。如前面帖子所述:我在后台程序化的代码中用debugfile来记录各个变量的值,然后昨天记录到下面贴出来的情况。其中1c,2c,3c表示的是仓量,由于我的策略中使用不同参数对同一品种交易,就用这些全局变量来记录每组参数对应的仓量。对应的,1p是第一组仓位的平仓价格,以此类推。
在该记录里可以看到,11月8日我持有30手淀粉,1c、2c、3c都是10,并且各自记录了平仓条件,1p2p3p都在1800上下,持续到当日14:59:59都是没有问题的。然后15:22后台程序化莫名启动了,先是1p2p3p莫名变成了13000左右,然后1c2c3c变成0,然后1p2p3p变成6000左右,然后还有各种奇葩无厘头的变动,最终结果是1c2c3c回到了10,但是1p2p3p变成了13000左右。整个过程从15:22:26到15:23:20。第二天开盘,淀粉价格比13000低,按照程序指令,开盘直接市价平仓了。

2016-11-08 14:59:59.543    开始1c=10
2016-11-08 14:59:59.543    开始2c=10
2016-11-08 14:59:59.543    开始3c=10
2016-11-08 14:59:59.543    tsell前1p=1794
2016-11-08 14:59:59.543    tsell后1c=10
2016-11-08 14:59:59.543    tsell前2p=1800
2016-11-08 14:59:59.543    tsell后2c=10
2016-11-08 14:59:59.543    tsell前3p=1808
2016-11-08 14:59:59.543    tsell后3c=10
2016-11-08 14:59:59.543    dianfen运行结束
2016-11-08 15:22:26.174    开始1c=10
2016-11-08 15:22:26.174    开始2c=10
2016-11-08 15:22:26.174    开始3c=10
2016-11-08 15:22:26.174    tsell前1p=1794
2016-11-08 15:22:26.174    tsell后1c=10
2016-11-08 15:22:26.190    tsell前2p=1800
2016-11-08 15:22:26.190    tsell后2c=10
2016-11-08 15:22:26.190    tsell前3p=1808
2016-11-08 15:22:26.190    tsell后3c=10
2016-11-08 15:22:26.190    dianfen运行结束
2016-11-08 15:22:28.471    开始1c=10
2016-11-08 15:22:28.471    开始2c=10
2016-11-08 15:22:28.471    开始3c=10
2016-11-08 15:22:28.471    tsell前1p=1794
2016-11-08 15:22:28.471    tsell后1c=10
2016-11-08 15:22:28.471    tsell前2p=1800
2016-11-08 15:22:28.471    tsell后2c=10
2016-11-08 15:22:28.471    tsell前3p=1808
2016-11-08 15:22:28.471    tsell后3c=10
2016-11-08 15:22:28.471    dianfen运行结束
2016-11-08 15:22:32.909    开始1c=10
2016-11-08 15:22:32.909    开始2c=10
2016-11-08 15:22:32.909    开始3c=10
2016-11-08 15:22:32.909    tsell前1p=13994
2016-11-08 15:22:32.909    tsell后1c=10
2016-11-08 15:22:32.909    tsell前2p=13546
2016-11-08 15:22:32.909    tsell后2c=10
2016-11-08 15:22:32.909    tsell前3p=13098
2016-11-08 15:22:32.909    tsell后3c=10

。。。。。。此处省略很多字,还有很多莫名的参数跳动。

2016-11-08 15:22:42.550    开始1c=0
2016-11-08 15:22:42.550    开始2c=0
2016-11-08 15:22:42.550    开始3c=0
2016-11-08 15:22:42.550    tbuy后1c=0
2016-11-08 15:22:42.550    tbuy后1p=0
2016-11-08 15:22:42.550    tbuyshort后1c=0
2016-11-08 15:22:42.550    tbuyshort后1p=0
2016-11-08 15:22:42.550    tbuy后2c=0
2016-11-08 15:22:42.565    tbuy后2p=0
2016-11-08 15:22:42.565    tbuyshort后2c=0
2016-11-08 15:22:42.565    tbuyshort后2p=0
2016-11-08 15:22:42.565    tbuy后3c=0
2016-11-08 15:22:42.565    tbuy后3p=0
2016-11-08 15:22:42.565    tbuyshort后3c=0
2016-11-08 15:22:42.565    tbuyshort后3p=0
2016-11-08 15:22:42.565    dianfen运行结束
2016-11-08 15:22:43.065    开始1c=0
2016-11-08 15:22:43.065    开始2c=0
2016-11-08 15:22:43.065    开始3c=0
2016-11-08 15:22:43.065    tbuy前1c=10
2016-11-08 15:22:43.065    tbuy后1c=10
2016-11-08 15:22:43.065    tbuy后1p=1813
2016-11-08 15:22:43.065    tbuyshort后1c=10
2016-11-08 15:22:43.065    tbuyshort后1p=1813
2016-11-08 15:22:43.065    tbuy前2c=10
2016-11-08 15:22:43.065    tbuy后2c=10
2016-11-08 15:22:43.065    tbuy后2p=1813
2016-11-08 15:22:43.065    tbuyshort后2c=10
2016-11-08 15:22:43.065    tbuyshort后2p=1813
2016-11-08 15:22:43.065    tbuy前3c=10
2016-11-08 15:22:43.065    tbuy后3c=10
2016-11-08 15:22:43.065    tbuy后3p=1813
2016-11-08 15:22:43.065    tbuyshort后3c=10
2016-11-08 15:22:43.065    tbuyshort后3p=1813
2016-11-08 15:22:43.065    dianfen运行结束
2016-11-08 15:22:44.956    开始1c=10
2016-11-08 15:22:44.972    开始2c=10
2016-11-08 15:22:44.972    开始3c=10
2016-11-08 15:22:44.972    tsell前1p=1813
2016-11-08 15:22:44.972    tsell后1c=10
2016-11-08 15:22:44.972    tsell前2p=1813
2016-11-08 15:22:44.972    tsell后2c=10
2016-11-08 15:22:44.972    tsell前3p=1813
2016-11-08 15:22:44.972    tsell后3c=10
2016-11-08 15:22:44.972    dianfen运行结束
2016-11-08 15:23:20.675    开始1c=10
2016-11-08 15:23:20.675    开始2c=10
2016-11-08 15:23:20.675    开始3c=10
2016-11-08 15:23:20.675    tsell前1p=13994
2016-11-08 15:23:20.675    tsell后1c=10
2016-11-08 15:23:20.675    tsell前2p=13546
2016-11-08 15:23:20.675    tsell后2c=10
2016-11-08 15:23:20.675    tsell前3p=13098
2016-11-08 15:23:20.675    tsell后3c=10
2016-11-08 15:23:20.675    dianfen运行结束
2016-11-09 09:00:11.557    开始1c=10
2016-11-09 09:00:11.557    开始2c=10
2016-11-09 09:00:11.557    开始3c=10
2016-11-09 09:00:11.557    tsell前1p=14997
2016-11-09 09:00:11.557    tsell后1c=0
2016-11-09 09:00:11.557    tbuy后1c=0
2016-11-09 09:00:11.557    tbuy后1p=0
2016-11-09 09:00:11.557    tbuyshort后1c=0
2016-11-09 09:00:11.557    tbuyshort后1p=0
2016-11-09 09:00:11.557    tsell前2p=14950
2016-11-09 09:00:11.557    tsell后2c=0
2016-11-09 09:00:11.557    tbuy后2c=0
2016-11-09 09:00:11.557    tbuy后2p=0
2016-11-09 09:00:11.557    tbuyshort后2c=0
2016-11-09 09:00:11.557    tbuyshort后2p=0
2016-11-09 09:00:11.557    tsell前3p=14903
2016-11-09 09:00:11.557    tsell后3c=0
2016-11-09 09:00:11.557    tbuy后3c=0
2016-11-09 09:00:11.557    tbuy后3p=0
2016-11-09 09:00:11.557    tbuyshort后3c=0
2016-11-09 09:00:11.573    tbuyshort后3p=0
2016-11-09 09:00:11.573    dianfen运行结束
2016-11-09 09:00:12.588    开始1c=0
2016-11-09 09:00:12.588    开始2c=0
2016-11-09 09:00:12.588    开始3c=0
2016-11-09 09:00:12.588    tbuy后1c=0
2016-11-09 09:00:12.588    tbuy后1p=0
2016-11-09 09:00:12.588    tbuyshort后1c=0
2016-11-09 09:00:12.588    tbuyshort后1p=0
2016-11-09 09:00:12.588    tbuy后2c=0
2016-11-09 09:00:12.588    tbuy后2p=0
2016-11-09 09:00:12.588    tbuyshort后2c=0
2016-11-09 09:00:12.588    tbuyshort后2p=0
2016-11-09 09:00:12.588    tbuy后3c=0
2016-11-09 09:00:12.588    tbuy后3p=0
2016-11-09 09:00:12.588    tbuyshort后3c=0
2016-11-09 09:00:12.588    tbuyshort后3p=0
2016-11-09 09:00:12.588    dianfen运行结束
2016-11-09 09:00:13.557    开始1c=0
2016-11-09 09:00:13.557    开始2c=0
2016-11-09 09:00:13.557    开始3c=0
2016-11-09 09:00:13.557    tbuy后1c=0
2016-11-09 09:00:13.557    tbuy后1p=0
2016-11-09 09:00:13.557    tbuyshort后1c=0
2016-11-09 09:00:13.557    tbuyshort后1p=0
2016-11-09 09:00:13.557    tbuy后2c=0
2016-11-09 09:00:13.557    tbuy后2p=0
2016-11-09 09:00:13.557    tbuyshort后2c=0
2016-11-09 09:00:13.557    tbuyshort后2p=0
2016-11-09 09:00:13.557    tbuy后3c=0
2016-11-09 09:00:13.557    tbuy后3p=0
2016-11-09 09:00:13.557    tbuyshort后3c=0
2016-11-09 09:00:13.557    tbuyshort后3p=0
2016-11-09 09:00:13.557    dianfen运行结束


 回到顶部
总数 15 1 2 下一页