Orders not found

Posted By: dpn

Orders not found - 10/16/21 16:57

Hello,

Is there any mql experienced person that can explain to me why I get this kind of error every time I restart zorro (due to win 10 home edition mandatory update) while a strategy is running?

Example --> "Not found: Order 1227668080 Ticket 227668080 Offset 1000000000"

All real open trades are "not found" with this message (...offset 1000000000), while the phantom trades are correctly resumed.



The error appears to be related to this part of the zmq4.mqh file (row 109)

// handle tickets that exceed the int range

static ulong TicketOffset = 1;
int ticket32 (ulong Order)
{
ulong Ticket = Order% 1000000000;
if (TicketOffset == 1 && Order> 0)
TicketOffset = Order - Ticket;
// Print ("Order", Order, "Ticket", Ticket, "Offset", TicketOffset);
return (int) Ticket;
}




Thank you
Posted By: Petra

Re: Orders not found - 10/18/21 15:46

I believe the zmq4 file was changed some months ago, check if you have installed the latest zorro and bridge version.

Also check the ticket numbers of the open positions, if they match the error message.
Posted By: dpn

Re: Orders not found - 10/18/21 18:09

Hello Petra,

you are right: I'm not using the latest zmq4 ( cry)

I beg your pardon.

Thank you

Regards.
© 2024 lite-C Forums