I am using version 5
I check whether indicator conditions are met, and if they are, I get a specific number - 1, 2 or 3.
I want to display these numbers under the candles.
I have this code, where I try to convert my numeric value to string with str.tostring()
.
finalCountText = str.tostring(finalCount)
plotchar(finalCount,title="",text=finalCountText,location=location.belowbar)
However, I am getting this error in console:
Cannot call 'plotchar' with argument 'text'='finalCountText'. An argument of 'series string' type was used but a 'const string' is expected