robbatt

lib_drawing_composite_types

Library "lib_drawing_composite_types"
User Defined Types for basic drawing structure. Other types and methods will be built on these. (added type Triangle and Polygon to www.tradingview.com/...c8VXSa-DrawingTypes/)

TriangleProperties
  TriangleProperties object
  Fields:
    border_color (series color): Box border color. Default is color.blue
    fill_color (series color): Fill color
    fill_transparency (series int)
    border_width (series int): Box border width. Default is 1
    border_style (series string): Box border style. Default is line.style_solid
    xloc (series string): defines if drawing needs to be done based on bar index or time. default is xloc.bar_index

Triangle
  Triangle object
  Fields:
    p1 (Point type from HeWhoMustNotBeNamed/DrawingTypes/2): point one
    p2 (Point type from HeWhoMustNotBeNamed/DrawingTypes/2): point two
    p3 (Point type from HeWhoMustNotBeNamed/DrawingTypes/2): point three
    properties (TriangleProperties): Triangle properties
    l12 (series line): line object created
    l23 (series line): line object created
    l31 (series line): line object created

Trianglefill
  Trianglefill object
  Fields:
    triangle (Triangle): to create a linefill for
    fill_color (series color): Fill color
    transparency (series int): Fill transparency range from 0 to 100
    object (series linefill): linefill object created

Polygon
  Polygon object
  Fields:
    center (Point type from HeWhoMustNotBeNamed/DrawingTypes/2): Point that triangles are using as common center
    triangles (Triangle): an array of triangles that form the Polygon

Polygonfill
  Polygonfill object
  Fields:
    _polygon (Polygon): to create a fill for
    _fills (Trianglefill): an array of Trianglefill objects that match the array of triangles in _polygon
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.