Functions
label.get_y()
Returns a label's y-coordinate (price).
Syntax
label.get_y(series label id) → series float
Arguments
id required series label Drawing object to modify or query. Return Type
series float Example
//@lipi=2
indicator("label.get_y Example", overlay=true)
static label lb = label(na)
if barstate.islast {
lb := label.new(bar_index, high, text="Hi", color=color.green)
}
plot(na(lb) ? na : label.get_y(lb))