str.length() - Pine Script Function
str.length()
Section titled “str.length()”Overview
Section titled “Overview”Returns an integer corresponding to the amount of chars in that string.
Syntax
Section titled “Syntax”str.length(string) → const intParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| string | const string | Source string. |
Returns
Section titled “Returns”The number of chars in source string.