Utilities / Reference
alerta.bool
TradingView-compatible spelling: bool, runs without warnings
Casts a value to boolean using Pine-style truthiness.
alerta.bool(value) → bool or series boolParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
value | any | Yes | — | Value to cast. |
Returns
bool or series boolExample
alerta.bool
isUp = bool(close - open)plot(isUp ? close : na)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.