PINE LIBRARY

Graph

Trendoscope의
Wizard
업데이트됨
Library "Graph"
Library to collect data and draw scatterplot and heatmap as graph

method init(this)
  Initialise Quadrant Data
  Namespace types: Quadrant
  Parameters:
    this (Quadrant): Quadrant object that needs to be initialised
  Returns: current Quadrant object

method init(this)
  Initialise Graph Data
  Namespace types: Graph
  Parameters:
    this (Graph): Graph object that needs to be initialised with 4 Quadrants
  Returns: current Graph object

method add(this, data)
  Add coordinates to graph
  Namespace types: Graph
  Parameters:
    this (Graph): Graph object
    data (Coordinate): Coordinates containing x, y data
  Returns: current Graph object

method calculate(this)
  Calculation required for plotting the graph
  Namespace types: Graph
  Parameters:
    this (Graph): Graph object
  Returns: current Graph object

method paint(this)
  Draw graph
  Namespace types: Graph
  Parameters:
    this (Graph): Graph object
  Returns: current Graph object

Coordinate
  Coordinates of sample data
  Fields:
    xValue (series float): x value of the sample data
    yValue (series float): y value of the sample data

Quadrant
  Data belonging to particular quadrant
  Fields:
    coordinates (array<Coordinate>): Coordinates present in given quadrant

GraphProperties
  Properties of Graph that needs to be drawn
  Fields:
    rows (series int): Number of rows (y values) in each quadrant
    columns (series int): number of columns (x values) in each quadrant
    graphtype (series GraphType): Type of graph - scatterplot or heatmap
    plotColor (series color): color of plots or heatmap
    plotSize (series string): size of cells in the table
    plotchar (series string): Character to be printed for display of scatterplot
    outliers (series int): Excude the outlier percent of data from calculating the min and max
    position (series string): Table position
    bgColor (series color): graph background color

PlotRange
  Range of a plot in terms of x and y values and the number of data points that fall within the Range
  Fields:
    minX (series float): min range of X value
    maxX (series float): max range of X value
    minY (series float): min range of Y value
    maxY (series float): max range of Y value
    count (series int): number of samples in the range

Graph
  Graph data and properties
  Fields:
    properties (GraphProperties): Graph Properties object associated
    quadrants (array<Quadrant>): Array containing 4 quadrant data
    plotRanges (matrix<PlotRange>): range and count for each cell
    xArray (array<float>): array of x values
    yArray (array<float>): arrray of y values
릴리즈 노트
v2

Added:
method paintQuadrantSummary(this)
  Draw quadrant summary
  Namespace types: Graph
  Parameters:
    this (Graph): Graph object
  Returns: current Graph object

Updated:
GraphProperties
  Properties of Graph that needs to be drawn
  Fields:
    rows (series int): Number of rows (y values) in each quadrant
    columns (series int): number of columns (x values) in each quadrant
    graphtype (series GraphType): Type of graph - scatterplot or heatmap
    plotColor (series color): color of plots or heatmap
    plotSize (series string): size of cells in the table
    plotchar (series string): Character to be printed for display of scatterplot
    outliers (series int): Excude the outlier percent of data from calculating the min and max
    position (series string): Table position
    bgColor (series color): graph background color
    summaryBgColor (series color): background color of quadrant summary label
    summaryTextColor (series color): text color of quadrant summary label
    summaryTextSize (series string): Size of the quadrant summary text
arrayshewhomustnotbenamedMATHstatisticstrendoscope
Trendoscope
Wizard

파인 라이브러리

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

면책사항