OK, you have, possibly, many problems . . for example, this can't work . . .
Yeah, sometimes id is a Ticket (when I want to close) and some other times id is a AlgorithmIdentifier (when I want to open). So what you saw is correct: missing StrToInteger(id).
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Thank you guys, that was the problem.
I'm used to work in Java and some other languages which at least warn you on these kind of errors at compile time.
Thank you very much for your help.
OK, you have, possibly, many problems . . for example, this can't work . . .
Yeah, sometimes id is a Ticket (when I want to close) and some other times id is a AlgorithmIdentifier (when I want to open). So what you saw is correct: missing StrToInteger(id).
Thank you for your help