TradingView
RicardoSantos
2021年12月27日下午2點56分

FunctionGenerateRandomPointsInShape 

US Nas 100OANDA

描述

Library "FunctionGenerateRandomPointsInShape"
Generate random vector points in geometric shape (parallelogram, triangle)

random_parallelogram(vector_a, vector_b) Generate random vector point in a parallelogram shape.
  Parameters:
    vector_a: float array, vector of (x, y) shape.
    vector_b: float array, vector of (x, y) shape.
  Returns: float array, vector of (x, y) shape.

random_triangle(vector_a, vector_b) Generate random vector point in a triangle shape.
  Parameters:
    vector_a: float array, vector of (x, y) shape.
    vector_b: float array, vector of (x, y) shape.
  Returns: float array, vector of (x, y) shape.
評論
mathenger
The shape is not similiar to the chart.
Does that mean behind trend?
更多