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

Metadata / Reference

alerta.input.timeframe

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

Creates a timeframe input suitable for request.security.

alerta.input.timeframe(defval, title) → string

Parameters

NameTypeRequiredDefaultDescription
defvalstringYes—Default timeframe (e.g. "60", "D").
titlestringNo—Input title.

Returns

string

Example

alerta.input.timeframe
tf = input.timeframe("60", "HTF")plot(close, { title: "Selected TF Input" })

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.