Linear Regression line

Avatar
  • updated

While searching the way to use a Donchian Channel, I came across with this Linear Regression indicator.
I'd appreciate if someone can tell me how I can set CP up to use the change of the colour from yellow to Green to buy and yellow to Red to sell.
I can see that I should use the Buy Colour buffer.... but I don't know how to find out the buffer number... for each colours.
thank you for your help.

linear-regression-indikator.mq4
CP2.57 LinearRegression test MT4.set

Image 5596

MT version:
Set for MT4 only
EA version:
v2.57
Symbol:
EURUSD
TimeFrame:
M5
Avatar
Ulises Cune

Image 5599

0, 1 and 2  buffer

Image 5600

Avatar
san takashima
Quote from Ulises Cune

Image 5599

0, 1 and 2  buffer

Image 5600

Thank you Ulises!
So kind.
openning the mq4 file or using the metaeditor kind of scares me a bit...
Now, opening the mq4 file and seeing the 3 lines you clipped above... looked simple enough, though it is beyond my understanding,,, beyond the property, specially from int start()...
Thank you!
I think I'll read on about the coding!

Avatar
Ulises Cune

We are a community, we are there to help everyone.

Avatar
ferdinand tampubolon

can give me sample how to optimize custome indicator?

Avatar
san takashima
Quote from ferdinand tampubolon

can give me sample how to optimize custome indicator?

I'm happy to as soon as I worked out how to set them up...
I thought it was simple matter of entering the buffer number for Buy and Sell, but 
Well, it doesn't seem to be the case....
may be my problem here is Type?
Not sure...

Image 5603

Avatar
Ulises Cune
Quote from ferdinand tampubolon

can give me sample how to optimize custome indicator?

Signals and filters (communitypowerea.com)

Image 5604

Avatar
ferdinand tampubolon

ah now i know what input value to be optimize thank you ulises cune

Avatar
san takashima
Quote from ferdinand tampubolon

ah now i know what input value to be optimize thank you ulises cune

sorry, can you help understand?
Tried this and the other... but none seemed to work out....

Avatar
ferdinand tampubolon
Quote from san takashima

sorry, can you help understand?
Tried this and the other... but none seemed to work out....

which one bro can screen shot? so i can help you if i can

Avatar
ferdinand tampubolon

buffer buy 3

buffer sell 2 

try this