PINE LIBRARY

AnalysisInterpolationLoess

已更新
Library "AnalysisInterpolationLoess"
LOESS, local weighted Smoothing function.

loess(sample_x, sample_y, point_span) LOESS, local weighted Smoothing function.
Parameters:
  • sample_x: int array, x values.
  • sample_y: float array, y values.
  • point_span: int, local point interval span.



aloess(sample_x, sample_y, point_span) aLOESS, adaptive local weighted Smoothing function.
Parameters:
  • sample_x: int array, x values.
  • sample_y: float array, y values.
  • point_span: int, local point interval span.

發布通知
v2
cleaned the code a bit,
corrected a overflow issue (thank you kaigouthro for noticing it),
added a moving average function using the algorithm.
發布通知
v3 added a new function for source series, this modification was created by kaigouthro
arraysdspinterpolationMATHsmoothstatistics

Pine腳本庫

在真正的TradingView精神中,作者將這段Pine程式碼發佈為開源程式庫,以便我們社群的其他Pine程式設計師可以重複使用它。請向作者致敬!您可以私下使用這個函式庫,或在其他開源出版品中使用,但在出版物中再次使用這段程式碼將受到網站規則的約束。

免責聲明