Reason_program code explanation

 

REASON_PROGRAM

0

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

 

Can someone explain this? 

 
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.

Reason: