I cant calc a series value by every few bars, its a bug?

后端 未结 0 491
眼角桃花
眼角桃花 2020-12-22 19:16

my code:

var lastatr = 0.0
var wait = 0.0
if wait == 0
  atr := sma(tr(true),length)
  lastatr := atr[0]
  wait := 24
else
  atr := lastatr
if wait > 0
  w         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题