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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → AB条件同时成立只执行A

   

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


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

主题:AB条件同时成立只执行A

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


加好友 发短信
等级:黑侠 帖子:663 积分:0 威望:0 精华:0 注册:2015/4/15 11:40:17
  发帖心情 Post By:2016/1/29 16:01:45    Post IP:222.217.198.144[只看该作者]

variable:n=0;
variable:m=0;
if kd  and HOLDING=0 and n=0 then begin
   buy(holding=0,20%,marketr)pertrader;
   n:=1;
end
 
if kd2 and not(kd1) and HOLDING=0  and m=0 then begin
    buy(holding=0,10%,marketr),pertrader;
    m:=1;
end
 
if n=1 and c then buy(1,10%,marketr),pertrader;
if m=1 and c then buy(1,5%,marketr),pertrader;
 
if pd  and n=1 and holding>0 then begin
   sell(PD ,100%,THISCLOSE);
   n:=0;
end
 
if pk  and m=1 and holding>0 then begin
   sellshort(PD ,100%,THISCLOSE);
   m:=0;
end
---------------还是信号不对。

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