PINE LIBRARY

lib_set

621
Library "lib_set"
This is a convenience lib that bundles different setter functions allowing to update all coordinates and of line/box in one call, and coordinates and text for label.

method set_xy_text(this, x, y, txt, tooltip)
โ€ƒโ€ƒUpdates a label object with new data (equals redrawing it)
โ€ƒโ€ƒNamespace types: series label
โ€ƒโ€ƒParameters:
โ€ƒโ€ƒโ€ƒโ€ƒthis (label)
โ€ƒโ€ƒโ€ƒโ€ƒx (int): reassigns the x coordinate, optional param, no effect if x = na (same as draw(extend_only = true) for Line objects). Avoiding to reassign x can prevent errors for invalid params passed to set_x***
โ€ƒโ€ƒโ€ƒโ€ƒy (float): reassigns the y coordinate
โ€ƒโ€ƒโ€ƒโ€ƒtxt (string): reassigns the label text
โ€ƒโ€ƒโ€ƒโ€ƒtooltip (string): reassigns the label tooltip

method set_xy1_xy2(this, x1, y1, x2, y2)
โ€ƒโ€ƒUpdates a line object with new data (equals redrawing it)
โ€ƒโ€ƒNamespace types: series line
โ€ƒโ€ƒParameters:
โ€ƒโ€ƒโ€ƒโ€ƒthis (line)
โ€ƒโ€ƒโ€ƒโ€ƒx1 (int): reassigns the x1 coordinate, optional param, no effect if x1 = na (same as draw(extend_only = true) for Line objects). Avoiding to reassign x1 can prevent errors for invalid params passed to set_x***
โ€ƒโ€ƒโ€ƒโ€ƒy1 (float): reassigns the y1 coordinate
โ€ƒโ€ƒโ€ƒโ€ƒx2 (int): reassigns the x2 coordinate
โ€ƒโ€ƒโ€ƒโ€ƒy2 (float): reassigns the y2 coordinate

method set_left_top_right_bottom(this, left, top, right, bottom)
โ€ƒโ€ƒUpdates a box object with new data (equals redrawing it)
โ€ƒโ€ƒNamespace types: series box
โ€ƒโ€ƒParameters:
โ€ƒโ€ƒโ€ƒโ€ƒthis (box)
โ€ƒโ€ƒโ€ƒโ€ƒleft (int): reassigns the left coordinate, optional param, no effect if left = na (same as draw(extend_only = true) for Box objects). Avoiding to reassign 'left' can prevent errors for invalid params passed to set_x***
โ€ƒโ€ƒโ€ƒโ€ƒtop (float): reassigns the top coordinate
โ€ƒโ€ƒโ€ƒโ€ƒright (int): reassigns the right coordinate
โ€ƒโ€ƒโ€ƒโ€ƒbottom (float): reassigns the bottom coordinate

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.