UPDATE: the original version works only with BTC. Here's a general version with rescaling.
There is not much to say - just vanilla locally weighted regression in PineScript 4. see: medium.com also: cs229.stanford.edu
This is a continuation of the series on forecasting techniques. Locally weighted linear regression is a non-parametric algorithm, that is, the model does not learn a fixed set of parameters as is done in ordinary linear regression. Rather parameters Θ (theta) are computed individually for each query point x. While computing Θ, a higher “preference” is given to the...