RicardoSantos

Vector2DrawLine

Library "Vector2DrawLine"
Extends line type with methods for Vector2 and Segment2.

new(origin, target, xloc, extend, color, style, width)
  Draws a line using Segment type to hold its coordinate properties..
  Parameters:
    origin: Vector2 . Origin vector of the line.
    target: Vector2 . Target vector of the line.
    xloc: string
    extend: string
    color: color
    style: string
    width: int
  Returns: line object

new(segment, xloc, extend, color, style, width)
  Draws a line using Segment type to hold its coordinate properties..
  Parameters:
    segment: Segment2 . Segment with positional coordinates.
    xloc: string
    extend: string
    color: color
    style: string
    width: int
  Returns: line object

rotate_around(this, center, angle)
  Instance method to rotate line around center vector (modifies input line).
  Parameters:
    this: line . Line object.
    center: Vector2 . Center of rotation.
    angle: float . Rotation angle in degrees.
  Returns: line. Rotated line object.
Biblioteca do Pine

No verdadeiro espírito TradingView, o autor publicou este código de Pine como uma biblioteca de código aberto para que outros programadores de Pine de nossa comunidade possam reutilizá-lo. Um brinde ao autor! Você pode usar esta biblioteca em particular ou em outras publicações de código aberto, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Gostaria de usar essa biblioteca?

Copie a seguinte linha e cole-a em seu script.