For info in case it helps, I have finally been able to get around the IB gateway daily restart issues by using IBC to manage the gateway restart business, and within Zorro use the tock() function right after the gateway restarts in order to do an API reset and log back in. Seems to be working okay as a workaround...


void tock()
{
if(hour(NOW) == 21 && minute(NOW)>= 50)
{
printf("\n[%s] Daily IB restart. Reconnecting1...", strdate("%y-%m-%d %H:%M:%S.",NOW));
login(4);
login(1);
}
}