Long story short - the positions / account / strategies windows are not updating. The problem seems to happen after NT is left connected to IB overnight. NinjaScript strategies are still behaving as expected, but not being able to view open positions and risk via the positions / account / strategies tab is a major issue.
If it might be the cause of the problem, I'm using an FA (advisor account).
So this is the anatomy of a trade as seen from the log window. NinjaScript submits an order, then you get various order/execution updates. This is followed by various position updates, and finally a mail is sent (due to my code):
The next day, just after the market open I see the following along with some pop-up windows. I like to think it isn't my strategies because I'm running the exact thing on another VM with an IB paper account and that showed no errors. Could these be related to IB account/position data and be the cause of the problem?
After that, for all the trades placed later in the day, you see the same logging as in the first screenshot, but position updates are missing!
Following that, the position window is not updated (I verified this by comparing the quantity displayed in the NT positions tab vs. the actual IB account). I'm pretty sure the account window is not updated either.
Just as an afterthought - near midnight, IB's maintenance causes several brief disconnections (usually just seconds long) and NT reconnects. This is to be expected as stated here (see "Server Reset Times"): https://www.interactivebrokers.com/en/index.php?f=2225
Could this be part of the problem?
Comment