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 boolParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
source | series string | Yes | — | Source string. |
suffix | series string | Yes | — | Suffix. |
Returns
series boolExample
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.