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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件金字塔软件问题提交 → 走完K线,提前N秒下单

   

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


  共有4910人关注过本帖树形打印复制链接

主题:走完K线,提前N秒下单

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


加好友 发短信
等级:论坛游民 帖子:111 积分:135 威望:0 精华:0 注册:2012/12/7 9:56:47
  发帖心情 Post By:2013/10/18 13:16:53 [显示全部帖子]

请问在K线走完模式里这些编写之后:

 回到顶部
帅哥哟,离线,有人找我吗?
bob
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:论坛游民 帖子:111 积分:135 威望:0 精华:0 注册:2012/12/7 9:56:47
  发帖心情 Post By:2013/10/18 13:17:29 [显示全部帖子]

请问这样编写以后:

ma5:=ma(c,5);
ma10:=ma(c,10);
input:tq(5,3,60,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);

if abb then begin
  if holding>0 and ma5<ma10 then sell(1,1,thisclose);
  if holding<0 and ma5>ma10 then sellshort(1,1,thisclose);
  if holding=0 and ma5>ma10 then buy(1,1,thisclose);
  if holding=0 and ma5<ma10 then buyshort(1,1,thisclose);

end


 回到顶部
帅哥哟,离线,有人找我吗?
bob
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:论坛游民 帖子:111 积分:135 威望:0 精华:0 注册:2012/12/7 9:56:47
  发帖心情 Post By:2013/10/18 13:35:57 [显示全部帖子]

这样编写以后:

ma5:=ma(c,5);
ma10:=ma(c,10);
input:tq(5,3,60,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);

if abb then begin
  if holding>0 and ma5<ma10 then sell(1,1,thisclose);
  if holding<0 and ma5>ma10 then sellshort(1,1,thisclose);
  if holding=0 and ma5>ma10 then buy(1,1,thisclose);
  if holding=0 and ma5<ma10 then buyshort(1,1,thisclose);

end

测试报告的交易明细里,会显示出比如11:09:55秒成交吗?还是都是一样11:10:00?


 回到顶部