Skip to content
Algo Trade Analytics Docs

str.endswith() - Pine Script Function

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

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

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