Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你能帮我解决这个问题吗?我想找到由简单移动平均线绘制的点的平均值。我怎样才能找到这个?请在这件事上给予我帮助
len = input.int(30, title = "length") ma = ta.sma(close, len) var float ma_sum = 0 var float n = 0 if not na(ma) ma_sum += ma n += 1 avg = ma_sum / n