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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → [求助]关于固定轮询平仓未执行

   

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


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

主题:[求助]关于固定轮询平仓未执行

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


加好友 发短信
等级:新手上路 帖子:94 积分:349 威望:0 精华:0 注册:2010/3/9 14:17:16
[求助]关于固定轮询平仓未执行  发帖心情 Post By:2015/5/15 14:37:05    Post IP:219.133.98.52[只看该作者]

使用传统图表固定轮询1秒模式运行,

 

开平仓信号在11:30、15:15收盘前5秒执行,其他时间使用REF引用上周期,

 

实盘ref(,1)开仓信号正常,但ref(,1)平仓未执行,什么原因?

 

下面代码有什么问题吗?

 

TT1:=(currenttime>=091500 and currenttime<112955) or (currenttime>=130000 and currenttime<151455),colorred,linethick0;
TT2:=(currenttime>=112955 and currenttime<113000) or (currenttime>=151455 and currenttime<151500),colorred,linethick0;
TT3:=(currenttime>=060000 and currenttime<091500) or (currenttime>113005 and currenttime<130000) or (currenttime>151505 and currenttime<235000) ,colorred,linethick0;

 

B1:=((islastbar=1 and TT1 and ref(D1,1)) or (islastbar=1 and TT2 and D1) or (islastbar=1 and TT3 and D1) or (islastbar=0 and D1));
B2:=((islastbar=1 and TT1 and ref(P1,1)) or (islastbar=1 and TT2 and P1) or (islastbar=1 and TT3 and P1) or (islastbar=0 and P1));
S1:=((islastbar=1 and TT1 and ref(K1,1)) or (islastbar=1 and TT2 and K1) or (islastbar=1 and TT3 and K1) or (islastbar=0 and K1));
S2:=((islastbar=1 and TT1 and ref(P11,1)) or (islastbar=1 and TT2 and P11) or (islastbar=1 and TT3 and P11) or (islastbar=0 and P11));

 

EXITLONG:B2,TFILTER;
EXITSHORT:S2,TFILTER;
ENTERLONG:B1;
ENTERSHORT:S1;


 回到顶部