Download MetaTrader 5
To add comments, please log in or register
Sell your CPU capacity and earn money!
Patricia_T
268
Patricia_T 2015.07.18 15:03 
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
13929
whroeder1 2015.07.18 16:16  
Many LR exist, search center of gravity.
ffoorr
996
ffoorr 2015.07.19 00:15  

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 2015.07.19 16:26  
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