I-Regr.mq4 modification request

 

There is an indicator i-Reqr.mq4 for linear regression channel.

Is it possible to add horizontal lines at the level of endings of the three channel lines (with colour/thickness/length option)? The channel lines will remain as it is.

Regards

Files:
i-regr.mq4  5 kb
 

Why don't you use some version that extrapolates?

 

Thanks.

Pls suggest one.

 

One version of regression channel (with arbitrary order of regression calculated) + extrapolation added as posted here : https://www.mql5.com/en/forum/179807/page100 . A few more posted at elite and advanced sections

 

Thanks Mladen.

You are always helpful.

 

Hi there this is the first time I use a Forum and I hope I obey the rules, if not please correct me.

So I also found this regression Indicator i-Regr.mq4 and I like it very much so far.

I like to integrate the channels direction to another Indicator I use that gives me alerts.

What I want is to be only alerted by my other indicator, when the regression channel is heading to a certain direction.

Is there a easy way to add the i-Regr calculations to my other Indicator?

My other indicators “alert” part looks basically like this:

//start of alert part of the code

If (alertsOn)

//down here I can simply add any other Mt4 onboard indicator, for example I only want to be alerted

//when the RSI is above 80 or something, so I add

If (iRSI(NULL,0,9,PRICE_CLOSE,0)>80)

If (iCCi…

// and so on and so on

//and then I finally get the alert somewhere down here

So what I basically want is to add the direction of the regression channel into this “if” chain.

Something like

If (regression-shift0)<(regression-shift1) //to get the direction

So thanks in advance and I hope you guys can help me.

Reason: