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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件金字塔软件问题提交 → 怎么写跟踪止盈,是跌破前2周期的低点止盈

   

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


  共有2372人关注过本帖树形打印复制链接

主题:怎么写跟踪止盈,是跌破前2周期的低点止盈

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


加好友 发短信
等级:超级版主 帖子:4994 积分:0 威望:0 精华:0 注册:2016/9/1 10:46:51
  发帖心情 Post By:2017/7/18 13:37:07 [显示全部帖子]

if holding>0 and enterprice-c>50*mindiff then
   sell(1,holding,market);
if holding<0 and c-enterprice>50*mindiff then
   sellshort(1,holding,market);
  
if holding>0 and c-enterprice>0 and c<ref(llv(l,2),1) then
   sell(1,holding,market);
if holding<0 and enterprice-c>0 and c>ref(hhv(h,2),1) then
   sellshort(1,holding,market);
[此贴子已经被作者于2017/7/18 13:58:45编辑过]

 回到顶部