In the TradingView PineScript programming language, the Plotshape command format is: plotshape(series, title, style, location, .... Where "Series is treated as a series of boolean values for all location values except location.absolute. "
So with 'series' you can specify whether a shape has to be plotted or not, for a specific bar. Except .... when you are using 'location.absolute'. In that case, the 'series' parameter is the vertical coordinate of the shape ... Weird syntax if you ask me. Why not add the coordinate as a separate parameter?
So, I can not use a boolean (to indicate whether a shape must be plotted or not) and an absolute location at the same time, in a single PlotShape command. So, instead, I am using a boolean for 'series' and 'location.top' or 'location.bottom' instead. But this is not really what I want.
Does anybody know a workaround for this?
Thanks!