Download MetaTrader 5

what is the command to "exit" a procedure ?

To add comments, please log in or register
zemo
78
zemo  

 Hi,

I don't know what is the command that "exits" the function/procedure/event without execute the rest

for example my code below...

tks 

 void OnTick(){

  bool RoboON = false;

   if (checkTimeLimits(StartHour1,StartMinute1,EndHour1,EndMinute1,TimeCurrent()))

   RoboON = true;

   if (checkTimeLimits(StartHour2,StartMinute2,EndHour2,EndMinute2,TimeCurrent()))

   RoboON = true;

   if (RoboON) 

   Exit;  <=====  what is "exit" function that abort the rest of procedure ?

   ..more code ....

   ..etc 

  } 

Alain Verleyen
Moderator
32430
Alain Verleyen  
return;
zemo
78
zemo  
thanks
Carl Schreiber
7098
Carl Schreiber  
Alain Verleyen:
return;

You forgot

void  ExpertRemove();
;)
Alain Verleyen
Moderator
32430
Alain Verleyen  
Carl Schreiber:

You forgot

void  ExpertRemove();
;)

No, that's not an answer to the question : "how to exit a procedure".

ExperRemove() doesn't exit the procedure.

To add comments, please log in or register