PINE LIBRARY

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
displaylibrarylines

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