ticker.new() - Pine Script Function
ticker.new()
Section titled “ticker.new()”Overview
Section titled “Overview”Creates a ticker identifier for requesting additional data for the script.
Syntax
Section titled “Syntax”ticker.new(prefix, ticker, session, adjustment, backadjustment, settlement_as_close) → simple stringParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| prefix | simple string | Exchange prefix. For example: ‘BATS' |
| 'NYSE’ | — | — |
| ‘NASDAQ’. | — | Exchange prefix of main series is syminfo.prefix. |
Returns
Section titled “Returns”String value of ticker id, that can be supplied to request.security function.
Remarks
Section titled “Remarks”- You may use return value of ticker.new function as input argument for ticker.heikinashi, ticker.renko, ticker.linebreak, ticker.kagi, ticker.pointfigure functions.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("ticker.new", overlay=true)t = ticker.new(syminfo.prefix, syminfo.ticker, session.regular, adjustment.splits)t2 = ticker.heikinashi(t)c = request.security(t2, timeframe.period, low, barmerge.gaps_on)plot(c, style=plot.style_linebr)