PINE LIBRARY

Drawings_public

125
Library "Drawings_public"
: Functions to manage drawings on the chart

extend_line(lineId, labelId)
  : Extend specific line with its label
  Parameters:
    lineId (line)
    labelId (label)

update_line_coordinates(lineId, labelId, x1, y1, x2, y2)
  : Update specific line coordinates with its label
  Parameters:
    lineId (line)
    labelId (label)
    x1 (int)
    y1 (float)
    x2 (int)
    y2 (float)

update_label_coordinates(labelId, value)
  : Update coordinates of a label
  Parameters:
    labelId (label)
    value (float)

delete_line(lineId, labelId)
  : Delete specific line with its label
  Parameters:
    lineId (line)
    labelId (label)

update_box_coordinates(boxId, labelId, left, top, right, bottom)
  : Update specific box coordinates with its label
  Parameters:
    boxId (box)
    labelId (label)
    left (int)
    top (float)
    right (int)
    bottom (float)

delete_box(boxId, labelId)
  : Delete specific box with its label
  Parameters:
    boxId (box)
    labelId (label)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.