Sidechair

dividends.future_pay_date

Browse the reference

The date the next dividend is paid out, as a UNIX timestamp in milliseconds; na when none is announced.

Try it in the editor

dividends.future_pay_date is a series int. It falls after dividends.future_ex_date, because payment follows the record date.

It is na when no dividend is announced or the symbol does not pay one.

Type

series int

Remarks

  • Format it with str.format_time or compare it with timenow. It describes the next event as known right now, so read it on the last bar.
  • On Sidechair: not supported yet; dividends.future_pay_date 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.
  • Subtract dividends.future_ex_date to see how many days pass between the cut-off and the payment.

Example

Pine ScriptPayment date labelOpen in editor
//@version=6
indicator("Pay date", overlay = true)
plot(close, "Close", color.gray)
if barstate.islast and dividends.future_pay_date > timenow
    label.new(bar_index, high, "pays " + str.format_time(dividends.future_pay_date, "yyyy-MM-dd"))

See also

Not on Sidechair yet