I tried the following code in my script, but it doesn't work, becuase of error: Cannot use 'plotshape' in local scope.
for i = 0 to counter_buy
plotshape(high + counter_buy, style = shape.circle, location=location.absolute, color = color.green, size = size.auto)
What I'm trying to do: There is a counter in my script (counter_buy) I want to draw a circle for each value of "1" above the current bar. So if the counter is "3" I want to draw 3 circles above the current bar. Each circle above the other, like this example:
o
o
o
BAR
Is there a way to archive this? Thanks, Mag