dandrideng

least_squares_regression

dandrideng アップデート済   
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
リリースノート:
v2 modify some discriptions
Pineライブラリ

TradingViewの精神に則り、作者はPineコードをオープンソースライブラリとして公開し、コミュニティの他のPineプログラマーが再利用できるようにしました。作者に敬意を表します!このライブラリを個人的に、または他のオープンソースの投稿で使用することができますが、、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

このライブラリを使用したいですか?

以下の行をコピーして、スクリプト内に貼り付けてください。