Sidechair

syminfo.industry

Browse the reference

The industry of the company inside its sector, such as Semiconductors; na for symbols without fundamentals.

Try it in the editor

syminfo.industry is a simple string, the finer classification beneath syminfo.sector. Like the sector, it comes from fundamentals data and is na for indices, pairs, futures and any stock the feed does not classify.

Two companies with the same sector can have different industries, so industry is the better key when you group peers.

Type

simple string

Remarks

  • Wording differs between data providers; do not rely on an exact string in a shared script without an na check.
  • On Sidechair: not supported yet; a script that reads syminfo.industry stops with the error "syminfo.industry" isn't supported yet.

Example

Pine ScriptPeer group labelOpen in editor
//@version=6
indicator("Industry", overlay = true)
plot(close, "Close", color.gray)
if barstate.islast
    label.new(bar_index, low, syminfo.sector + " / " + syminfo.industry, style = label.style_label_up)

See also

Not on Sidechair yet