Page 3 of 5

### Re: Polynomial regression

Posted: Sat May 25, 2013 10:23 am
Could you write here the code to calculate the polynomial regression without using lua?

Thank you

### Re: Polynomial regression

Posted: Sun Jun 02, 2013 11:48 am
U have to use some programming language.

### Re: Polynomial regression

Posted: Wed Jul 17, 2013 7:07 am
Could you write it in visual basic? Thank you! (It's the only language I know and I'd like to understand something about polynomial regression looking to the code)

### Re: Polynomial regression

Posted: Thu Jul 18, 2013 1:40 pm
Unfortunately, I do not know Visual Basic very well.
My interest are MQ4 and Lua.

### Re: Polynomial regression

Posted: Sat Jul 20, 2013 9:21 am
Could you write it with algorithms language? Something like this:

for i=0 to n-1
if a<...
end for

etc..

### Re: Polynomial regression

Posted: Sat Jul 20, 2013 10:00 am
More about Polynomial_regression and the exact formula can be found here.
http://en.wikipedia.org/wiki/Polynomial_regression

Channel Calculating

sum=Pow(Price-Regression,2)

sum = (SUM, N)

variance= sqrt(SUM/Period);

BandUp=Regression+Deviation*variance
BandDn=Regression-Deviation*variance

### Re: Polynomial regression

Posted: Sat Aug 17, 2013 8:19 pm
Could you make a version without the channel? Only the regression line.

Thank you!

### Re: Polynomial regression

Posted: Mon Aug 19, 2013 2:10 am

### Re: Polynomial regression

Posted: Sun Sep 01, 2013 2:39 pm
Guys,

Would it be possible to add an adjustable start point feature to this indicator.

i.e.; The way the indicator is coded now is that it starts always at the current bar/candle and then calculates back 'X' periods.

Could the indicator have the feature of starting 'X' bars/candle back and then calculate 'X' periods back from the chosen start point?

This would allow anyone to see where the Polynomial Regression Channel was in the past.