Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.str.endswith
On this pageSignatureParametersReturnsExample

Utilities / Reference

alerta.str.endswith

TradingView-compatible spelling: str.endswith, runs without warnings

Checks if string ends with suffix.

alerta.str.endswith(source, suffix) → series bool

Parameters

NameTypeRequiredDefaultDescription
sourceseries stringYes—Source string.
suffixseries stringYes—Suffix.

Returns

series bool

Example

alerta.str.endswith
indicator("Ends With Demo")// Check if it is a Tether pairconst isUSDT = str.endswith(syminfo.tickerid, "USDT")if isUSDT    plot(close, { color: color.green })

Names and aliases

Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.

AlertaScript

No results found.

Search by name, alias, or keyword.