Is there a way to create a quadratic regression in Pine that is reasonably simple?
I only need the result of the quadratic regression over the last X days (e.g. 20 days) so that I can create a continuous indicator.
I have looked at the scripts at Tradingview and these are provided with countless additional calculations.
New contributor
Julian JJ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.