Lipi Reference
Lipi

Functions

label.set_yloc()

Sets a label's vertical location relative to the bar.

Syntax

                label.set_yloc(series label id, series string yloc) → void
              

Arguments

id required series label Drawing object to modify or query.
yloc required series string Vertical location relative to the bar (yloc.price, etc.).

Return Type

void

Example


          //@lipi=2
indicator("label.set_yloc Example", overlay=true)
if barstate.islast {
    lb = label.new(bar_index, high, text="Hi", color=color.green)
    label.set_yloc(lb, yloc.price)
}