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

파인 라이브러리

진정한 TradingView 정신에 따라, 저자는 이 파인 코드를 다른 파인 프로그래머들이 재사용할 수 있도록 오픈 소스 라이브러리로 공개했습니다. 저자에게 박수를 보냅니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈 소스 출판물에서 사용할 수 있지만, 이 코드를 출판물에서 재사용하는 것은 하우스 룰에 의해 관리됩니다.

면책사항