Variables
syminfo.segment
The segment the instrument belongs to.
Example
indicator(title="Segment Example", overlay=true)
assetSegment = syminfo.segment
isMainSegment = assetSegment == "FUTURE" ? 1 : 0
plot(isMainSegment, title="Is Main Segment", color=color.green)
Type
simple string