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


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

   

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


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

主题:分批止盈策略求助

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


加好友 发短信 原leevolvo
等级:版主 帖子:2160 积分:10563 威望:0 精华:11 注册:2010/11/3 11:21:19
  发帖心情 Post By:2011/11/20 21:17:10 [显示全部帖子]

开仓后,盈利60个点止盈了。之后呢?如果依然是突破30周期高点做多,那么,基本上平仓后K线走完又会满足开仓条件了

 回到顶部
帅哥哟,离线,有人找我吗?
阿火
  2楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 原leevolvo
等级:版主 帖子:2160 积分:10563 威望:0 精华:11 注册:2010/11/3 11:21:19
  发帖心情 Post By:2011/11/21 10:35:33 [显示全部帖子]

variable:hl=0,kcj=0,nums=0;
entertime:=time>93000 and time<143000;
exittime:=time>=145000;
hi30:=ref(hhv(h,30),1);
lo30:=ref(llv(l,30),1);

if exittime then begin
 sell(1,0,limitr,o);
 sellshort(1,0,limitr,o);
 nums:=0;
end

if holding=0 and nums=0 and ref(c>hi30,1) then begin
 buy(1,3,limitr,o);
 kcj:=o;
 zs:=o-10;
 hl:=h;//记录开多后的最高点
 nums:=1;
end

if holding=0 and nums=0 and ref(c<lo30,1) then begin
 buyshort(1,3,limitr,o);
 kcj:=o;
 zs:=o+10;
 hl:=l;//记录开空后的最低点
 nums:=1;
end

if holding>0 and l<zs then sell(1,0,limitr,zs-2*mindiff); 
if holding<0 and h>zs then sellshort(1,0,limitr,zs+2*mindiff);

if holding>0 and h>=hl then begin
 hl:=h;
 if hl>kcj+20 then begin
  zs:=hl-20;
  sell(holding=3,1,limitr,kcj+20);
  sell(holding=2 and hl>kcj+40,1,limitr,kcj+40);
  sell(holding=1 and hl>kcj+60,1,limitr,kcj+60);
 end
end

if holding<0 and l<=hl then begin
 hl:=l;
 if hl<kcj-20 then begin
  zs:=hl+20;
  sellshort(holding=-3,1,limitr,kcj-20);
  sellshort(holding=-2 and hl<kcj-40,1,limitr,kcj-40);
  sellshort(holding=-1 and hl<kcj-60,1,limitr,kcj-60);
 end
end


 回到顶部
帅哥哟,离线,有人找我吗?
阿火
  3楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 原leevolvo
等级:版主 帖子:2160 积分:10563 威望:0 精华:11 注册:2010/11/3 11:21:19
  发帖心情 Post By:2011/12/13 14:28:17 [显示全部帖子]

也可以了,enterprice  运行速度慢

 回到顶部