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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件金字塔软件问题提交 → [求助]请问老师提前平仓的问题

   

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


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

主题:[求助]请问老师提前平仓的问题

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


加好友 发短信
等级:新手上路 帖子:65 积分:447 威望:0 精华:0 注册:2011/3/8 21:10:39
[求助]请问老师提前平仓的问题  发帖心情 Post By:2012/1/8 11:58:32 [显示全部帖子]

我想在发出信号的当根K线最后一秒开平仓,当日14点58分平仓。我使用5,15分钟周期做日内的,请问老师这么表达对吗?

zq:=15;
tq:=1;
opentm:=openminutes(dynainfo(207));
lastopentm:=if(date<>ref(date,1),0,ref(openminutes(time),1));
abb:=(mod(currenttime,100)>=60-tq and islastbar and (opentm-lastopentm=zq-1 or time=091500 or time=093000 or time=094500 or time=100000 or time=101500 or time=104500 or time=110000 or time=111500 or time=113000 or time=134500 or time=140000 or time=141500 or time=143000 or time=144500 or time=150000)) or not(islastbar);

 

ENTERLONG:c>ma(c,60) and time<141300 and abb,TFILTER;
EXITLONG:c<ma(c,60) and abb or time>=145800 and abb,TFILTER;
ENTERSHORT:c<ma(c,60) and time<141300 and abb,TFILTER;
EXITSHORT:c>ma(c,60) and time<141300 and abb or time>=145800 and abb,TFILTER;

谢谢!


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


加好友 发短信
等级:新手上路 帖子:65 积分:447 威望:0 精华:0 注册:2011/3/8 21:10:39
  发帖心情 Post By:2012/1/9 9:23:36 [显示全部帖子]

请告诉我我写的对吗,我就是参照这个帖子编的。

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


加好友 发短信
等级:新手上路 帖子:65 积分:447 威望:0 精华:0 注册:2011/3/8 21:10:39
  发帖心情 Post By:2012/1/9 11:31:29 [显示全部帖子]

zq:=15;
tq:=1;
opentm:=openminutes(dynainfo(207));
lastopentm:=if(date<>ref(date,1),0,ref(openminutes(time),1));
abb:=(mod(currenttime,100)>=60-tq and islastbar and (opentm-lastopentm=zq-1 or time=091500 or time=093000 or time=094500 or time=100000 or time=101500 or time=104500 or time=110000 or time=111500 or time=113000 or time=134500 or time=140000 or time=141500 or time=143000 or time=144500 or time=150000)) or not(islastbar);

 

ENTERLONG:c>ma(c,60) and time<141500 and abb,TFILTER;
EXITLONG:c<ma(c,60) and time<141500 and abb ,TFILTER;
ENTERSHORT:c<ma(c,60) and time<141500 and abb,TFILTER;
EXITSHORT:c>ma(c,60) and time<141500 and abb ,TFILTER;

当根K线结束前1秒开平仓这么写对吗?谢谢!


 回到顶部