Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.timeframe.from_seconds
On this pageSignatureParametersReturnsExample

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) → string

Parameters

NameTypeRequiredDefaultDescription
secondsintYes—Duration in seconds.

Returns

string

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.