linear Rregression Channel and Expert Advisors

 

Dear friends,

I would like to use the indicator linear Rregression Channel in my Expert Advisors.
Please see LinearRegressionChannel.mq4.

My problem is the support and resistance lines in Expert Advisors version
becomes not correctly calculates, but that Main lines
is calculated correctly. Although the indicator works in indicator version right.

I use the same code. Please see Test-Expert.mq4

Can somebody give me maybe a hint.

Thanks.....

 
Why don't you use iCustom()? You then will not have to hard code the indicator.
 
jmca wrote >>
Why don't you use iCustom()? You then will not have to hard code the indicator.

It works with ICustom(). Thank you very very much.