ticker.modify() - Pine Script Function
ticker.modify()
Section titled “ticker.modify()”Overview
Section titled “Overview”Creates a ticker identifier for requesting additional data for the script.
Syntax
Section titled “Syntax”ticker.modify(tickerid, session, adjustment, backadjustment, settlement_as_close) → simple stringParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| tickerid | simple string | Symbol name with exchange prefix |
| e.g. | — | ‘BATS:MSFT' |
| 'NASDAQ:MSFT’ | — | or tickerid with session and adjustment from the ticker.new function. |
Returns
Section titled “Returns”String value of ticker id, that can be supplied to request.security function.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("ticker_modify", overlay=true)t1 = ticker.new(syminfo.prefix, syminfo.ticker, session.regular, adjustment.splits)c1 = request.security(t1, "D", close)t2 = ticker.modify(t1, session.extended)c2 = request.security(t2, "2D", close)plot(c1)plot(c2)