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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 限价止盈止损的问题

   

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


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

主题:限价止盈止损的问题

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


加好友 发短信
等级:论坛游民 帖子:261 积分:1358 威望:0 精华:0 注册:2011/12/13 10:55:10
  发帖心情 Post By:2012/4/6 9:11:59    Post IP:113.88.158.163[只看该作者]

空头部分如下:

 

if holding<0 and l<=lprice then begin
 
lprice:=l;

end

if holding<0 then begin
if enterprice-lprice>200 then begin

 空止盈1: sellshort(1,holding,limitr,enterprice-50);
 KZY1:=0;
end

if enterprice-lprice>500 then begin

 空止盈2: sellshort(1,holding,limitr,enterprice-200);
 KZY1:=0;
end

if enterprice-lprice>800 then begin

 空止盈3: sellshort(1,holding,limitr,enterprice-500);
 KZY1:=0;
end

end


 回到顶部
总数 22 1 2 3 下一页