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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件策略编写求助区 → 请求帮助

   

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


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

主题:请求帮助

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


加好友 发短信
等级:新手上路 帖子:15 积分:10 威望:0 精华:0 注册:2011/8/9 13:31:23
  发帖心情 Post By:2011/8/18 9:56:05 [只看该作者]

我就是想在您以前帮我写的这个系统上面,加一个止盈,止损条件单。

 

http://www.weistock.com/bbs/dispbbs.asp?boardid=11&Id=7495

 

 

ma1:ma(c,5);
ma2:ma(c,60);
ma3:ma(c,120);

if cross(ma1,ma3) then begin
 sellshort(holding<0,0,thisclose);
 buy(holding=0,30%,thisclose);
end

if cross(ma3,ma1) then begin
 sell(holding>0,0,thisclose);
 buyshort(holding=0,30%,thisclose);
end

if cross(ma1,ma2) and ma2>ma3 then begin
 sellshort(holding<0,0,thisclose);
 buy(holding=0,30%,thisclose);
end

if cross(ma2,ma1) and  ma2>ma3 then begin
 sell(holding>0,0,thisclose);
 buyshort(holding=0,30%,thisclose);
end

 

 


 回到顶部