Indicators: LinearRegressionChannel

 

LinearRegressionChannel:

Custom instrument of the linear regression. LR line, Support and Resistance lines values are in the buffers

Fig.1 The LinearRegressionChannel indicator

Fig.1 The LinearRegressionChannel indicator

Author: Nikolay Kositsin

 

Hi, Mr. Nikolay

Good morning from Rio de Janeiro

I am currently exploring the Regression channel indicator and found your excellent code for an indicator in this linear regression characteristc for MT5.

First of all, congratulations for the excellent code and for generously sharing your hard work.

After starting, 2 errors I had to be corrected regarding ENUM declarations, Fixed it.

However, I have noticed that the channel did not update its condition for every bar.

I took the liberty to alter the code and it is now updating the channel for every bar, for the total bars inputed.

It is now working as I expected and I intend to explore it together with other trend indicators in order to maximize the probability of forecasting the price directions.

Thanks again for your generosity in sharing

Salustiano Leal

Rio de Janeiro, Brazil

Reason: