The time of the next earnings report as a UNIX timestamp in milliseconds; na when none is scheduled.
earnings.future_time is a series int holding when the company is expected to report next. It is na for symbols that do not report earnings and when no date has been set.
Use it to step aside around the report: earnings gaps can jump straight through a stop.
Type
series int
Remarks
- It describes the next event as known right now, so read it on the last bar. A scheduled date can move before the report.
- On Sidechair: not supported yet;
earnings.future_timereads as its own text, not a number, so arithmetic on it gives na and na() on it is false. A script that reads it still runs but has no real value to show.
Example
//@version=6
indicator("Earnings countdown", overlay = true)
plot(close, "Close", color.gray)
if barstate.islast and earnings.future_time > timenow
label.new(bar_index, high, str.tostring(math.ceil((earnings.future_time - timenow) / 86400000)) + " days to earnings")See also
Not on Sidechair yet