It seems my strategies are regularly getting out of sync, and I cannot figure out why.
I'm using Rithmic Broker for this account, it it continues to be NT that is out of sync. In the attachment, its pretty easy to see: I buy 2 contracts of SIL, and then I sold 2 contracts of SIL. Rithmic shows this, but NT8 fails to track the orders. Even stranger, it says i'm now 2L instead of 1L so something is way off.
This is becoming a gamebreaking bug for me, because I cant trust the algo to maintain the correct state, and while I can check for sync problems, there's no way to resolve it without a manual restart. I'm using NT8 under the assumption that I can let it run and it should maintain at least the right open order count, while i sleep, while i'm at work - on my VPS, not needing to babysit it. Flatten is not an option because I don't want to continually reboot this.
- How do I avoid this altogether?
- How do i resolve it in code without restarting?
- Why does this happen?

Comment