Because we can use short/midterm/longterm periods we can say that we use a Quadratic or a Moving Quadratic Regression.
Like the ( ) a Quadratic regression attempt to minimize the sum of squares (sum of the squared difference between a set of data and an estimator), this is why
those kinds of filters have low lag.
Here the difference between a Least Squared Moving Average (green) and a Quadratic Regression (red) of both period 500
Here it look like the Quadratic Regression have a best fit than the
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
Become a Patreon and get access to exclusive technical indicators!
You can also check out some of the indicators I made for luxalgo : https://www.tradingview.com/u/LuxAlgo/#published-scripts
Best regards :)