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
san takashima
Quote from ferdinand tampubolon

buffer buy 3

buffer sell 2 

try this 

Thank you Ferdinand,
And sorry for a newbie questions...

So the next setting is of the 'type'
I'm lost....

Image 5625

Avatar
ferdinand tampubolon
Quote from san takashima

Thank you Ferdinand,
And sorry for a newbie questions...

So the next setting is of the 'type'
I'm lost....

Image 5625

No problem we here help each other.