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

上次赢利差大于100点,本次开仓后止损由原来正常的6点改为20点止损

作者:金字塔 来源:cxh99.com 发布时间:2014年05月25日
  • 咨询内容: 老师,若股指上次赢利差大于100点,本次开仓后止损由原来正常的6点改为20点止损,而原来正常的6点止损条件不变
    。如何写,谢谢

    if holding>0 and o<=enterprice-6   then begin 
     多单止损:sell(1,1,limitr,o);

     

  • 金字塔客服:

    variable:zhisun=6;

    if ref(平仓条件,1) and holding=0 and ref(holding,1)>0 and ref(openprofit,1)>100*mindiff*multiplier then zhisun:=20;

     

    if zhisun=20 and holding<>0 and enterprice-c>zhisun*mindiff then begin

     sell(1,0,limitr,o);

     zhisun:=6;

    end

     

  • 用户回复: 谢谢老师!
打印本文打印本文 关闭窗口关闭窗口