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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → [求助]这几个函数怎么用

   

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


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

主题:[求助]这几个函数怎么用

美女呀,离线,留言给我吧!
xian_0_9
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 BOO
等级:论坛游民 帖子:378 积分:1856 威望:0 精华:0 注册:2010/1/25 18:04:12
[求助]这几个函数怎么用  发帖心情 Post By:2012/5/29 22:51:12    Post IP:123.189.24.181[只看该作者]

//4周转向
hh:=ref(hhv(h,20),1);
ll:=ref(llv(l,20),1);

entertime:=time<=143000;

if holding<0 and h>hh then begin

 sellshort(1,1,limitr,max(o,hh+0.2)+0.6);//先是平仓

 buy(1,1,limitr,max(o,hh+0.2)+0.6);

 goto skip@;

end

if holding>0 and l<ll then begin

 sell(1,1,limitr,min(o,ll-0.2)-0.6);//先是平仓

 buyshort(1,1,limitr,min(o,ll-0.2)-0.6);

end

skip@;

//注意做多条件和做空条件同时成立的处理方法,这里采用20周期均线向上才做多,向下才做空
if holding=0 and h>hh and ref(c,1)>ref(c,20) and entertime then buy(1,1,limitr,max(o,hh+0.2)+0.6);//后开仓
if holding=0 and l<ll  and ref(c,1)<ref(c,20) and entertime then buyshort(1,1,limitr,min(o,ll-0.2)-0.6);//后开仓
if time>=150000 then begin
 sell(1,1,limitr,o);
 sellshort(1,1,limitr,o);
end

 

 

 

这个模型里

 goto skip@;和skip@;

都是什么意思?怎么用啊?谢谢

 

 

 

 


 回到顶部