I'm trying to draw a circle below or above a bar if it is identified as a local high/low. I can make this work with labels but they are ugly, so I'm trying to use plotshape
that gives me the output I need. My problem is that I don't know in advance when a high will be present (it is determined by the next low), so I need to use the offset
parameter to plotshape
. This parameter has to be a simple
value so I can't use a variable that I change because reassignment causes its type to be converted from simple
to series
. So if I do this in my code
var lastMaxHighOffset = 0
if(true) //