I have plot defined like this:
plotshape(xvalue, location=location.absolute, style=shape.labeldown, color=red, size=size.tiny, text ="Upper")
Problem here is with part text="Upper". I wanted to allow user to shorten label so it can be "Upper" or "U". This usualy can be done with something like this:
text = label ? "U" : "Upper"
Where "label" is true/false for shorter strings.
Problem is PINE isn't accepting it and error is something like "You must use string literals with 'text='". https://www.tradingview.com/wiki/Literals#String_Literals
Is there a way around it so user can change plot text on fly?
Thank you.