Sidechair

syminfo.ticker

Browse the reference

The symbol's name without the exchange prefix, such as AAPL or ES1!.

Try it in the editor

syminfo.ticker is a simple string holding the bare symbol. It has no exchange part and none of the session or adjustment settings that syminfo.tickerid can carry, so it is the value to show a person or to compare against a typed name.

For a futures contract the string is the full contract code, for example ESZ2025. syminfo.root gives the shorter family name, ES.

Type

simple string

Remarks

  • To request data for the current symbol, use syminfo.tickerid, not this.
  • On Sidechair: the value is the symbol you opened, for example NVDA. It is the same text as syminfo.tickerid, so a prefix in the symbol's name stays in.

Example

Pine ScriptBranch on the symbolOpen in editor
//@version=6
indicator("Symbol check", overlay = true)
isIndexEtf = syminfo.ticker == "SPY" or syminfo.ticker == "QQQ"
bgcolor(isIndexEtf ? color.new(color.blue, 90) : na)
if barstate.islast
    label.new(bar_index, high, syminfo.ticker, style = label.style_label_down)

See also

Runs on Sidechair