The fields request.dividends can return: dividends.gross before tax and dividends.net after tax.
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
| Name | Value | Description |
|---|---|---|
dividends.gross | The dividend per share before tax. | |
dividends.net | The dividend per share after tax. |
Remarks
- Amounts are in the currency of the symbol unless you pass a currency argument.
- On Sidechair:
request.dividendsis not supported yet; it warns once and returns na.
Example
//@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