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) → intParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
timeframe | string | No | — | Timeframe string. Defaults to chart timeframe. |
Returns
intExample
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.