Is a Linear regression EA possible ??

 
Can someone tell me if it is possible to code an EA to draw a linear regression channel and open and close trades on breaks from the channel??
 
Many LR exist, search center of gravity.
 

yes it is possible, here is the obj_regression :

https://docs.mql4.com/constants/objectconstants/enum_object/obj_regression

an EA already exist for trading in a channel, in the list of the MT4 article,

https://www.mql5.com/en/articles/1375

 
ffoorr:

yes it is possible, here is the obj_regression :

https://docs.mql4.com/constants/objectconstants/enum_object/obj_regression

an EA already exist for trading in a channel, in the list of the MT4 article,

https://www.mql5.com/en/articles/1375

 

Thank you.  I found the code for the regression channel but can not figure out how to add it to my EA. 

Reason: