Download MetaTrader 5

Reason_program code explanation

To add comments, please log in or register
Having questions? Ask them on the Forum - traders will help you!
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
9894
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