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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 收盘时开仓

   

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


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

主题:收盘时开仓

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


加好友 发短信
等级:论坛游民 帖子:225 积分:0 威望:0 精华:0 注册:2016/8/9 10:55:14
  发帖心情 Post By:2016/9/26 14:50:58    Post IP:218.106.146.122[只看该作者]

c1:=isup and ref(isup,1);
c2:=isdown and ref(isdown,1);
c3:=all(vol>=a,2);
c4:=time>091500 and time<162500;
if c1 and c3 and c4 and (( timetot0(dynainfo(207))>=time0-2) or not(islastbar)) then buy(holding=0,1,thisclose);
if holding>0 and enterprice-l>=b then sell(1,0,thisclose);
if holding>0 and h-enterprice>=d then sell(1,0,thisclose);
if c2 and c3 and c4 and (( timetot0(dynainfo(207))>=time0-2) or not(islastbar)) then buyshort(holding=0,1,thisclose);
if holding<0 and h-enterprice>=b then sellshort(1,0,thisclose);
if holding<0 and enterprice-l>=d then sellshort(1,0,thisclose);
a缺省300,b缺省30,c缺省45,就是这样。 

 回到顶部
总数 110 1 2 3 4 5 6 7 8 9 10 下一页 ..11