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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 请版主等高手修改一下模型

   

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


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

主题:请版主等高手修改一下模型

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


加好友 发短信
等级:新手上路 帖子:21 积分:128 威望:0 精华:0 注册:2012/9/24 22:45:36
  发帖心情 Post By:2012/11/4 20:12:49    Post IP:124.226.19.197[只看该作者]

以下是引用RogarZ在2012-11-4 12:25:01的发言:

hi:=ref(hhv(h,20),1);
lo:=ref(llv(l,20),1);
entertime:=time<=144500;
exittime:=time>=145700;
buycond:=c>hi;
sellcond:=c<lo;
if holding>0 and (sellcond or exittime) then sell(1,0,market),orderqueue;
if holding<0 and (buycond or exittime) then sellshort(1,0,market),orderqueue;
if holding=0 and entertime and buycond then buy(1,0,market),orderqueue;
if holding=0 and entertime and sellcond then buyshort(1,0,market),orderqueue;

这个不对的。

我就是这样做的。在个个周期的仓位都不同 如在1分钟能开18 手。10分钟只能开13手。

 


 回到顶部