time
Open time of the current bar, UTC milliseconds.
time(timeframe: simple string) -> int
time(timeframe: simple string, session: simple string, timezone: simple string = na) -> int
Parameters
timeframesimple string: "5m", "1h", "4h", "1D", "1W", "1M" (also "D", "60", "240"); "" = the chart timeframesessionsimple string: "0930-1600", "1800-1700" (crosses midnight), "0930-1200,1300-1600"; ":23456" after a range limits the weekdays it starts on (1 = Sunday); "" = no sessiontimezonesimple string: zone of the session times; default the exchange time zone
Example
newDay = ta.change(time("D")) != 0