Sidechair

syminfo.tickerid

Browse the reference

The full identifier of the chart's symbol, the string you pass to request.security to point at the same instrument.

Try it in the editor

syminfo.tickerid is a simple string. On most platforms it carries the exchange prefix and the symbol name joined by a colon, such as NASDAQ:AAPL, and it also carries any session, adjustment or chart-type settings the chart uses. That makes it the right value to hand to request.security when you want data for the symbol you are looking at.

syminfo.ticker is the bare name without the prefix and without those settings. Use tickerid for requests and ticker for text a person reads.

Type

simple string

Remarks

  • Inside an expression passed to request.security, the syminfo variables describe the requested symbol. syminfo.main_tickerid always names the chart's own symbol.
  • Comparing syminfo.tickerid against a typed string is fragile because the prefix differs by data feed. Compare syminfo.ticker or syminfo.root instead.
  • On Sidechair: the value is the symbol exactly as Sidechair names it, such as NVDA. Some instruments carry a prefix in that name, and then the prefix is part of this value.

Example

Pine ScriptName the symbol and timeframe on the last barOpen in editor
//@version=6
indicator("Symbol label", overlay = true)
plot(close, "Close", color.gray)
if barstate.islast
    label.new(bar_index, high, syminfo.tickerid + " " + timeframe.period, color = color.blue, textcolor = color.white)

See also

Runs on Sidechair