Sidechair

syminfo.description

Browse the reference

The long name of the symbol, such as Apple Inc., for text a person reads.

Try it in the editor

syminfo.description is a simple string with the descriptive name of the instrument: a company name, a contract title or a pair name. It is meant for display, such as a table header or a label.

It is not stable across data feeds, so never test it for equality in logic. Use syminfo.ticker or syminfo.root for that.

Type

simple string

Remarks

  • The text can be long. Shorten it with str.substring before you place it on a crowded chart.
  • On Sidechair: the value is the symbol itself, the same as syminfo.ticker, because no separate long name is stored.

Example

Pine ScriptTitle the chartOpen in editor
//@version=6
indicator("Name tag", overlay = true)
plot(close, "Close", color.gray)
if barstate.islast
    label.new(bar_index, high, syminfo.description, style = label.style_label_down, textcolor = color.white, color = color.new(color.gray, 20))

See also

Runs on Sidechair