Download MetaTrader 5
To add comments, please log in or register
Share links from other resources. Now they have a description.
zerosen
31
zerosen 2015.08.23 09:13 

is there a code that would allow me to remove the program or deinit the program if there is an error?

 example:

if(GetLastError() != 0)

{  

Alert("error"); 

exit EA, de initialize

 

Also, the error would come from the program trying to put a buystop/sellstop at a point that isnt allowed to put an order. So it could also be if the order fails.  

If there is no other way, is there a way to run the EA with minimal CPU? So that it would not lag the other EA that are running in other symbols

Thanks 

Keith Watford
Moderator
9555
Keith Watford 2015.08.23 09:29  
Look up ExpertRemove in the documentation
zerosen
31
zerosen 2015.08.23 09:37  
GumRai:
Look up ExpertRemove in the documentation
Thanks again !!
/
To add comments, please log in or register