Skip to content
Algo Trade Analytics Docs

ticker.modify() - Pine Script Function

Creates a ticker identifier for requesting additional data for the script.

ticker.modify(tickerid, session, adjustment, backadjustment, settlement_as_close) → simple string
NameTypeDescription
tickeridsimple stringSymbol name with exchange prefix
e.g.‘BATS:MSFT'
'NASDAQ:MSFT’or tickerid with session and adjustment from the ticker.new function.

String value of ticker id, that can be supplied to request.security function.

//@version=6
indicator("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)