I am having an issue with figuring out synching positions after disconnect. Let’s say my strategy submitted a long order and then after some time it goes down. Once I bring the system up, I need to tell the strategy that I have a live working order.
I am planning to send details of executed orders to a file. On restart, I will read the file, so the question is how can I repopulate iOrder object with the details from the file? So that when the strategy signals an exit, I will be able to close the position.
I have read documentation about various ways to do it via Account and Strategy position synching, but I have a managed account which has sub accounts which would run strategies across multiple charts. The only way for me to know exactly what positions belong to which accounts and charts is to store this info in a file or DB, and then retrieve in restart, but I am not sure how to repopulate iOrder object.
Thanks,
redduke
Comment