Indicators: Linear Regression Channel

 

Linear Regression Channel:

Custom Linear Regression Tool. Values of LR line and Support and Resistance lines are in buffers.

Author: dimicr

 

Great Indicator, Thx!!!

 

Wonderful timesave - makes the lines reproduceable and reveals opporturnities otherwise missed.

Thanks for posting

 

Can you make it MTF one? Thx!!

 
Thank you for the code! But one question regarding the calculation:

Shouldn't it be (i+1) instead of i in the calculation loop? Cause otherwise, the first point will be 0*Close[0] which is always zero.
Is this a mistake or what's the reason for this?
 
Good example. Thanks.
 

thx. the simple to use.

i think no need for 3 last line of code, isnt ?

   LR_line[x]  = 0.0;
   Sup_line[x] = 0.0;
   Res_line[x] = 0.0;
 
Hi, does anyone have a working Line_Regression_D indicator? I've downloaded several Line_Regression_D indicators from internet, but they all are not working indicators.
 
MetaQuotes:

Linear Regression Channel:

Author: dimicr

where can I get it?
 
steve yang:
where can I get it?

You have quoted the post with the link!!!!!

 
MetaQuotes:

Linear Regression Channel:

Author: dimicr

Hello

I'm trying to get the value of a certain past value along the Support and Resistance lines, let's say I need the value I can read in the oldest printed line (barcount 50).

The only value I could get so far is the last (index 0).

If I duplicate the indicator with barcount(50) and shift 49, I can see the value I need in the current position, but if I try to used it, it will always give me the value corresponding to the last LR.

I suppose I'd need a kind of "index" setting for it.

Is it possible in someway to get those values?


thanks