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.
如何在 Pine 脚本中显示数组值以进行调试?是否有我没有找到的调试或打印窗口?
在 v5 中使用以下函数:
printDebug(txt) => var table t = table.new(position.bottom_right, 1, 1), table.cell(t, 0, 0, txt, bgcolor = color.yellow)
根据数组的大小,您可能需要修改函数以适应您的数据 - 例如添加额外的单元格。