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 stringReturns
simple stringExample
alerta.timeframe.main_period
isChartTf = timeframe.period == timeframe.main_periodNames and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.