request.splits() - Pine Script Function
request.splits()
Section titled “request.splits()”Overview
Section titled “Overview”Requests splits data for the specified symbol.
Syntax
Section titled “Syntax”request.splits(ticker, field, gaps, lookahead, ignore_invalid_symbol) → 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 splits data for the specified symbol.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("request.splits")s1 = request.splits("NASDAQ:BELFA", splits.denominator)plot(s1)s2 = request.splits("NASDAQ:BELFA", splits.denominator, gaps=barmerge.gaps_on, lookahead=barmerge.lookahead_on)plot(s2)