It's great that everything almost coincides with the regression channel (the "Std" itself doesn't quite match) from MT5!
But as for the code, it's hard to digest something for me - the variables are not very logical.
Maybe you can make the indicator more useful? The essence of the channel is to work with future prices, i.e. to calculate it in the right part, of course on each bar it will be necessary to make correction for a hole in history, but it is much more useful and practical for work. And the channel itself should be built on the data for a period of time - for example, on 15 minutes for the last 3 days, not counting the current day. And it would be practical to wrap it in a function with input parameters in the form of the start and end dates of channel building and index to get the value. I made a similar indicator in MT4 and everything worked correctly there, but in MT5 I can't make a correct calculation - I can't find an error, so I decided to understand your code.

Hi Vladimir, is there any chance to add push notifications when the price cross all the levels? For example when it hits the top line have notification then when come back to the centre also have notification, vice versa for ther bottom. Would much appreciate your help. Thank you in advance
Personally, I did not plan such functionality. Ask - can anyone do it for free. Or order from Freelance.
Personally, I did not plan such functionality. Ask - can anyone do it for free. Or order from Freelance.
Ok, no worries.
Hi, guys! I would like to have a scanner of all shares or pairs that send a alert too.
So, you have a path to implement it ? Or do you have another indicador or EA that make this?
Thank´s a lot to improve this nice indicator.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
i-Regr:
i-Regr is a MetaTrader 5 indicator. Regression Channel: Linear Regression Channel, Quadratic (Parabolic) Regression Channel, Cubic Regression Channel.
Author: Vladimir Karputov