Error "unknow ticket" is what number?

 

What is number code of "Unknow ticket" ?


Thank you

 
sorasit46:

What is number code of "Unknow ticket" ?


Thank you

probably that your counter is regarded as the ticket number

use OrderTicket()

show your code

 

Do you mean 4108 Invalid ticket?

You get it if the ticket number doesn't exist or you try to modify or close an already closed order 

 
GumRai:

Do you mean 4108 Invalid ticket?

You get it if the ticket number doesn't exist or you try to modify or close an already closed order 

Thank you
 
Don't hard code numbers, Runtime Errors - MQL4 Documentation