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

Time / Reference

alerta.timeframe.main_period

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

Pine v6: the CHART's timeframe period — unlike timeframe.period, this stays the chart timeframe even inside a request.security() context. timeframe.isticks is also available (always false — tick charts are not supported).

alerta.timeframe.main_period → simple string

Returns

simple string

Example

alerta.timeframe.main_period
isChartTf = timeframe.period == timeframe.main_period

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.