The long name of the symbol, such as Apple Inc., for text a person reads.
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.substringbefore 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
//@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