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 intReturns
series intExample
timenow
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.