Download MetaTrader 5

Is a Linear regression EA possible ??

To add comments, please log in or register
Patricia_T
268
Patricia_T  
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??
whroeder1
16105
whroeder1  
Many LR exist, search center of gravity.
ffoorr
1108
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

Patricia_T
268
Patricia_T  
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. 

To add comments, please log in or register