Skip to content
Algo Trade Analytics Docs

str.length() - Pine Script Function

Returns an integer corresponding to the amount of chars in that string.

str.length(string) → const int
NameTypeDescription
stringconst stringSource string.

The number of chars in source string.