dandrideng

least_squares_regression

dandrideng Actualizado   
Library "least_squares_regression"
least_squares_regression: Least squares regression algorithm to find the optimal price interval for a given time period

basic_lsr(series, series, series) basic_lsr: Basic least squares regression algorithm
  Parameters:
    series: int t: time scale value array corresponding to price
    series: float p: price scale value array corresponding to time
    series: int array_size: the length of regression array
  Returns: reg_slop, reg_intercept, reg_level, reg_stdev

trend_line_lsr(series, series, series, string, series, series) top_trend_line_lsr: Trend line fitting based on least square algorithm
  Parameters:
    series: int t: time scale value array corresponding to price
    series: float p: price scale value array corresponding to time
    series: int array_size: the length of regression array
    string: reg_type: regression type in 'top' and 'bottom'
    series: int max_iter: maximum fitting iterations
    series: int min_points: the threshold of regression point numbers
  Returns: reg_slop, reg_intercept, reg_level, reg_stdev, reg_point_num
Notas de prensa:
v2 modify some discriptions
Biblioteca Pine

Siguiendo el verdadero espíritu de TradingView, el autor de este código de Pine lo ha publicado como biblioteca de código abierto, para que el resto de programadores de Pine de esta comunidad puedan volver a utilizarlo. ¡Un hurra por el autor! Puede utilizar esta biblioteca de forma privada o en otras publicaciones de código abierto, pero debe ceñirse a lo establecido en las Normas internas.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar esta biblioteca?

Copie la siguiente línea y péguela en su script.