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

[求助]涨幅不同分别平仓,怎么编写?

作者:金字塔 来源:cxh99.com 发布时间:2014年04月06日
  • 咨询内容: 条件A,开多;在平仓时,区分两种情况:开仓价在昨天收盘价跌幅-1%以上的,按条件B平仓;但如果开仓价是在昨天收盘价跌幅-1%以下的,则按赢利两跳平仓。请教下如何编写,谢谢

     

  • 金字塔客服:

    if b and (enterprice-ref(close,todaybar))/ref(close,todaybar)<=-0.01 then 平仓语句

    if (enterprice-ref(close,todaybar))/ref(close,todaybar)>-0.01 and (enterprice-ref(close,to;daybar))/ref(close,todaybar)<0 and h>=enterrpcie+2*mindiff then 平仓语句;

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