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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 再请老师帮我修改一下

   

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


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

主题:再请老师帮我修改一下

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


加好友 发短信
等级:新手上路 帖子:30 积分:185 威望:0 精华:0 注册:2012/12/10 16:27:55
  发帖心情 Post By:2013/2/20 17:58:05    Post IP:183.66.49.206[只看该作者]

老师好!
是下面这样的吗?但出的,不知是什么原因?请老师帮我后并测试校对。谢谢!

/公式2: 公式2是主体公式

sh3:=stkindi('','公式1.sh',0,17);
sh5:=stkindi('','公式1.sh',0,2);
sh10:=stkindi('','公式1.sh',0,18);
xc3:=stkindi('','公式1.xc',0,17);
xc5:=stkindi('','公式1.xc',0,2);
xc10:=stkindi('','公式1.xc',0,18);

if sh3 and sh5 and sh10 then begin sell(holding>0,0,market);
 buyshort(holding=0,1,market);
 end



sh3_2:=stkindi('','公式1.sh2',0,17);
sh5_2:=stkindi('','公式1.sh2',0,2);
sh10_2:=stkindi('','公式1.sh2',0,18);
xc3_2:=stkindi('','公式1.xc2',0,17);
xc5_2:=stkindi('','公式1.xc2',0,2);
xc10_2:=stkindi('','公式1.xc2',0,18);

if sh3_2 or sh5_2 or sh10_2 then begin sellshort(holding>0,0,market);
buy(holding=0,1,market);
end

 回到顶部