//@version=4
study(shorttitle="try", title="line", overlay=true, resolution="")
line.new(x1=bar_index[10], y1=close[10], x2=bar_index, y2=close)
Run Code Online (Sandbox Code Playgroud)
我想使用 pine 脚本在交易视图图表中绘制一条简单的线。我收到分辨率错误。我错过了什么吗?
错误:第 5 行:“解决方案”参数与具有副作用的函数不兼容。脚本“crcheck”已保存