TradingView
RicardoSantos
5 Th10 2021 13:22

AnalysisInterpolationLoess 

SPDR Dow Jones Industrial Average ETFArca

Mô tả

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.

Phát hành các Ghi chú

v2
cleaned the code a bit,
corrected a overflow issue (thank you kaigouthro for noticing it),
added a moving average function using the algorithm.

Phát hành các Ghi chú

v3 added a new function for source series, this modification was created by @kaigouthro
Bình luận
blackcat1402
super!
peacefulLizard50262
too cool!
Farmer_George
when i copy and paste import RicardoSantos/AnalysisInterpolationLoess/3 it does not overlay on my chart. New to script.
RicardoSantos
@Farmer_George, that line gives access to the library functions, you can then call the functions and use them with your provided data.
Farmer_George
@RicardoSantos, Thank you. I need to become more familiar with Pine Script as I'm not sure how to call the functions. I assumed that the indicator needs to 'sit' on the chart and will reference the data once on the chart. The other public indicators do that. I guess I'm missing something.
Kunal5585
can not see in tradingview can you please help??
blackcat1402
it looks like responsive MA or filter
RicardoSantos
@blackcat1402, yes, its used in DSP to filter noise
blackcat1402
@RicardoSantos, super! I will try this one :D
Wakuu
Thêm nữa