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


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

   

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


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

主题:请老师帮忙写一下

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


加好友 发短信
等级:新手上路 帖子:49 积分:0 威望:0 精华:0 注册:2017/3/13 10:53:00
请老师帮忙写一下  发帖心情 Post By:2017/4/18 9:02:36    Post IP:59.63.28.59[显示全部帖子]

ma20:=ma(c,20);

if c>ma20 and holding=0 then buy(1,20%,market),pertrader;

if (c-enterprice)/enterprice>=0.05 then sell(1,0,market);

if (enterprice-c)/enterprice>=0.02 then sell(1,0,market);

 

if c<ma20 and holding=0 then buyshort(1,20%,market),pertrader;

if (enterprice-c)/enterprice>=0.05 then sellshort(1,0,market);

if (c-enterprice)/enterprice>=0.02 then sellshort(1,0,market);


开仓有带止损,那如何添加移动止损,当盈利50个点,止损前移50个点




 回到顶部