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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 请教enterprice

   

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


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

主题:请教enterprice

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


加好友 发短信
等级:论坛游侠 帖子:449 积分:0 威望:0 精华:0 注册:2016/9/9 19:10:49
  发帖心情 Post By:2016/12/2 14:03:23    Post IP:183.204.251.55[只看该作者]

老师,我这样改,你看可以不  有啥缺陷没,帮忙看下 谢谢

 

yy:=enterbars;
if holding>0 and yy>0 and hhv(h,enterbars+1)-enterprice>=30*mindiff and C<enterprice+0.4*( hhv  (h,enterbars+1)- enterprice ) then begin  sell(1,holding,thisclose);
end
 if holding<0 and yy>0 and enterprice-llv(l,enterbars+1)>=30*mindiff  and   C> enterprice -0.4*( enterprice -llv(l,enterbars+1)) then begin   sellshort(1,HOLDING,thisclose);
end

if holding>0 and yy=0 and c>o and hhv(h,enterbars+1)-enterprice>=30*mindiff and C<enterprice+0.4*( hhv  (h,enterbars+1)- enterprice ) then begin  sell(1,holding,thisclose);
end
if holding<0 and yy=0 and c<o and enterprice-llv(l,enterbars+1)>=30*mindiff  and   C> enterprice -0.4*( enterprice -llv(l,enterbars+1)) then begin   sellshort(1,HOLDING,thisclose);
end


 回到顶部
总数 33 1 2 3 4 下一页