v5
I tried getting the line.set() to work with the Line function but ill have to come back to it idk why when I try to set something it will remove it from the chart..
Added:
LineXY(line)
get [x1,y1,x2,y2] in a tuple
Parameters:
line: line
Returns: tuple of [x1,y1,x2,y2]
Line(line)
Create line with only the y1 value(when line == na)
when line != na set x1,y1,x2,y2 individually just 1 or all
- use just the line value to set the x2 to current bar or time will set to time
will auto pick xloc.bar_index or xloc.bar_time if not used by checking if
if x1 or x2 is > a number bar index couldnt be i.e. 1000000
Parameters:
line: x1 y1 x2 y2 xloc extend color style width
Returns: : Line
BoxXY(box)
get [left,top,right,bottom] in a tuple
Parameters:
box: box
Returns: tuple of [left,top,right,bottom]
Box(box)
Create box with only the top,bottom value(when box == na)
when box != na set left,top,right,bottom individually just 1 or all
- use just the box value to set the right to current bar or time, will set to time
if right is above a number that a bar_index wouldnt be above i.e. 1000000
Parameters:
box: left top right
bottom border_color border_width border_style extend xloc bgcolor text text_size text_color text_halign text_valign text_wrap
Returns: Box
LabelXY(label)
get [x,y,txt] in a tuple
Parameters:
label: label
Returns: tuple of [x,y,txt]
Label(label)
Create label with only the y1 value(when label == na)
when label != na set x1,y1,x2,y2 individually just 1 or all
- use just the label value to set the x2 to current bar or time will set to time
will auto pick xloc.bar_index or xloc.bar_time if not used by checking if
if x1 or x2 is > a number bar index couldnt be i.e. 1000000
Parameters:
label: txt x y xloc.yloc color style textcolor size textalign tooltip text_font
Returns: Label
Removed:
lineXY(line)
get [x1,y1,x2,y2] in a tuple
line(line)
Create line with only the y1 value(when line == na)
when line != na set x1,y1,x2,y2 individually just 1 or all
- use just the line value to set the x2 to current bar or time will set to time
will auto pick xloc.bar_index or xloc.bar_time if not used by checking if
if x1 or x2 is > a number bar index couldnt be i.e. 1000000
boxXY(box)
get [left,top,right,bottom] in a tuple
box(box)
Create box with only the top,bottom value(when box == na)
when box != na set left,top,right,bottom individually just 1 or all
- use just the box value to set the right to current bar or time, will set to time
if right is above a number that a bar_index wouldnt be above i.e. 1000000
labelXY(label)
get [x,y,txt] in a tuple
label(label)
Create label with only the y1 value(when label == na)
when label != na set x1,y1,x2,y2 individually just 1 or all
- use just the label value to set the x2 to current bar or time will set to time
will auto pick xloc.bar_index or xloc.bar_time if not used by checking if
if x1 or x2 is > a number bar index couldnt be i.e. 1000000