View Single Post
  #1 (permalink)  
Old 01-17-2008, 07:13 PM
juanchoc juanchoc is offline
Member
 
Join Date: May 2006
Posts: 47
juanchoc is on a distinguished road
[REQ] Polynomial Regression

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
Reply With Quote