标签: pine-script
这是正确的
sum1 = 0.00 for i = 1 to 2 x = sma(close, 20)[1] sum1 := sum1 + x plot(sum1)
这是错误
sum1 = 0.00 for i = 1 to 2 x = sma(close, i)[1] sum1 := sum1 + x plot(sum1)
这是为什么?我的英语不好! 谢谢!