Skip to content
AlertaChartAlertaScript / docs
AlertaScript / timenow
On this pageSignatureReturnsExample

Time / Reference

timenow

TradingView-compatible spelling: timenow, runs without warnings

Pine v6: the current time in UNIX milliseconds at the moment the script runs. It does not follow the bars: every bar of one run reads the same value, and the next run reads a later one.

timenow → series int

Returns

series int

Example

minutesSinceLastBar = (timenow - last_bar_time) / 60000label.new(bar_index, high, str.tostring(minutesSinceLastBar) + " min ago")

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.