PINE LIBRARY

CommonTypesDrawing

Library "CommonTypesDrawing"
Provides a common library source for common types of used graphical drawing structures.
Includes: `Triangle, Quad, Polygon`

Triangle
  Representation of a triangle using lines and linefill.
  Fields:
    ab: Edge of point a to b.
    bc: Edge of point b to c.
    ca: Edge of point c to a.
    fill: Fill of the object.
    solid: Check if polygon should have a fill.

Quad
  Representation of a quadrilateral using lines and linefill.
  Fields:
    ab: Edge of point a to b.
    bc: Edge of point b to c.
    cd: Edge of point c to d.
    da: Edge of point d to a.
    fill: Fill of the object.
    solid: Check if polygon should have a fill.

Polygon
  Representation of a polygon using lines and linefill.
  Fields:
    edges: List of edges in the polygon.
    fills: Fills of the object.
    closed: Check if polygon line should connect last vertice to first.
    solid: Check if polygon should have a fill.
displaydrawingfunctionlibraryMarket GeometryMATHTYPEudf

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