Download MetaTrader 5
To add comments, please log in or register
MQL5 library has more than 1500 apps already. Contribute your own one!
sorasit
358
sorasit 2015.08.27 06:02 

What is number code of "Unknow ticket" ?


Thank you

Subgenius
572
Subgenius 2015.08.27 06:08  
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

Keith Watford
Moderator
7985
Keith Watford 2015.08.27 06:20  

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 

sorasit
358
sorasit 2015.08.27 08:22  
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
whroeder1
13641
whroeder1 2015.08.27 11:19  
Don't hard code numbers, Runtime Errors - MQL4 Documentation
/
To add comments, please log in or register