function main() { var records = exchange.GetRecords() if(records && records.length > 20) { var boll = TA.BOLL(records, 20, 2) var upLine = boll[0] var midLine = boll[1] var downLine = boll[2] Log(upLine) Log(midLine) Log(downLine) } }
1070278998@qq.comMy God, how does the SMMA measure?
The grasshttps://wiki.mbalib.com/wiki/%E5%B8%83%E6%9E%97%E7%BA%BF%E5%AE%BD%E6%8C%87%E6%A0%87 should be calculated as the distance between the upstream and downstream tracks
1070278998@qq.comNo, it's complicated, and you have to calculate the moving average, and you can do it.