打印本文打印本文 关闭窗口关闭窗口

[求助]如何小于<5000元就平仓

作者:金字塔 来源:cxh99.com 发布时间:2017年01月20日
  • 咨询内容: 如何从上次开仓到现在,如何小于<5000元就平仓,如何盈利>5000元后,再回撤50%平仓。

     

  • 金字塔客服:

    if enterbars>0 and openprofit<5000 then begin

       sellshort(1,0,market);

       sell(1,0,market);

    end

     

    if enterbars>0 and hhv(openprofit,enterbars+1)>5000 and openprofit<hhv(openprofit,enterbars+1)*0.5 then begin

       sell(1,0,market);

       sellshort(1,0,market);

    end

打印本文打印本文 关闭窗口关闭窗口