LudoGH68

Drawings_public

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

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

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

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

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

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

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

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.

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.

Want to use this library?

Copy the following line and paste it in your script.