Functions
linefill.get_line2()
Returns the second line used when the fill was created.
Syntax
linefill.get_line2(series linefill id) → series line
Arguments
id required series linefill Linefill object. Return Type
series line Example
//@lipi=2
indicator("linefill.get_line2 Example", overlay=true)
if barstate.islast {
l1 = line.new(bar_index[10], high[10], bar_index, high)
l2 = line.new(bar_index[10], low[10], bar_index, low)
f = linefill.new(l1, l2, color.new(color.blue, 0.7))
line.set_color(linefill.get_line2(f), color.red)
}