request.dividends() - Pine Script Function
request.dividends()
Section titled “request.dividends()”Overview
Section titled “Overview”Requests dividends data for the specified symbol.
Syntax
Section titled “Syntax”request.dividends(ticker, field, gaps, lookahead, ignore_invalid_symbol, currency) → series floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| ticker | series string | Symbol. Note that the symbol should be passed with a prefix. For example: “NASDAQ:AAPL” instead of “AAPL”. Using syminfo.ticker will cause an error. Use syminfo.tickerid instead. |
Returns
Section titled “Returns”Requested series, or n/a if there is no dividends data for the specified symbol.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("request.dividends")s1 = request.dividends("NASDAQ:BELFA")plot(s1)s2 = request.dividends("NASDAQ:BELFA", dividends.net, gaps=barmerge.gaps_on, lookahead=barmerge.lookahead_on)plot(s2)