I am slowly getting ready to go live with a small account with IB, but I keep encountering the same problem. Every night, the gateway program closes. I have tried to find a setting to stop this, but have been unable to locate the problem. I know this is an issue with TWS, which is why I have been doing everything through the gateway. Has anyone found a solution to keep the gateway from shutting down at night? This is problem for futures strategies that need to work through the night.