Download MetaTrader 5

Indicators: Linear Regression Channel

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
186066
MetaQuotes Software Corp.  

Linear Regression Channel:

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

Author: dimicr

c0d3
776
c0d3  

Great Indicator, Thx!!!

MQL4 Comments
16319
MQL4 Comments  

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

Thanks for posting

MQL4 Comments
16319
MQL4 Comments  

Can you make it MTF one? Thx!!

Adam Parusel
52
Adam Parusel  
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  
Good example. Thanks.
Mehrdad Shiri
4598
Mehrdad Shiri  

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