http://m.getsatisfaction.com/topics/7827427 Add to Chart operation failed, reason: argument "text" accepts only constant string values 2018-12-26T19:24:31Z 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-26T19:24:31Z 2018-12-09T02:39:55Z midtownsk8rguy http://m.getsatisfaction.com/people/9850473 https://d2r1vs3d9006ap.cloudfront.net/public/uploaded_images/11360798/untitle_medium.png 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 4 3 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://d2r1vs3d9006ap.cloudfront.net/public/uploaded_images/11360798/untitle_medium.png 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 http://m.getsatisfaction.com/topics/7827427/replies/19920136 http://m.getsatisfaction.com/topics/7827427 19920136 anaumenko responded to "Add to Chart operation failed, reason: argument "text" accepts only constant string values" 2018-12-25T15:20:23Z 2018-12-25T15:20:23Z anaumenko http://m.getsatisfaction.com/people/9873553 https://d2r1vs3d9006ap.cloudfront.net/public/uploaded_images/11362633/TV2_large_medium.png anaumenko I believe drawing 'label' from Pine 4.0 will suit you <a href="https://docs.google.com/document/d/12ogvjzasBJSXerSOql4b9KwkE3wUlsc5HgA5qGhoYXk/edit#heading=h.uz6ftgjlvspe" rel="nofollow">https://docs.google.com/document/d/12...</a> 0 http://m.getsatisfaction.com/topics/7827427/replies/19921377 http://m.getsatisfaction.com/topics/7827427 19921377 midtownsk8rguy responded to "Add to Chart operation failed, reason: argument "text" accepts only constant string values" 2018-12-26T19:24:31Z 2018-12-26T19:24:31Z midtownsk8rguy http://m.getsatisfaction.com/people/9850473 https://d2r1vs3d9006ap.cloudfront.net/public/uploaded_images/11360798/untitle_medium.png midtownsk8rguy Yep, that's what I was pondering, PS 3.0 has never allowed this to my knowledge. I will have to wait patiently... 0