You can't. IB wants to reset TWS at least once per day. What you can do is to set a time at which you are not using it (e.g. when you're asleep).How do I get rid of this thing?
You can't. IB wants to reset TWS at least once per day. What you can do is to set a time at which you are not using it (e.g. when you're asleep).
It seemed to be popping up randomly. I'll reset it to 1 AM again and see what happens. Thanks.

You probably don't want to do this. About 30% of the time the setting magically gets switched to "Log off" from "Restart" and so TWS doesn't restart, just quits. Maybe they are sending me a message.Why not just close your connection and put your trading machine into sleep mode before you go to bed?
This is how IB stays cheap. They have to restart their Java servers/apps so they don't need to find all the memory leaks.