Metadata / Reference
alerta.timeframe.from_seconds
TradingView-compatible spelling: timeframe.from_seconds, runs without warnings
Converts seconds value to canonical timeframe string.
alerta.timeframe.from_seconds(seconds) → stringParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
seconds | int | Yes | — | Duration in seconds. |
Returns
stringExample
alerta.timeframe.from_seconds
tf = timeframe.from_seconds(3600)if barstate.islast label.new(bar_index, high, tf)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.