MQL4: Close order at specific time

 
 
 
Ramon Sobrevals Arce:

Your OrderSelectFunction fails because the "Ticket" parameter is not external. 

int Ticket; should be declared outside the OnTick().


Great ! Thank you very much Ramon !