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


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

   

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


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

主题:关于代码 enterprice的问题

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


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

c8:=barslast( h>enterprice+d*mindiff or l<enterprice-d*mindiff)>10;
variable:n=0;
if c7 and ref(c6,1)and n=0 and holding=0 then buy(holding=0,1,market);
n:=1;
if c7 and ref(c6,1)and n=1 and holding=0 and c8 then buy(holding=0,1,market);
if L<ref(ref(llv(l,3),1),enterbars) or enterprice-l>=30 then sell(1,0,market);
if holding>0 and hhv(h,enterbars+1)>enterprice+30 and c<enterprice then sell(1,0,thisclose);
if h>enterprice+d*mindiff then sell(1,0,market);
if c7 and n=0 and holding=0 and ref(c9,1) then buyshort(holding=0,1,market);
n:=1;
if c7 and n=1 and holding=0 and c8 and ref(c9,1) then buyshort(holding=0,1,market);
if h>ref(ref(hhv(h,3),1),enterbars) or h-enterprice>=30 then sellshort(1,0,market);
if holding<0 and llv(l,enterbars+1)<enterprice-30 and c>enterprice then sellshort(1,0,thisclose);
if l<enterprice-d*mindiff then sellshort(1,0,market);
代码是这样的,老师帮忙检查一下有没有错误。

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