Hi!
It would be nice to have a polynomial regression indicator in metatrader.
The idea is pretty simple, just like in a simple linear regression, we use the Least Squares method to fit a polynomial instead of the line function.
Simple Linear Regression = b1 + b2 * x
Polynomial Regression = b1 + b2 * x + b3 * (x) ^2 + b4 * (x) ^3 + ... + bn * (x)^n+1
As you increase the degree of the polynomial, the speed gets much faster.
Least Squares Method
I always use the matrix algebra formula
here.
Is any coder willing to code this? I would do it myself but im really busy right now.
Thanks in advance,
JCC