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


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

   

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


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

主题:求助

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


加好友 发短信
等级:新手上路 帖子:29 积分:210 威望:0 精华:0 注册:2011/3/7 20:39:05
求助  发帖心情 Post By:2011/4/5 13:30:14    Post IP:222.79.73.130[只看该作者]

if holding=0 then begin
 if h>hh and aa>0 then
  buy(1,30%,limit,thisclose),tfilter;
  end
if holding=0 then begin
  if l<ll and aa<0 then
  buyshort(1,30%,limit ,thisclose),tfilter;
  end
 if holding>0 then begin
    if l<ll then
    sell(1,holding,limit ,thisclose),tfilter;
    end
  if holding<0 then begin
   if h>hh then
   sellshort(1,holding,limit,thisclose),tfilter;
   end
end

这样写有错吗,但是怎么显示的信号跟我想的不一样,我写的是创N日新高新低的信号,结果不是,测试结果也跟简单图标交易的差很多

[此贴子已经被作者于2011-4-5 13:32:47编辑过]

 回到顶部