Sidechair

dividends.* constants

Browse the reference

The fields request.dividends can return: dividends.gross before tax and dividends.net after tax.

Try it in the editor

dividends.gross and dividends.net go in the field argument of request.dividends. The gross figure is the dividend declared per share; the net figure is what is left after withholding. The function returns the amount on the ex-dividend bar and na on the others when gaps is on.

Without a field, request.dividends returns the gross amount.

Constants

NameValueDescription
dividends.grossThe dividend per share before tax.
dividends.netThe dividend per share after tax.

Remarks

  • Amounts are in the currency of the symbol unless you pass a currency argument.
  • On Sidechair: request.dividends is not supported yet; it warns once and returns na.

Example

Pine ScriptDividend markersOpen in editor
//@version=6
indicator("Dividends", overlay = true)
gross = request.dividends(syminfo.tickerid, dividends.gross, barmerge.gaps_on)
plotshape(gross, "Dividend", shape.diamond, location.belowbar, color.green)
plot(close, "Close", color.gray)

See also

Runs on Sidechair