The closing time of the current bar as a UNIX timestamp in milliseconds.
time_close is a series int: the moment the current bar ends, in milliseconds since 1970-01-01 UTC. For an intraday bar it is the next bar's open, so time_close equals time plus the length of the timeframe.
On a bar that is still forming, the close time is the time the bar is expected to end.
Type
series int
Remarks
- On Sidechair: time_close is the open time plus the chart's timeframe length. A daily bar therefore closes 24 hours after it opened, not at the exchange's closing bell.
- time_close[n] is na before the first bar.
Example
//@version=6
indicator("Bar length", overlay = false)
plot((time_close - time) / 60000, "Bar minutes")
plot(timeframe.in_seconds() / 60, "Timeframe minutes", color.orange)See also
Runs on Sidechair