Skip to content
Algo Trade Analytics Docs

syminfo.root - Pine Script Variable

Root for derivatives like futures contract. For other symbols returns the same value as syminfo.ticker.

string

simple

//@version=6
indicator("syminfo.root")// If the current chart symbol is continuous futures ('ES1!'), it would display 'ES'.
if barstate.islastconfirmedhistory
label.new(bar_index, high, syminfo.root)