Sidechair

earnings.future_revenue

Browse the reference

The analysts' estimate of revenue for the next report; na when there is no estimate.

Try it in the editor

earnings.future_revenue is a series float in the company's reporting currency: expected revenue for the period the next report covers.

It is na for symbols that do not report earnings, and when no analyst estimate exists.

Type

series float

Remarks

  • It describes the next report as known right now, so read it on the last bar.
  • On Sidechair: not supported yet; earnings.future_revenue reads 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.
  • Scale it before showing it: str.tostring(earnings.future_revenue / 1e9, "0.00") gives billions.

Example

Pine ScriptRevenue estimate labelOpen in editor
//@version=6
indicator("Revenue estimate", overlay = true)
plot(close, "Close", color.gray)
if barstate.islast and earnings.future_time > timenow
    label.new(bar_index, high, "Revenue estimate " + str.tostring(earnings.future_revenue / 1e9, "0.00") + "B")

See also

Not on Sidechair yet