syminfo.root - Pine Script Variable
syminfo.root
Section titled “syminfo.root”Overview
Section titled “Overview”Root for derivatives like futures contract. For other symbols returns the same value as syminfo.ticker.
stringQualifier
Section titled “Qualifier”simple
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("syminfo.root")// If the current chart symbol is continuous futures ('ES1!'), it would display 'ES'.if barstate.islastconfirmedhistorylabel.new(bar_index, high, syminfo.root)