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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 请教老师后台交易

   

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


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

主题:请教老师后台交易

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


加好友 发短信
等级:论坛游侠 帖子:415 积分:1791 威望:0 精华:0 注册:2009/11/20 21:02:10
请教老师后台交易  发帖心情 Post By:2010/9/21 6:04:27    Post IP:115.198.216.160[只看该作者]

//以下为移动止盈的范例 VARIABLE: aspect=0; //初始化假定做多头 VARIABLE: stopprice=0;//止损价格变量 VARIABLE: stopnum =zy; //止损价差 variable:mypos=0; variable:mypos1=0; if barpos = 0 then stopprice := l - stopnum; if aspect = 0 then begin //多头处理 if l <= stopprice then begin //多反空 aspect:= 1; stopprice := h+stopnum; end //处理移动的底部 if l - stopnum > stopprice then stopprice := l-stopnum; end if aspect = 1 then begin //空头处理 if h >= stopprice then begin //空反多 aspect:= 0; stopprice := l-stopnum; end //处理移动的DING部 if h + stopnum < stopprice then stopprice := h+stopnum; end 多止赢:SELL(close<=stopprice and h>=(ENTERPRICE+止盈目标) and openprofit >0,0); 空止赢:SELLshort(close>=stopprice and l<=(ENTERPRICE-止盈目标) and OPENPROFIT>0,0); 这是一个论坛里群主老师给过的一个移动止盈。在图表化交易中可以用的。我将相关函数改成后台交易函数。手工开仓后,到了目标位置不会有交易。请老师指教!! 我的设想是:止盈目标20个价位以上,止损价差5个价位

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