Lipi Reference
Lipi

Types

location

Five places a marker can sit: `abovebar`, `belowbar`, `top`, `bottom` and `absolute`. The first two are relative to the bar; `top` and `bottom` are relative to the pane; `absolute` places the mark at a price. It is the `location` parameter of `plotshape` and `plotchar`, and `plotarrow` has no such parameter at all.

Fields / Members

abovebar Places the element above the current bar.
belowbar Places the element below the current bar.
top Places the element at the top of the chart.
bottom Places the element at the bottom of the chart.
absolute Places the element at a specific price level.

Example


          //@lipi=2
indicator("location Example", overlay=true)
plotshape(close > open, title="Up Bar", location=location.belowbar, shape=shape.triangleup, color=color.green)
plotshape(close < open, title="Down Bar", location=location.abovebar, shape=shape.triangledown, color=color.red)