i have this indicator which paint the central line of the linear regression and what i want is how to calculate the upper and lower lines like the linear regression
Files:
11.mq4
10 kb
- Indicators: Linear Regression Line
- Indicators: Linear Regression
- Indicators: Linear regression slope
Did you try doing it.?? What error you got.?? Normally upper/lower boundary are +- multiplication factor of central main channel...
dineshydv:
Did you try doing it.?? What error you got.?? Normally upper/lower boundary are +- multiplication factor of central main channel...
Did you try doing it.?? What error you got.?? Normally upper/lower boundary are +- multiplication factor of central main channel...
yahh, i did but always i dont get as the upper and lower in the linear regression tool even i think its very easy but till now i couldn't figure where is the wrong.
I don't understand the logic of when you create the object. This is the code without the assignment statements
if (TimeHour(Time[0]) == 0) { if(EndDayHour<25) { } for(int i2=1;i2<80;i2++) { if(TimeHour(Time[i2])==23) { for(i=0; i<23; i++) { if(curHigh2>=curHigh0 && curHigh2>=curHigh1 && curHigh2>=curHigh3 && curHigh2>=curHigh4) { //if(highest<curHigh2) //{ x1=i; x=curHigh2; //Comment(x," ",x1); //} } }// end for(i=0; i<23; i++) ObjectCreate(LR.length+"+01",OBJ_TREND,0,aaa,LR.price.1+x, Time[end.bar],LR.price.2+x); ObjectSet(LR.length+"+01" ,OBJPROP_COLOR,c.3); } // end if(TimeHour(Time[i2])==23) }// end for(int i2=1;i2<80;i2++) }//end if (TimeHour(Time[0]) == 0) return(0); }//end start()

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register