您现在的位置:程序化交易>> 期货公式>> 金字塔等>> 金字塔知识>>正文内容

关于平仓的条件 [金字塔]

  • 咨询内容:

    if holding<0 then begin
     price:=0;
     
     if exitshortcond1 then
      price:=max(open,exitupperband);
     
     if high>=enterprice+2*atr and enterbars>=1 then
      price:=max(open,enterprice+2*atr);
     
     if price>0 then
      sellshort(1,holding,limitr,price);
      if                     xxxxxxxxxxx              then playsound(1,'D:\Tools\Weisoft Stock32\Order5.wav');
    end

     

     

     

    请问版主哪个是平仓条件好让playsound工作!!!

     

  • 金字塔客服:

    你的条件是price>0 and xxxx,这两个条件要同时成立

    [此贴子已经被作者于2016-10-26 9:30:28编辑过]

     

  • 用户回复: price>0 and exitshortcond1 这两个?

     

  • 网友回复: 就是price>0和你发的xxxx, [此贴子已经被作者于2016-10-26 9:42:51编辑过]

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容