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

Metadata / Reference

alerta.timeframe.in_seconds

TradingView-compatible spelling: timeframe.in_seconds, runs without warnings

Returns timeframe duration in seconds.

alerta.timeframe.in_seconds(timeframe) → int

Parameters

NameTypeRequiredDefaultDescription
timeframestringNo—Timeframe string. Defaults to chart timeframe.

Returns

int

Example

alerta.timeframe.in_seconds
secs = timeframe.in_seconds("60")plot(secs, { pane: "oscillator" })

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.