Lipi Reference Lipi

Variables

syminfo.isindex

True when the chart instrument is an index. It is the only boolean in the namespace, and like its neighbours it reads `na` rather than false where the answer is unknown.

Example


          indicator(title="Is Index Plotting", overlay=true)
is_index = syminfo.isindex
plot(close, color=is_index ? color.blue : color.red)
        

Type

simple bool