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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → [求助] 为什么平多以后 还是马上开多 怎么才能止损以后 不在开同向的仓 , 知道反向信号出现在开仓

   

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


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

主题:[求助] 为什么平多以后 还是马上开多 怎么才能止损以后 不在开同向的仓 , 知道反向信号出现在开仓

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


加好友 发短信
等级:新手上路 帖子:57 积分:0 威望:0 精华:0 注册:2013/6/27 19:07:44
[求助] 为什么平多以后 还是马上开多 怎么才能止损以后 不在开同向的仓 , 知道反向信号出现在开仓  发帖心情 Post By:2013/11/12 18:44:31    Post IP:118.187.65.155[只看该作者]

if barpos = 0 then
 stopprice := l - stopnum;
if aspect = 0 then begin
//多头处理
if l <= stopprice   then begin
 sell(holding>0,holding,0);

 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
 sellshort(holding<0,holding,0);


 aspect:= 0;
 stopprice := l-stopnum;
end
//处理移动的底部
if h + stopnum < stopprice then
 stopprice := h+stopnum;
end
dt:=Buy(开仓时间 AND NOT(TYPE(1)=1) and h>=UpperBand and (HOLDING=0)  ,lots,LIMITR,Max(Open,UpperBand)+1*MINDIFF),orderqueue;
kt:=BuyShort(开仓时间 and  NOT(TYPE(3)=1) and l<=LowerBand  and (HOLDING=0) ,lots,LIMITR,Min(Open,LowerBand)-1*MINDIFF),orderqueue;

     
if dt then begin

buy(dt and NOT(TYPE(1)=1),10%,0);
end;
if kt then begin

buyshort(kt and NOT(TYPE(1)=3),10%,0);
end;


 回到顶部