Skip to content
Algo Trade Analytics Docs

str.startswith() - Pine Script Function

Returns true if the source string starts with the substring specified in str, false otherwise.

str.startswith(source, str) → const bool
NameTypeDescription
sourceconst stringSource string.

True if the source string starts with the substring specified in str, false otherwise.