Functions
str.length()
Returns an integer corresponding to the amount of chars in that string.
Syntax · 1 of 4
str.length(const string source) → const int
Arguments
source required const string Source string. Return Type
const int Syntax · 2 of 4
str.length(input string source) → input int
Arguments
source required input string Source string. Return Type
input int Syntax · 3 of 4
str.length(simple string source) → simple int
Arguments
source required simple string Source string. Return Type
simple int Syntax · 4 of 4
str.length(series string source) → series int
Arguments
source required series string Source string. Return Type
series int Example
indicator("String Length Example", overlay=false)
tickerSymbol = syminfo.ticker
tickerLength = str.length(tickerSymbol)
plot(tickerLength, title="Ticker Length", color=color.blue)