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)
Pinebibliotek

I sann TradingView-anda har författaren publicerat denna Pine-kod som ett bibliotek med öppen källkod så att andra Pine-programmerare från vår community kan återanvända den. Hatten av för författaren! Du kan använda det här biblioteket privat eller i andra publikationer med öppen källkod, men återanvändning av den här koden i en publikation regleras av våra ordningsregler.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här biblioteket?

Kopiera följande rad och klistra in det i ditt skript.