I am developing strategies for algo trading with no human involved after all was set properly. I am using IB as my broker and also for price quotes (for now any how). My problem is that Interactive Brokers IB-Gatway can either logout at a specific hour, meaning i need some script or manual intervention in orderto log in again or it can shutdown itself and restart (fast process less then 30 `sec i think) itself again once every day.
I noticed that if i use the IB-Gateway restart option, NT8 will popup panic error on the screen and stop working even after IB-Gateway become operational again after lets say 20 Sec.
With Logout option NT8 is more "nice" It will give a yellow indication that there is a problem with the conenction and after a dditional short time it will issue panic as well and stop working (logical since no connection to IB).
I am wondering if there is some option to lets say code inside my startegy that on specific hour NT8 will "freez" for lets say 20 Sec and continue from there as if nothing happens and it was a short connection problem
If not then how can i make my software code detect the panic, close the panic, read back the account live position status and continue from there?
Comment