这个需要用固定时间间隔模式,不能用走完k线
然后加一句代码,这个用在商品期货上的
(islastbar and currenttime>=145900 or (not(islastbar) and time=closetime(0)))
这个需要用固定时间间隔模式,不能用走完k线
然后加一句代码,这个用在商品期货上的
(islastbar and currenttime>=145900 or (not(islastbar) and time=closetime(0)))
股指期货呢
time=closetime(0)这句要改成
time=150000,这个是用在股指多数周期上的,但是少数周期比如小时以上周期就不能怎么用,你要看一下最后一根k线的时间是多少