TWS/Gateway restart & order desyncs
Posted: Mon Apr 04, 2022 6:36 pm
TWS and IB Gateway need to restart on a daily basis. This restart can take around 10-20 seconds.
If a trade has been opened during this restart moment, the trade will not be copied to IB, causing a desync.
1. How do you fix/prevent this?
I watched your tutorial about auto restart feature of TWS: https://www.youtube.com/watch?v=uZZL0fmp7FU
The option presented in the video is not available in my version of the Order Copier?
Regarding desyncs in general; what should a person do when a desync occurs?
2. Is the trade copier able to fix desyncs automatically?
Re-initializing the ib_order_copy EA in MT4 seems to work, but this is a manual thing.
An interesting situation happened last week. Trade copier had closed it's positions, but did not fully close 1 position, still 1 quantity was left:
3. Seems something went wrong with the Order Copier's calculation of position scaling?
I "fixed" this by manually re-initializing the ib_order_copy EA in MT4. Not favorable of course.
Hopefully there is an option to keep in sync and properly scale positions.
If a trade has been opened during this restart moment, the trade will not be copied to IB, causing a desync.
1. How do you fix/prevent this?
I watched your tutorial about auto restart feature of TWS: https://www.youtube.com/watch?v=uZZL0fmp7FU
The option presented in the video is not available in my version of the Order Copier?
Regarding desyncs in general; what should a person do when a desync occurs?
2. Is the trade copier able to fix desyncs automatically?
Re-initializing the ib_order_copy EA in MT4 seems to work, but this is a manual thing.
An interesting situation happened last week. Trade copier had closed it's positions, but did not fully close 1 position, still 1 quantity was left:
3. Seems something went wrong with the Order Copier's calculation of position scaling?
I "fixed" this by manually re-initializing the ib_order_copy EA in MT4. Not favorable of course.
Hopefully there is an option to keep in sync and properly scale positions.