Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Indicators - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-17-2008, 07:13 PM
Member
 
Join Date: May 2006
Posts: 46
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 07:25 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,084
omelette is on a distinguished road
Quote:
Originally Posted by juanchoc View Post
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
I could be wrong but I think that is exactly what the 'DECEMA' MA indicator does...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 09:03 PM
Member
 
Join Date: May 2006
Posts: 46
juanchoc is on a distinguished road
Quote:
Originally Posted by omelette View Post
I could be wrong but I think that is exactly what the 'DECEMA' MA indicator does...
No, i've took a look at the DECEMA code and it doesnt look anything like a polynomial regression. Besides, im quite sure that i've tryied most (if not all) of the mt4 indicators around, and never seen a polynomial regression like the one im talking.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 10:27 PM
Senior Member
 
Join Date: Feb 2006
Posts: 513
Michel is on a distinguished road
Quote:
Originally Posted by juanchoc View Post
No, i've took a look at the DECEMA code and it doesnt look anything like a polynomial regression. Besides, im quite sure that i've tryied most (if not all) of the mt4 indicators around, and never seen a polynomial regression like the one im talking.
Don't you think that digitals filters are exactly what you are looking for ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 10:58 PM
Member
 
Join Date: May 2006
Posts: 46
juanchoc is on a distinguished road
Quote:
Originally Posted by Michel View Post
Don't you think that digitals filters are exactly what you are looking for ?
No, while there is some similitude in the mathematical structure (weigthing points with coefficients), the logic behind it is quite diferent. Here you use cohefficients on a linear number series (1,2,3,4,5,6,7,8,9,10,....).
Digital filters apply the weigths to the input itself. Also the method for calculating the coheficients of the digital filters is diferent to the one used here.

Still, i coded most of the functions and logic in the last hour, but it sure has some bugs, because i translated most of the matrix handling functions from .net.

In a few minutes i'll post the indicator, just in case another coder wants to fix it, as i dont have much free time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 03:12 AM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 2,511
Blog Entries: 8
Linuxser has disabled reputation
We have some indicators based on polynomial regression on this thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 03:48 AM
Administrator
 
Join Date: Sep 2005
Posts: 15,980
Blog Entries: 68
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
And polynomial tools (similar with Jan Arps' Traders' Toolbox Online Store) for MT4 created by Igorad (in elite section).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-19-2008, 04:34 AM
Member
 
Join Date: May 2006
Posts: 46
juanchoc is on a distinguished road
Thanks Linuxser and newdigital! Just found the indicators in the elite section (the Jan Arps ones).
Nice indicators indeed.

Last edited by juanchoc; 01-19-2008 at 04:51 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linear Regression symtec23 Metatrader 4 4 07-08-2008 07:44 AM
regression lines mmccormac Indicators - Metatrader 4 9 01-23-2007 02:19 PM
Linear Regression Indicator valnie Indicators - Metatrader 4 3 08-06-2006 06:59 PM
Looking for Linear Regression Curve Paul_Morin Metatrader 4 5 05-12-2006 10:39 AM


All times are GMT. The time now is 01:37 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.