http://m.getsatisfaction.com/topics/7827427 Add to Chart operation failed, reason: argument "text" accepts only constant string values 2018-12-10T16:27:04Z 2018-12-09T02:39:55Z 7827427 http://m.getsatisfaction.com/topics/7827427 7827427 Add to Chart operation failed, reason: argument "text" accepts only constant string values 2018-12-10T16:27:04Z 2018-12-09T02:39:55Z midtownsk8rguy http://m.getsatisfaction.com/people/9850473 https://www.gravatar.com/avatar/fcd82f44f3aa5180d90b807526c8c304?d=identicon&s=55&r=PG midtownsk8rguy I'm looking for functionality comparable to the built-in Zig Zag indicator using plotshape(). Tried(example): <br /> <pre> <br /> str = tostring(0&#46;0) &#47;&#47; Would actually be a calculated float form series <br /> plotshape(cross(open, close) ? close : na, color=red, style=shape&#46;labeldown, location=location&#46;abovebar, text=str, textcolor=black) <br /> </pre> <br /> Result: <br /> Add to Chart operation failed, reason: argument "text" accepts only constant string values problem 2 2 1 comment http://m.getsatisfaction.com/topics/7827427/replies/19896800 http://m.getsatisfaction.com/topics/7827427 19896800 MichelT responded to "Add to Chart operation failed, reason: argument "text" accepts only constant string values" 2018-12-10T11:22:19Z 2018-12-10T11:22:19Z MichelT http://m.getsatisfaction.com/people/9672669 https://www.gravatar.com/avatar/b9977d250da4957884162de36fd60307?d=identicon&s=55&r=PG michelt_6rowutxvezyl4 it's only possible use constant string in plot functions (and similar to in funtions), string can't be calculated: <br /> <pre> <br /> &#47;&#47;@version=3 <br /> study("My Script") <br /> str = "my string" <br /> plot(close, text=str) <br /> </pre> 0 http://m.getsatisfaction.com/topics/7827427/replies/19897214 http://m.getsatisfaction.com/topics/7827427 19897214 midtownsk8rguy responded to "Add to Chart operation failed, reason: argument "text" accepts only constant string values" 2018-12-10T16:27:04Z 2018-12-10T16:27:04Z midtownsk8rguy http://m.getsatisfaction.com/people/9850473 https://www.gravatar.com/avatar/fcd82f44f3aa5180d90b807526c8c304?d=identicon&s=55&r=PG midtownsk8rguy I know, I'm just letting everybody else know, members as well as tradingview. Hoping vitvlkv takes notice that I'm blowing holes in the deficiencies of Pine that members might desire in the future. Yes, I can hard code text=BUY/SELL, how simplistically useful that is providing info, but if we can program it without predetermined info SOME times, then I would like to see that in 4.0 or 5.0. I would like to program WHY I should buy/sell using plotshape(). I want strings, integers, floats, color, usable where they rightfully should be in any programming language, all over the place. Pine doesn't do that commonly, yet... 0