Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.timeframe.multiplier
On this pageSignatureReturnsExample

Metadata / Reference

alerta.timeframe.multiplier

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

Returns the numeric multiplier of the current timeframe: 15 on "15", 240 on a 4-hour chart ("240"), 1 on "D", 5 on "5D", 12 on "12M". Pine v1–v3 scripts write it as `interval`.

alerta.timeframe.multiplier → int

Returns

int

Example

alerta.timeframe.multiplier
indicator("TF Multiplier", overlay=true)drawTable("tf", 0, 0, "TF x" + str.tostring(timeframe.multiplier), { position: "top_left" })

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.