请问是具体哪个品种?
1.笼统的算法:
valuewhen(time=上午收盘时间,hhv(h,todaybar))
valuewhen(time=上午收盘时间,llv(l,todaybar))
2.上午不能下单:
在开仓条件里面加入 time>上午收盘时间
1股指的上午收盘时间是113000
2橡胶的话需要排除夜里的交易时间
nn:=barslast(time=closetime(1));
valuewhen(time=closetime(2),hhv(h,nn))
valuewhen(time=closetime(2),llv(l,nn))
上午收盘时间是closetime(2)