PINE LIBRARY

lib_plot_objects_1

153
Library "lib_plot_objects_1"

method extend_to(this, end_time, end_idx, end_price)
  Namespace types: Line
  Parameters:
    this (Line)
    end_time (int)
    end_idx (int)
    end_price (float)

method or_default(args)
  checks args oject for being na, if so, provide a default instead
  Namespace types: LineArgs
  Parameters:
    args (LineArgs)

method or_default(args)
  checks args oject for being na, if so, provide a default instead
  Namespace types: PolyLineArgs
  Parameters:
    args (PolyLineArgs)

method or_default(args)
  checks args oject for being na, if so, provide a default instead
  Namespace types: LabelArgs
  Parameters:
    args (LabelArgs)

method or_default(args)
  checks args oject for being na, if so, provide a default instead
  Namespace types: BoxArgs
  Parameters:
    args (BoxArgs)

method or_default(args)
  checks args oject for being na, if so, provide a default instead
  Namespace types: BoxTextArgs
  Parameters:
    args (BoxTextArgs)

method direction(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

method is_green(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

method is_red(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

method is_bullish(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

method is_bearish(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

method total_size(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

method body_size(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

method body_top(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

method body_bottom(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

method wick_size_top(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

method wick_size_bottom(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

method body_total_ratio(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

method duration(this)
  Namespace types: Candle
  Parameters:
    this (Candle)

create_candle(t, tc, idx, o, h, l, c, v)
  Creates Candle with ohlc and index data
  Parameters:
    t (int): bar time of this candle
    tc (int): bar close time of this candle
    idx (int): bar index of this candle
    o (float): open price of this candle
    h (float): highest price of this candle
    l (float): lowest price of this candle
    c (float): close price of this candle
    v (float)
  Returns: new Candle

create_point(x, price, xloc)
  Creates a new chart.point based on xloc switch
  Parameters:
    x (int)
    price (float)
    xloc (string)

method calculate_center(indexA, priceA, indexB, priceB)
  Creates center chart.point between two chart.points
  Namespace types: series int, simple int, input int, const int
  Parameters:
    indexA (int): coordinates of point A (using just index, because time will not work properly in session based instruments)
    priceA (float): coordinates of point A
    indexB (int): coordinates of point B (using just index, because time will not work properly in session based instruments)
    priceB (float): coordinates of point B
  Returns: center coordinates [int time, int index, float price]

method calculate_center(this, other)
  Creates center chart.point between an array of given chart.points
  Namespace types: chart.point
  Parameters:
    this (chart.point)
    other (chart.point)
  Returns: center coordinates [int time, int index, float price]

method calculate_center(points)
  Creates center chart.point between an array of given chart.points
  Namespace types: array<chart.point>
  Parameters:
    points (array<chart.point>): array of chart.points for calculation of the center
  Returns: center chart.point

method calculate_center(this)
  Namespace types: Line
  Parameters:
    this (Line)

method calculate_center(this)
  Namespace types: PolyLine
  Parameters:
    this (PolyLine)

method create_center(this, other)
  Creates center chart.point between two chart.points
  Namespace types: chart.point
  Parameters:
    this (chart.point): chart.point
    other (chart.point): chart.point
  Returns: center chart.point

method create_center(points)
  Creates center chart.point between an array of given chart.points
  Namespace types: array<chart.point>
  Parameters:
    points (array<chart.point>): array of chart.points for calculation of the center
  Returns: center chart.point

method create_center(this)
  Namespace types: Line
  Parameters:
    this (Line)

method create_center(this)
  Namespace types: PolyLine
  Parameters:
    this (PolyLine)

create_label(x, y, xloc, txt, tooltip)
  Creates a new Label object.
  Parameters:
    x (int)
    y (float)
    xloc (string)
    txt (string)
    tooltip (string)

method create_label(this, txt, tooltip)
  Creates a new Label object.
  Namespace types: chart.point
  Parameters:
    this (chart.point)
    txt (string)
    tooltip (string)

method create_label(txt, tooltip)
  Creates a new Label object.
  Namespace types: series string, simple string, input string, const string
  Parameters:
    txt (string)
    tooltip (string)

method create_label(this, txt, tooltip)
  Creates a new Label object.
  Namespace types: Line
  Parameters:
    this (Line)
    txt (string)
    tooltip (string)

method create_label(this, txt, tooltip)
  Creates a new Label object.
  Namespace types: Box
  Parameters:
    this (Box)
    txt (string)
    tooltip (string)

method create_center_label(this, txt, tooltip)
  Creates a new Label object.
  Namespace types: Line
  Parameters:
    this (Line)
    txt (string)
    tooltip (string)

method create_center_label(this, txt, tooltip)
  Creates a new Label object.
  Namespace types: PolyLine
  Parameters:
    this (PolyLine)
    txt (string)
    tooltip (string)

method nz(this, default)
  Namespace types: chart.point
  Parameters:
    this (chart.point)
    default (chart.point)

method nz(this, default)
  Namespace types: Candle
  Parameters:
    this (Candle)
    default (Candle)

method nz(this, default)
  Namespace types: LabelArgs
  Parameters:
    this (LabelArgs)
    default (LabelArgs)

method nz(this, default)
  Namespace types: Label
  Parameters:
    this (Label)
    default (Label)

method nz(this, default)
  Namespace types: LineArgs
  Parameters:
    this (LineArgs)
    default (LineArgs)

method nz(this, default)
  Namespace types: Line
  Parameters:
    this (Line)
    default (Line)

method nz(this, default)
  Namespace types: PolyLineArgs
  Parameters:
    this (PolyLineArgs)
    default (PolyLineArgs)

method nz(this, default)
  Namespace types: PolyLine
  Parameters:
    this (PolyLine)
    default (PolyLine)

method nz(this, default)
  Namespace types: CenterLabel
  Parameters:
    this (CenterLabel)
    default (CenterLabel)

method nz(this, default)
  Namespace types: LineFill
  Parameters:
    this (LineFill)
    default (LineFill)

method nz(this, default)
  Namespace types: BoxArgs
  Parameters:
    this (BoxArgs)
    default (BoxArgs)

method nz(this, default)
  Namespace types: BoxTextArgs
  Parameters:
    this (BoxTextArgs)
    default (BoxTextArgs)

method nz(this, default)
  Namespace types: Box
  Parameters:
    this (Box)
    default (Box)

create_line(start_time, start_idx, start_price, end_time, end_idx, end_price)
  Parameters:
    start_time (int)
    start_idx (int)
    start_price (float)
    end_time (int)
    end_idx (int)
    end_price (float)

create_line(x1, y1, x2, y2, xloc)
  Parameters:
    x1 (int)
    y1 (float)
    x2 (int)
    y2 (float)
    xloc (string)

create_line()

create_box(left_time, left_idx, top, right_time, right_idx, bottom, txt)
  Parameters:
    left_time (int)
    left_idx (int)
    top (float)
    right_time (int)
    right_idx (int)
    bottom (float)
    txt (string)

create_box(left, top, right, bottom, xloc, txt)
  Parameters:
    left (int)
    top (float)
    right (int)
    bottom (float)
    xloc (string)
    txt (string)

create_box(txt)
  Parameters:
    txt (string)

method create_fill(this, other, fill_color, flip)
  Creates a new LineFill object.
Field this The first Line object
Field other The second Line object
Field fill_color The color used to fill the space between the lines.
Field flip Optional if true, a new support line is created, drawn over other but with flipped start and end point
  Namespace types: Line
  Parameters:
    this (Line)
    other (Line)
    fill_color (color)
    flip (bool)

method enqueue(id, item, max)
  Namespace types: array<Candle>
  Parameters:
    id (array<Candle>)
    item (Candle)
    max (int)

method enqueue(id, item, max)
  Namespace types: array<chart.point>
  Parameters:
    id (array<chart.point>)
    item (chart.point)
    max (int)

method enqueue(id, item, max)
  Namespace types: array<Label>
  Parameters:
    id (array<Label>)
    item (Label)
    max (int)

method enqueue(id, item, max)
  Namespace types: array<CenterLabel>
  Parameters:
    id (array<CenterLabel>)
    item (CenterLabel)
    max (int)

method enqueue(id, item, max)
  Namespace types: array<Line>
  Parameters:
    id (array<Line>)
    item (Line)
    max (int)

method enqueue(id, item, max)
  Namespace types: array<LineFill>
  Parameters:
    id (array<LineFill>)
    item (LineFill)
    max (int)

method enqueue(id, item, max)
  Namespace types: array<PolyLine>
  Parameters:
    id (array<PolyLine>)
    item (PolyLine)
    max (int)

method update(this, bar_time, bar_time_close, bar_idx, o, h, l, c, v)
  Updates a Candle object with new data.
  Namespace types: Candle
  Parameters:
    this (Candle)
    bar_time (int)
    bar_time_close (int)
    bar_idx (int)
    o (float)
    h (float)
    l (float)
    c (float)
    v (float)

method update(this, bar_time, bar_idx, price)
  Updates a chart.point object with new data.
  Namespace types: chart.point
  Parameters:
    this (chart.point)
    bar_time (int)
    bar_idx (int)
    price (float)
  Returns: true if changed, false otherwise

method update(this, x, price, xloc)
  Updates a chart.point object with new data.
  Namespace types: chart.point
  Parameters:
    this (chart.point)
    x (int)
    price (float)
    xloc (string)
  Returns: true if changed, false otherwise

method update(this, update)
  Updates a chart.point object with new data from another chart.point.
  Namespace types: chart.point
  Parameters:
    this (chart.point)
    update (chart.point)
  Returns: true if changed, false otherwise

method update(this, bar_time, bar_idx, price, txt, tooltip)
  Updates a Label's chart.point object with new data from another chart.point, or sets it if the Label's chart.point is na. If txt parameter is not given, it's not updated.
  Namespace types: Label
  Parameters:
    this (Label)
    bar_time (int)
    bar_idx (int)
    price (float)
    txt (string)
    tooltip (string)

method update(this, point, txt, tooltip)
  Updates a Label's chart.point object with new data from another chart.point, or sets it if the Label's chart.point is na. If txt parameter is not given, it's not updated.
  Namespace types: Label
  Parameters:
    this (Label)
    point (chart.point)
    txt (string)
    tooltip (string)

method update(this, points, txt, tooltip, condition)
  Updates a Label's chart.point object with new data from another chart.point, or sets it if the Label's chart.point is na. If txt parameter is not given, it's not updated.
  Namespace types: CenterLabel
  Parameters:
    this (CenterLabel)
    points (array<chart.point>)
    txt (string)
    tooltip (string)
    condition (bool)

method update(this, txt, tooltip)
  Updates a Label's chart.point object with new data from another chart.point, or sets it if the Label's chart.point is na. If txt parameter is not given, it's not updated.
  Namespace types: CenterLabel
  Parameters:
    this (CenterLabel)
    txt (string)
    tooltip (string)

method update(this, start, end)
  Updates this Line's chart.point objects with new data from other chart.points.
  Namespace types: Line
  Parameters:
    this (Line)
    start (chart.point)
    end (chart.point)

method update(this, points)
  Updates this PolyLine's chart.point objects with new data from other chart.points. As the plot polyline has no options to be updated, it will be deleted before being redrawn in draw()
  Namespace types: PolyLine
  Parameters:
    this (PolyLine)
    points (array<chart.point>)

method update(this, left_top, right_bottom)
  Updates a Box's chart.point objects with new data from other chart.points.
  Namespace types: Box
  Parameters:
    this (Box)
    left_top (chart.point)
    right_bottom (chart.point)

method delete(this)
  Removes an objects representation from the chart.
  Namespace types: Line
  Parameters:
    this (Line)

method delete(this)
  Removes an objects representation from the chart.
  Namespace types: PolyLine
  Parameters:
    this (PolyLine)

method delete(this)
  Removes an objects representation from the chart.
  Namespace types: Label
  Parameters:
    this (Label)

method delete(this)
  Removes an objects representation from the chart.
  Namespace types: CenterLabel
  Parameters:
    this (CenterLabel)

method delete(this)
  Removes an objects representation from the chart.
  Namespace types: Box
  Parameters:
    this (Box)

method delete(this)
  Removes an objects representation from the chart.
  Namespace types: LineFill
  Parameters:
    this (LineFill)

method delete(this)
  Removes the representations of an array of objects from the chart.
  Namespace types: array<line>
  Parameters:
    this (array<line>)

method delete(this)
  Removes the representations of an array of objects from the chart.
  Namespace types: array<polyline>
  Parameters:
    this (array<polyline>)

method delete(this)
  Removes the representations of an array of objects from the chart.
  Namespace types: array<label>
  Parameters:
    this (array<label>)

method delete(this)
  Removes the representations of an array of objects from the chart.
  Namespace types: array<box>
  Parameters:
    this (array<box>)

method delete(this)
  Removes the representations of an array of objects from the chart.
  Namespace types: array<linefill>
  Parameters:
    this (array<linefill>)

method delete(this)
  Removes the representations of an array of objects from the chart.
  Namespace types: array<Line>
  Parameters:
    this (array<Line>)

method delete(this)
  Removes the representations of an array of objects from the chart.
  Namespace types: array<PolyLine>
  Parameters:
    this (array<PolyLine>)

method delete(this)
  Removes the representations of an array of objects from the chart.
  Namespace types: array<Label>
  Parameters:
    this (array<Label>)

method delete(this)
  Removes the representations of an array of objects from the chart.
  Namespace types: array<CenterLabel>
  Parameters:
    this (array<CenterLabel>)

method delete(this)
  Removes the representations of an array of objects from the chart.
  Namespace types: array<LineFill>
  Parameters:
    this (array<LineFill>)

method delete(this)
  Removes the representations of an array of objects from the chart.
  Namespace types: array<Box>
  Parameters:
    this (array<Box>)

method draw(this, a, b, args, extend_only, force_overlay)
  Adds/Updates the representations of an object to the chart (only point coordinates).
  Namespace types: series line
  Parameters:
    this (line)
    a (chart.point)
    b (chart.point)
    args (LineArgs)
    extend_only (bool): this will omit redrawing x1 of the line, thereby prevent adressing bar_indexes too far in the past which causes max_bars_back errors. (default: true, set to false if you want x1 updated on drawing)
    force_overlay (simple bool)

method draw(this, args, force_overlay)
  Adds/Updates the representations of an object to the chart (only point coordinates and text).
  Namespace types: Label
  Parameters:
    this (Label)
    args (LabelArgs)
    force_overlay (simple bool)

method draw(this, args, force_overlay)
  Adds/Updates the representations of an object to the chart (only point coordinates and text).
  Namespace types: CenterLabel
  Parameters:
    this (CenterLabel)
    args (LabelArgs)
    force_overlay (simple bool)

method draw(this, args, extend_only, force_overlay)
  Adds/Updates the representations of an object to the chart (only point coordinates).
  Namespace types: Line
  Parameters:
    this (Line)
    args (LineArgs)
    extend_only (bool): this will omit redrawing x1 of the line, thereby prevent adressing bar_indexes too far in the past which causes max_bars_back errors. (default: true, set to false if you want x1 updated on drawing)
    force_overlay (simple bool)

method draw(this, args, force_overlay)
  Adds/Updates the representations of an object to the chart.
  Namespace types: PolyLine
  Parameters:
    this (PolyLine)
    args (PolyLineArgs)
    force_overlay (simple bool)

method draw(this, args, text_args, extend_only, force_overlay)
  Adds/Updates the representations of an object to the chart (only point coordinates).
  Namespace types: Box
  Parameters:
    this (Box)
    args (BoxArgs)
    text_args (BoxTextArgs)
    extend_only (bool): this will omit redrawing the left side of the box, thereby prevent adressing bar_indexes too far in the past which causes max_bars_back errors. (default: true, set to false if you want x1 updated on drawing)
    force_overlay (simple bool)

method draw(this, flip_support_args, force_overlay)
  Adds/Replaces the representations of the object on the chart.
  Namespace types: LineFill
  Parameters:
    this (LineFill)
    flip_support_args (LineArgs)
    force_overlay (simple bool)

method draw(this, args, force_overlay)
  converts this object into a builtin plot object, drawing it on the chart, unless drawn once before, this will either use the passed or default config for all objects
  Namespace types: array<Label>
  Parameters:
    this (array<Label>)
    args (LabelArgs)
    force_overlay (simple bool)

method draw(this, args, force_overlay)
  converts this object into a builtin plot object, drawing it on the chart, unless drawn once before, this will either use the passed or default config for all objects
  Namespace types: array<CenterLabel>
  Parameters:
    this (array<CenterLabel>)
    args (LabelArgs)
    force_overlay (simple bool)

method draw(this, args, force_overlay)
  converts this object into a builtin plot object, drawing it on the chart, unless drawn once before, this will either use the passed or default config for all objects
  Namespace types: array<PolyLine>
  Parameters:
    this (array<PolyLine>)
    args (PolyLineArgs)
    force_overlay (simple bool)

method draw(this, args, extend_only, force_overlay)
  converts this object into a builtin plot object, drawing it on the chart, unless drawn once before, this will either use the passed or default config for all objects
  Namespace types: array<Line>
  Parameters:
    this (array<Line>)
    args (LineArgs)
    extend_only (bool)
    force_overlay (simple bool)

method draw(this, flip_support_args, force_overlay)
  converts this object into a builtin plot object, drawing it on the chart, unless drawn once before, this will either use the passed or default config for all objects
  Namespace types: array<LineFill>
  Parameters:
    this (array<LineFill>)
    flip_support_args (LineArgs)
    force_overlay (simple bool)

method draw(this, args, txt_args, extend_only, force_overlay)
  converts this object into a builtin plot object, drawing it on the chart, unless drawn once before, this will either use the passed or default config for all objects
  Namespace types: array<Box>
  Parameters:
    this (array<Box>)
    args (BoxArgs)
    txt_args (BoxTextArgs)
    extend_only (bool)
    force_overlay (simple bool)

method hide(this)
  Namespace types: series label
  Parameters:
    this (label)

method hide(this)
  Namespace types: series line
  Parameters:
    this (line)

method hide(this)
  Namespace types: series polyline, series polyline, series polyline, series polyline
  Parameters:
    this (polyline)

method hide(this)
  Namespace types: series box
  Parameters:
    this (box)

method hide(this)
  Namespace types: chart.point
  Parameters:
    this (chart.point)

method hide(this)
  hides an object by setting it's coordinates na, to unhide just update coordinates and call draw() again
  Namespace types: Label
  Parameters:
    this (Label)

method hide(this)
  hides an object by setting it's coordinates na, to unhide just update coordinates and call draw() again
  Namespace types: CenterLabel
  Parameters:
    this (CenterLabel)

method hide(this)
  hides an object by setting it's coordinates na, to unhide just update coordinates and call draw() again
  Namespace types: Line
  Parameters:
    this (Line)

method hide(this)
  hides an object by setting it's coordinates na, to unhide just update coordinates and call draw() again
  Namespace types: PolyLine
  Parameters:
    this (PolyLine)

method hide(this)
  hides an object by setting it's coordinates na, to unhide just update coordinates and call draw() again
  Namespace types: Box
  Parameters:
    this (Box)

method apply_style(this, args)
  Namespace types: series line
  Parameters:
    this (line)
    args (LineArgs)

method apply_style(this, args)
  Namespace types: series label
  Parameters:
    this (label)
    args (LabelArgs)

method apply_style(this, args, text_args)
  Namespace types: series box
  Parameters:
    this (box)
    args (BoxArgs)
    text_args (BoxTextArgs)

method apply_style(this, args)
  updates styles on this objects plot
  Namespace types: Label
  Parameters:
    this (Label)
    args (LabelArgs)

method apply_style(this, args)
  Namespace types: CenterLabel
  Parameters:
    this (CenterLabel)
    args (LabelArgs)

method apply_style(this, args)
  Namespace types: Line
  Parameters:
    this (Line)
    args (LineArgs)

method apply_style(this, args, text_args)
  updates styles on this objects plot
  Namespace types: Box
  Parameters:
    this (Box)
    args (BoxArgs)
    text_args (BoxTextArgs)

method apply_style(this, args)
  updates styles on these objects' plots
  Namespace types: array<label>
  Parameters:
    this (array<label>)
    args (LabelArgs)

method apply_style(this, args)
  updates styles on these objects' plots
  Namespace types: array<Label>
  Parameters:
    this (array<Label>)
    args (LabelArgs)

method apply_style(this, args)
  updates styles on these objects' plots
  Namespace types: array<CenterLabel>
  Parameters:
    this (array<CenterLabel>)
    args (LabelArgs)

method apply_style(this, args)
  updates styles on these objects' plots
  Namespace types: array<line>
  Parameters:
    this (array<line>)
    args (LineArgs)

method apply_style(this, args)
  updates styles on these objects' plots
  Namespace types: array<Line>
  Parameters:
    this (array<Line>)
    args (LineArgs)

method apply_style(this, args, text_args)
  updates styles on these objects' plots
  Namespace types: array<Box>
  Parameters:
    this (array<Box>)
    args (BoxArgs)
    text_args (BoxTextArgs)

method deep_copy(this)
  clones the whole object including points and plots
  Namespace types: Label
  Parameters:
    this (Label)

method deep_copy(this)
  clones the whole object including points and plots
  Namespace types: Line
  Parameters:
    this (Line)

method deep_copy(this)
  clones the whole object including points and plots
  Namespace types: Box
  Parameters:
    this (Box)

method deep_copy(this, copy_references)
  clones the whole object including points and plots
  Namespace types: CenterLabel
  Parameters:
    this (CenterLabel)
    copy_references (bool)

method deep_copy(this, copy_references)
  clones the whole object including points and plots
  Namespace types: LineFill
  Parameters:
    this (LineFill)
    copy_references (bool)

Candle
  Fields:
    bar_time (series int)
    bar_time_close (series int)
    bar_idx (series int)
    o (series float)
    h (series float)
    l (series float)
    c (series float)
    v (series float)

LabelArgs
  Fields:
    text_color (series color): Text color.
    bg_color (series color): Color of the label border and arrow.
    text_font_family (series string): The font family of the text. Optional. The default value is font.family_default. Possible values: font.family_default, font.family_monospace.
    xloc (series string): See description of x argument. Possible values: xloc.bar_index and xloc.bar_time. Default is xloc.bar_index.
    yloc (series string): Possible values are yloc.price, yloc.abovebar, yloc.belowbar. If yloc=yloc.price, y argument specifies the price of the label position. If yloc=yloc.abovebar, label is located above bar. If yloc=yloc.belowbar, label is located below bar. Default is yloc.price.
    style (series string): Label style. Possible values: label.style_none, label.style_xcross, label.style_cross, label.style_triangleup, label.style_triangledown, label.style_flag, label.style_circle, label.style_arrowup, label.style_arrowdown, label.style_label_up, label.style_label_down, label.style_label_left, label.style_label_right, label.style_label_lower_left, label.style_label_lower_right, label.style_label_upper_left, label.style_label_upper_right, label.style_label_center, label.style_square, label.style_diamond, label.style_text_outline. Default is label.style_label_down.
    size (series string): Label size. Possible values: size.auto, size.tiny, size.small, size.normal, size.large, size.huge. Default value is size.normal.
    text_align (series string): Label text alignment. Possible values: text.align_left, text.align_center, text.align_right. Default value is text.align_center.

Label
  Fields:
    point (chart.point): The Label coordinates
    txt (series string): Label text. Default is empty string.
    tooltip (series string): Hover to see tooltip label.
    hidden (series bool)
    plot (series label): The label object to be added and plotted via draw()

LineArgs
  Fields:
    line_color (series color): Line color.
    style (series string): Line style. Possible values: line.style_solid, line.style_dotted, line.style_dashed, line.style_arrow_left, line.style_arrow_right, line.style_arrow_both.
    width (series int): Line width in pixels.
    xloc (series string): Possible values: xloc.bar_index and xloc.bar_time. Default is xloc.bar_index.
    extend (series string): f extend=extend.none, draws segment starting at point (x1, y1) and ending at point (x2, y2). If extend is equal to extend.right or extend.left, draws a ray starting at point (x1, y1) or (x2, y2), respectively. If extend=extend.both, draws a straight line that goes through these points. Default value is extend.none.

Line
  Fields:
    start (chart.point): starting point of the line
    end (chart.point)
    hidden (series bool)
    plot (series line): The line object to be added and plotted via draw()

LineFill
  Fields:
    a (Line): The first Line object
    b (Line): The second Line object
    fill_color (series color): The color used to fill the space between the lines.
    flip_support (Line): An additional Line that holds a flipped b support line (linefills are always drawn between line starts and line ends)
    plot (series linefill): The linefill object to be added and plotted via draw()

PolyLineArgs
  Fields:
    line_color (series color): The color of the line segments. Optional. The default is color.gray.
    fill_color (series color): The fill color of the polyline. Optional. The default is na.
    style (series string): The style of the polyline. Possible values: line.style_solid, line.style_dotted, line.style_dashed, line.style_arrow_left, line.style_arrow_right, line.style_arrow_both. Optional. The default is line.style_solid.
    width (series int): The width of the line segments, expressed in pixels. Optional. The default is 1.
    xloc (series string): Determines the field of the chart.point objects in the points array that the polyline will use for its x-coordinates. If xloc.bar_index, the polyline will use the index field from each point. If xloc.bar_time, it will use the time field. Optional. The default is xloc.bar_index.

PolyLine
  Fields:
    points (array<chart.point>): point array data of the polyline
    curved (series bool): Line color. If true, the drawing will connect all points from the points array using curved line segments. Optional. The default is false.
    closed (series bool): Line color. If true, the drawing will also connect the first point to the last point from the points array, resulting in a closed polyline. Optional. The default is false.
    hidden (series bool)
    plot (series polyline): The polyline object to be added and plotted via draw()

CenterLabel
  Fields:
    center_label (Label): The generated, centered Label
    source_line (Line)
    source_polyline (PolyLine)

BoxArgs
  Fields:
    border_color (series color): Color of the four borders. Optional. The default is color.blue.
    border_width (series int): Width of the four borders, in pixels. Optional. The default is 1 pixel.
    border_style (series string): Style of the four borders. Possible values: line.style_solid, line.style_dotted, line.style_dashed. Optional. The default value is line.style_solid.
    bg_color (series color): Background color of the box. Optional. The default is color.blue.
    xloc (series string): Determines whether the arguments to 'left' and 'right' are a bar index or a time value. If xloc = xloc.bar_index, the arguments must be a bar index. If xloc = xloc.bar_time, the arguments must be a UNIX time. Possible values: xloc.bar_index and xloc.bar_time. Optional. The default is xloc.bar_index.
    extend (series string): When extend.none is used, the horizontal borders start at the left border and end at the right border. With extend.left or extend.right, the horizontal borders are extended indefinitely to the left or right of the box, respectively. With extend.both, the horizontal borders are extended on both sides. Optional. The default value is extend.none.

BoxTextArgs
  Fields:
    text_color (series color): The color of the text. Optional. The default is color.black.
    text_size (series string): The size of the text. An optional parameter, the default value is size.auto. Possible values: size.auto, size.tiny, size.small, size.normal, size.large, size.huge.
    text_halign (series string): The horizontal alignment of the box's text. Optional. The default value is text.align_center. Possible values: text.align_left, text.align_center, text.align_right.
    text_valign (series string): The vertical alignment of the box's text. Optional. The default value is text.align_center. Possible values: text.align_top, text.align_center, text.align_bottom.
    text_wrap (series string): Defines whether the text is presented in a single line, extending past the width of the box if necessary, or wrapped so every line is no wider than the box itself (and clipped by the bottom border of the box if the height of the resulting wrapped text is higher than the height of the box). Optional. The default value is text.wrap_none. Possible values: text.wrap_none, text.wrap_auto.
    text_font_family (series string): The font family of the text. Optional. The default value is font.family_default. Possible values: font.family_default, font.family_monospace.

Box
  Fields:
    left_top (chart.point): top-left corner of the box
    right_bottom (chart.point): bottom-right corner of the box
    txt (series string): The text to be displayed inside the box. Optional. The default is empty string.
    hidden (series bool)
    plot (series box): The box object to be added and plotted via draw()

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.