Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 03:22:19 +0000



Post From: Client Side MIT orders TWS API

[2024-07-07 21:37:18]
enemyspy - Posts: 306
Sometimes I will have long standing client side MIT orders in place which I leave unattended and then head to the office where I don't look at the markets all day.

TWS will do it's daily forced shutdown, so the client side order fills are disconnected from TWS which I am aware is a weakness of doing the above and is fine for me.

On occasion I will leave these orders resting for a long time, the markets will blow past my client side MIT order outside RTH while IB is still disconnected.

Then I can't cancel it when I finally get home while I am still disconnected so that it doesn't fill. However the moment I reconnect TWS they will instantly fill, so I try to cancel the order and it will not let me cancel it.

The only work around is to either a. stay disconnected or b. turn on trade sim mode until the price is back in a circumstance where I want to fill the order. Cancelling does not work while it is disconnected.

Last example would have been over a month ago. I was trying to find the example of it in the trade activity log but can't find it. I had also edited and added certain records to force corrections to position data. I can provide this log if it is needed, however like I said I did edit some records in it both to try and force order cancellation as well as to correct position sizes and certain fill prices.
Date Time Of Last Edit: 2024-07-07 21:47:51