Lipi Reference
Lipi

Variables

open

The opening price of the bar your script is being evaluated on. It is one of five bar values the interpreter declares together as float series, so it moves on as the script advances through the chart.

Example


          //@lipi=2
indicator("Open Price Example", overlay=true)
openPrice = open
prevOpen = open[1]
plot(openPrice, color=color.blue, title="Current Open Price")
plot(prevOpen, color=color.red, title="Previous Open Price")
        

Type

series float