new_line_dot_3
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © MBYLAB

//@version=5

// @description TODO: plot line based on 3 points.
library("new_line")

// @function TODO: plot line based on 3 points. (each different)
// @param x TODO: bar_index or location x
// @returns TODO: new line based on each different 3 values.
export new_line(int x_1, int x_2, int x_3, float y_1, float y_2, float y_3) =>
	line_1 = line.new(x_1, y_1, x_2, y_2)
	line_2 = line.new(x_2, y_2, x_3, y_3)
	[line_1, line_2]

//example
// @param [example_line_1, example_line_2] <= this is is the name.
[example_line_1, example_line_2] = new_line(bar_index, bar_index+1, bar_index+3, 100, 200, 300)

