Functions
string()
Converts a value to a string. It accepts a string only, so it changes the form and not the data type. To render a number as text, look to the `str` namespace.
Syntax · 1 of 4
string(const string value) → const string
Arguments
value required const string The value to convert. Required. A string in any form. Return Type
const string Syntax · 2 of 4
string(input string value) → input string
Arguments
value required input string The value to convert. Required. A string in any form. Return Type
input string Syntax · 3 of 4
string(simple string value) → simple string
Arguments
value required simple string The value to convert. Required. A string in any form. Return Type
simple string Syntax · 4 of 4
string(series string value) → series string
Arguments
value required series string The value to convert. Required. A string in any form. Return Type
series string Example
indicator("String Upper Example", overlay=false)
lowerStr = "gocharting"
upperStr = str.upper(lowerStr)
plot(close, title=upperStr)