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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 帮帮忙呀,实在无法解决该问题!

   

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


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

主题:帮帮忙呀,实在无法解决该问题!

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


加好友 发短信
等级:小飞侠 帖子:1966 积分:0 威望:0 精华:1 注册:2013/6/15 21:56:35
  发帖心情 Post By:2014/5/24 13:52:31    Post IP:118.181.105.109[只看该作者]

t1:=time>093000 and time<145000
rh:=ref(hhv(h,15),1);
rL:=ref(llv(L,15),1);

ma10:=ma(c,10);
ma20:=ma(c,20);

if not(t1) then n1:=-1;
if t1 and h>=rh and ma10>ma20 then
begin
sellshort(holding<0,0,limitr,max(rh,o)+0.4);
buy(holding=0 and n1<0,1,limitr,max(rh,o)+0.4);
n1:=1;
end
if t1 and l<=rL and ma10<ma20 then
begin
sell(holding>0,0,limitr,min(rL,o)-0.4);
buyshort(holding=0 and n1<0,1,limitr,min(rL,o)-0.4);
n1:=1;
end
if time>145000 then
begin
sell(holding>0,0,limitr,c-0.2);
sellshort(holding<0,0,limitr,c+0.2);
end

 回到顶部
总数 15 1 2 下一页