//@version=4
study(shorttitle="try", title="line", overlay=true, resolution="")
line.new(x1=bar_index[10], y1=close[10], x2=bar_index, y2=close)
I want to draw a simple line in trading view chart using pine scripts. I am getting resolution error. Am I missing anything?
Error: line 5: The 'resolution' argument is incompatible with functions that have side effects. Script 'crcheck' has been saved