Indicators: Regression Channel with variable polynomial degree - indicator for MetaTrader 5

 

Regression Channel with variable polynomial degree - indicator for MetaTrader 5:

Regression Channel with variable polynomial degree - indicator for MetaTrader 5. EA - work in progress.

Regression Channel with variable polynomial degree - indicator for MetaTrader 5

Author: l3chat

 

Let's see what it will be in 2-3 days...

+1 day:  

+2 days: 

+3 days: 

 

working on fixing the bug


 

Hello,

Thanks for your code!

I'm trying to copybuffer 

CopyBuffer(indHandle,0,0,4,up_Buffer); //To get the upper line of indicator

But the EA are getting the wrong values.

Do you have any ideia how can I get correctly?

Thanks so much.

 
rodrigocatarino:

Hello,

Thanks for your code!

I'm trying to copybuffer 

But the EA are getting the wrong values.

Do you have any ideia how can I get correctly?

Thanks so much.

Thank you for reporting, I'll have a look at it.

EDIT: Everything looks fine.
 
Hi,

Thanks for your code!

How can I use it on EA?

h_regr = iCustom ( NULL , 0 , "i-Regr-2" , 5 , 2.0 , 500 );

...

 CopyBuffer (h_regr, 0 , 0 , 3 , bufUp);

When the test is running, no indicators are drawn on the chart.

And the values cannot be obtained either.

Could you help me ?

Thanks so much.

Files:
s001.PNG  110 kb
 

Great tool,

How to continue drawing the extrapolation on chart for future time as well?

 
daruler:

Great tool,

How to continue drawing the extrapolation on chart for future time as well?

nevermind, I did it myself with little modifications to the code. Now it serves as a forecasting curve as well with additional param for the number of future bars
 
daruler #:
nevermind, I did it myself with little modifications to the code. Now it serves as a forecasting curve as well with additional param for the number of future bars
Dear daruler, 

I am looking to get this polynomial regression channels indicator for myself. Can you please help me sir? Thank you! 
Reason: