Lipi Reference Lipi

Variables

syminfo.isindex

Returns a boolean value (true or false) indicating whether the current symbol is an index or not.

Example


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

Type

simple bool