Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.request.dividends
On this pageSignatureParametersReturnsExample

Data requests / Reference

alerta.request.dividends

TradingView-compatible spelling: request.dividends, runs without warnings

Requests dividend payments for a symbol (`dividends.gross` / `dividends.net`). Returns `na` with a warning — AlertaScript has no fundamentals feed.

alerta.request.dividends(symbol, field?, gaps?, lookahead?, ignore_invalid_symbol?, currency?) → series float — na without a fundamentals feed

Parameters

NameTypeRequiredDefaultDescription
symbolstringYes—Symbol to query.
fieldconstNot specified—dividends.gross | dividends.net.
gapsconstNot specified—barmerge.gaps_on / barmerge.gaps_off.
lookaheadconstNot specified—barmerge.lookahead_on / barmerge.lookahead_off.
ignore_invalid_symbolboolNot specified—Return na instead of raising.
currencystringNot specified—Convert the result into this currency.

Returns

series float — na without a fundamentals feed

Example

alerta.request.dividends
d = request.dividends(syminfo.tickerid, dividends.gross, ignore_invalid_symbol = true)plot(na(d) ? 0 : d, { title: "Dividend", pane: "oscillator" })

Names and aliases

Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.

AlertaScript

No results found.

Search by name, alias, or keyword.