Is it possible to have a strategy or the system detect when a strategy is out of sync? I have a lot of overfill prevention and overfill fixing coded in, but sometimes it still happens and I end up with a strategy that is still running but out of sync with the account position. I am running hundreds of strategies overall, but only 1 per instrument. Is there a way to detect that the strategy is out of sync and then restart that strategy? If I can restart it, then it will assume the account position and resume as I want it to. Failing that, can an out of sync strategy close the account position for that instrument and terminate the strategy?
Thank you!
Comment