PINE LIBRARY

lib_drawing_composites

Library "lib_drawing_composites"
methods to draw and manage composite obejects. Based on Trendoscope's tradingview.com/script/eNM7BFaR-DrawingMethods/, added Triangle and Polygon composite objects, fixed tostring method output to be actual json

method tostring(this, format_date, format, tz, pretty)
  Converts lib_drawing_types/LineProperties object to a json string representation
  Namespace types: D.Point
  Parameters:
    this (Point type from HeWhoMustNotBeNamed/DrawingTypes/2): lib_drawing_types/LineProperties object
    format_date (simple bool)
    format (simple string)
    tz (simple string)
    pretty (simple bool): if true adds a line feed after every property and a space before properties (default: true)
  Returns: string representation of lib_drawing_types/LineProperties

method tostring(this, pretty)
  Converts lib_drawing_types/LabelProperties object to a json string representation
  Namespace types: D.LineProperties
  Parameters:
    this (LineProperties type from HeWhoMustNotBeNamed/DrawingTypes/2): lib_drawing_types/LabelProperties object
    pretty (simple bool): if true adds a line feed after every property and a space before properties (default: true)
  Returns: string representation of lib_drawing_types/LabelProperties

method tostring(this, format_date, format, tz, pretty)
  Converts lib_drawing_types/BoxProperties object to a json string representation
  Namespace types: D.Line
  Parameters:
    this (Line type from HeWhoMustNotBeNamed/DrawingTypes/2): lib_drawing_types/BoxProperties object
    format_date (simple bool)
    format (simple string)
    tz (simple string)
    pretty (simple bool): if true adds a line feed after every property and a space before properties (default: true)
  Returns: string representation of lib_drawing_types/BoxProperties

method tostring(this, pretty)
  Converts lib_drawing_types/BoxText object to a json string representation
  Namespace types: D.LabelProperties
  Parameters:
    this (LabelProperties type from HeWhoMustNotBeNamed/DrawingTypes/2): lib_drawing_types/BoxText object
    pretty (simple bool): if true adds a line feed after every property and a space before properties (default: true)
  Returns: string representation of lib_drawing_types/BoxText

method tostring(this, format_date, format, tz, pretty)
  Converts lib_drawing_types/TriangleProperties object to a json string representation
  Namespace types: D.Label
  Parameters:
    this (Label type from HeWhoMustNotBeNamed/DrawingTypes/2): lib_drawing_types/TriangleProperties object
    format_date (simple bool)
    format (simple string)
    tz (simple string)
    pretty (simple bool): if true adds a line feed after every property and a space before properties (default: true)
  Returns: string representation of lib_drawing_types/TriangleProperties

method tostring(this, format_date, format, tz, pretty)
  Namespace types: D.Linefill
  Parameters:
    this (Linefill type from HeWhoMustNotBeNamed/DrawingTypes/2)
    format_date (simple bool)
    format (simple string)
    tz (simple string)
    pretty (simple bool)

method tostring(this, pretty)
  Namespace types: D.BoxProperties
  Parameters:
    this (BoxProperties type from HeWhoMustNotBeNamed/DrawingTypes/2)
    pretty (simple bool)

method tostring(this, pretty)
  Namespace types: D.BoxText
  Parameters:
    this (BoxText type from HeWhoMustNotBeNamed/DrawingTypes/2)
    pretty (simple bool)

method tostring(this, format_date, format, tz, pretty)
  Namespace types: D.Box
  Parameters:
    this (Box type from HeWhoMustNotBeNamed/DrawingTypes/2)
    format_date (simple bool)
    format (simple string)
    tz (simple string)
    pretty (simple bool)

method tostring(this, pretty)
  Namespace types: DC.TriangleProperties
  Parameters:
    this (TriangleProperties type from robbatt/lib_drawing_composite_types/1)
    pretty (simple bool)

method tostring(this, format_date, format, tz, pretty)
  Namespace types: DC.Triangle
  Parameters:
    this (Triangle type from robbatt/lib_drawing_composite_types/1)
    format_date (simple bool)
    format (simple string)
    tz (simple string)
    pretty (simple bool)

method tostring(this, format_date, format, tz, pretty)
  Namespace types: DC.Trianglefill
  Parameters:
    this (Trianglefill type from robbatt/lib_drawing_composite_types/1)
    format_date (simple bool)
    format (simple string)
    tz (simple string)
    pretty (simple bool)

method tostring(this, format_date, format, tz, pretty)
  Namespace types: DC.Polygon
  Parameters:
    this (Polygon type from robbatt/lib_drawing_composite_types/1)
    format_date (simple bool)
    format (simple string)
    tz (simple string)
    pretty (simple bool)

method tostring(this, format_date, format, tz, pretty)
  Namespace types: DC.Polygonfill
  Parameters:
    this (Polygonfill type from robbatt/lib_drawing_composite_types/1)
    format_date (simple bool)
    format (simple string)
    tz (simple string)
    pretty (simple bool)

method delete(this)
  Namespace types: DC.Trianglefill
  Parameters:
    this (Trianglefill type from robbatt/lib_drawing_composite_types/1)

method delete(this)
  Namespace types: DC.Triangle
  Parameters:
    this (Triangle type from robbatt/lib_drawing_composite_types/1)

method delete(this)
  Namespace types: DC.Triangle[]
  Parameters:
    this (Triangle[] type from robbatt/lib_drawing_composite_types/1)

method delete(this)
  Namespace types: DC.Trianglefill[]
  Parameters:
    this (Trianglefill[] type from robbatt/lib_drawing_composite_types/1)

method delete(this)
  Namespace types: DC.Polygon
  Parameters:
    this (Polygon type from robbatt/lib_drawing_composite_types/1)

method delete(this)
  Namespace types: DC.Polygonfill
  Parameters:
    this (Polygonfill type from robbatt/lib_drawing_composite_types/1)

method delete(this)
  Namespace types: DC.Polygon[]
  Parameters:
    this (Polygon[] type from robbatt/lib_drawing_composite_types/1)

method delete(this)
  Namespace types: DC.Polygonfill[]
  Parameters:
    this (Polygonfill[] type from robbatt/lib_drawing_composite_types/1)

method clear(this)
  Namespace types: DC.Triangle[]
  Parameters:
    this (Triangle[] type from robbatt/lib_drawing_composite_types/1)

method clear(this)
  Namespace types: DC.Trianglefill[]
  Parameters:
    this (Trianglefill[] type from robbatt/lib_drawing_composite_types/1)

method clear(this)
  Namespace types: DC.Polygon[]
  Parameters:
    this (Polygon[] type from robbatt/lib_drawing_composite_types/1)

method clear(this)
  Namespace types: DC.Polygonfill[]
  Parameters:
    this (Polygonfill[] type from robbatt/lib_drawing_composite_types/1)

method draw(this, is_polygon_section)
  Namespace types: DC.Triangle
  Parameters:
    this (Triangle type from robbatt/lib_drawing_composite_types/1)
    is_polygon_section (bool)

method draw(this)
  Namespace types: DC.Trianglefill
  Parameters:
    this (Trianglefill type from robbatt/lib_drawing_composite_types/1)

method draw(this, is_polygon)
  Namespace types: DC.Triangle[]
  Parameters:
    this (Triangle[] type from robbatt/lib_drawing_composite_types/1)
    is_polygon (bool)

method draw(this)
  Namespace types: DC.Polygon
  Parameters:
    this (Polygon type from robbatt/lib_drawing_composite_types/1)

method draw(this)
  Namespace types: DC.Trianglefill[]
  Parameters:
    this (Trianglefill[] type from robbatt/lib_drawing_composite_types/1)

method draw(this)
  Namespace types: DC.Polygonfill
  Parameters:
    this (Polygonfill type from robbatt/lib_drawing_composite_types/1)

method draw(this)
  Namespace types: DC.Polygon[]
  Parameters:
    this (Polygon[] type from robbatt/lib_drawing_composite_types/1)

method draw(this)
  Namespace types: DC.Polygonfill[]
  Parameters:
    this (Polygonfill[] type from robbatt/lib_drawing_composite_types/1)

method createCenter(this, other)
  Namespace types: D.Point
  Parameters:
    this (Point type from HeWhoMustNotBeNamed/DrawingTypes/2)
    other (Point type from HeWhoMustNotBeNamed/DrawingTypes/2)

method createCenter(this)
  Namespace types: D.Point[]
  Parameters:
    this (Point[] type from HeWhoMustNotBeNamed/DrawingTypes/2)

method createCenter(this, other1, other2)
  Namespace types: D.Point
  Parameters:
    this (Point type from HeWhoMustNotBeNamed/DrawingTypes/2)
    other1 (Point type from HeWhoMustNotBeNamed/DrawingTypes/2)
    other2 (Point type from HeWhoMustNotBeNamed/DrawingTypes/2)

method createLabel(this, labeltext, tooltip, properties)
  Namespace types: D.Line
  Parameters:
    this (Line type from HeWhoMustNotBeNamed/DrawingTypes/2)
    labeltext (string)
    tooltip (string)
    properties (LabelProperties type from HeWhoMustNotBeNamed/DrawingTypes/2)

method createLabel(this, labeltext, tooltip, properties)
  Namespace types: DC.Triangle
  Parameters:
    this (Triangle type from robbatt/lib_drawing_composite_types/1)
    labeltext (string)
    tooltip (string)
    properties (LabelProperties type from HeWhoMustNotBeNamed/DrawingTypes/2)

method createTriangle(this, p2, p3, properties)
  Namespace types: D.Point
  Parameters:
    this (Point type from HeWhoMustNotBeNamed/DrawingTypes/2)
    p2 (Point type from HeWhoMustNotBeNamed/DrawingTypes/2)
    p3 (Point type from HeWhoMustNotBeNamed/DrawingTypes/2)
    properties (TriangleProperties type from robbatt/lib_drawing_composite_types/1)

method createTrianglefill(this, fill_color, transparency)
  Namespace types: DC.Triangle
  Parameters:
    this (Triangle type from robbatt/lib_drawing_composite_types/1)
    fill_color (color)
    transparency (int)

method createPolygonfill(this, fill_color, transparency)
  Namespace types: DC.Polygon
  Parameters:
    this (Polygon type from robbatt/lib_drawing_composite_types/1)
    fill_color (color)
    transparency (int)

method createPolygon(points, properties)
  Namespace types: D.Point[]
  Parameters:
    points (Point[] type from HeWhoMustNotBeNamed/DrawingTypes/2)
    properties (TriangleProperties type from robbatt/lib_drawing_composite_types/1)
displaydrawingdrawingtoolsecosystemframeworklibraryMarket GeometryMATHwizardry

Bibliothèque Pine

Dans le plus pur esprit TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque en privé ou dans d'autres publications à code source ouvert, mais la réutilisation de ce code dans une publication est régie par nos Règles.

Clause de non-responsabilité