Download MetaTrader 5
To add comments, please log in or register
Have you discovered something really important? Write an article and receive 200 USD!
sd2000sd
212
sd2000sd 2014.01.29 07:52 

REASON_PROGRAM

0

Expert Advisor terminated its operation by calling the ExpertRemove() function

 

Can someone explain this? 

Rodrigo Malacarne
Moderator
9764
Rodrigo Malacarne 2014.01.29 15:53  
sd2000sd:

REASON_PROGRAM

0

Expert Advisor terminated its operation by calling the ExpertRemove() function

 

Can someone explain this? 

You can programmatically chose to terminate your expert advisor if any given condition is met... something like

if(anything_went_wrong)
  {
   ExpertRemove(); // This will remove the expert advisor from your chart
  }

 I hope it helps.

/
To add comments, please log in or register