Variables
syminfo.root
Root for derivatives like futures contract. For other symbols returns the same value as syminfo.ticker.
Example
indicator(title="Root Symbol", overlay=true)
root = syminfo.root
plot(ta.sma(close, 14), color=root == "ES" ? color.green : color.orange)
Type
simple string