dandrideng

simple_squares_regression

dandrideng Aggiornato   
Library "simple_squares_regression"
simple_squares_regression: simple squares regression algorithm to find the optimal price interval for a given time period

basic_ssr(series, series, series) basic_ssr: Basic simple squares regression algorithm
  Parameters:
    series: float src: the regression source such as close
    series: int region_forward: number of candle lines at the right end of the regression region from the current candle line
    series: int region_len: the length of regression region
  Returns: left_loc, right_loc, reg_val, reg_std, reg_max_offset

search_ssr(series, series, series, series) search_ssr: simple squares regression region search algorithm
  Parameters:
    series: float src: the regression source such as close
    series: int max_forward: max number of candle lines at the right end of the regression region from the current candle line
    series: int region_lower: the lower length of regression region
    series: int region_upper: the upper length of regression region
  Returns: left_loc, right_loc, reg_val, reg_level, reg_std_err, reg_max_offset
Note di rilascio:
v2 Update usage samples and charts
Libreria Pine

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzare questa libreria in privato o all'interno di altre pubblicazioni open-source, ma il riutilizzo del codice è subordinato al rispetto del Regolamento.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questa libreria?

Copia il testo ed incollalo nel tuo script.