robbatt

lib_drawing_composites

Library "lib_drawing_composites"
methods to draw and manage composite obejects. Based on Trendoscope's 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)
ไลบรารีไพน์

จิตวิญญาณที่แท้จริงของ TradingView ผู้เขียนได้ตีพิมพ์รหัส Pine นี้เป็นไลบรารีโอเพนซอร์ซเพื่อให้โปรแกรมเมอร์คนอื่น ๆ จากชุมชนของเราสามารถนำไปใช้ซ้ำได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ไลบรารีนี้เป็นการส่วนตัวหรือในสิ่งพิมพ์โอเพนซอร์สอื่น ๆ แต่นำรหัสนี้มาใช้ซ้ำในสิ่งพิมพ์จะถูกควบคุมโดย กฎระเบียบการใช้งาน

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการใช้ไลบรารีนี้หรือไม่?

คัดลอกข้อความไปยังคลิปบอร์ดแล้ววางลงในสคริปต์ของคุณ