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

[求助] 老师 帮忙看看这个怎么写???

作者:金字塔 来源:cxh99.com 发布时间:2015年02月11日
  • 咨询内容: 老师 2个问题:
    1、 1分钟周期下  如果本周期的开盘价-空持仓价>5点  本周期收盘前20秒平仓
    2、 比如出现   111111  判断6个1 是连续出现的   怎么写

     

  • 金字塔客服:

    1.if open-enterprice>5 and ((islastbar and time0-timetot0(currenttime)<=20) or islastbar) then sellshort(1,0,market);

    2.all(1,6)

     

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