dandrideng

least_squares_regression

dandrideng Zaktualizowano   
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
Informacje o Wersji:
v2 modify some discriptions
Biblioteka Pine

Działając zgodnie z prawdziwym duchem TradingView, autor opublikował ten kod Pine jako bibliotekę o otwartym kodzie źródłowym, aby inni programiści Pine z naszej społeczności mogli go ponownie wykorzystać. Brawa dla niego! Możesz korzystać z tej biblioteki prywatnie lub w innych publikacjach typu open source, ale ponowne wykorzystanie tego kodu w publikacji podlega Regulaminowi.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz skorzystać z tej biblioteki?

Skopiuj poniższy wiersz i wklej go w swoim skrypcie.