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)
Thư viện Pine

Với tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác từ cộng đồng của chúng tôi có thể sử dụng lại nó. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này một cách riêng tư hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy chung.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng thư viện này?

Sao chép văn bản vào khay nhớ tạm và dán nó vào tập lệnh của bạn.