Download MetaTrader 5

Indicators: Linear Regression Channel

To add comments, please log in or register
Your conversation partner speaks foreign language? Automatic translation will help you!
MetaQuotes Software Corp.
Moderator
181051
MetaQuotes Software Corp. 2008.03.28 06:50 

Linear Regression Channel:

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

Author: dimicr

c0d3
776
c0d3 2009.01.11 09:44  

Great Indicator, Thx!!!

MQL4 Comments
16319
MQL4 Comments 2009.02.18 18:27  

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

Thanks for posting

MQL4 Comments
16319
MQL4 Comments 2009.04.30 17:27  

Can you make it MTF one? Thx!!

Adam Parusel
52
Adam Parusel 2010.04.06 18:18  
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?
dabbler
1103
dabbler 2012.04.08 10:49  
Good example. Thanks.
Mehrdad Shiri
4480
Mehrdad Shiri 2016.01.15 00:31  

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;
To add comments, please log in or register