This is a great topic... We are working on our own broker plugin right now, and of course broker sync is a critical component. I'm posting here to see if anything has changed as of now, Feb 2015.
Has someone implemented the approach described in the very professionally-written document by Roedies? Or perhaps someone has implemented the procedure for modifying the LiveOpenPositions.xml file? If you have experiences and/or opinions to share, I'd be happy to see them. We'll start working on our own implementation soon, and anything the community can share would be helpful. We can share back our own learnings if people are interested.
We are concerned with a few situations:
1) RightEdge occasionally loses contact with the broker (due to network issues or whatnot), so we need to write code to check the broker "heartbeat" and re-connect if it goes quiet. Re-syncing should be done automatically in a sensible way.
2) Sometimes we shut down the platforms during the session, close some positions manually, then restart. We need to handle this type of re-sync as well, probably with user input to update RE as needed.
3) We're running multiple auto-trading platforms which trade the same account. So it's absolutely normal to expect that trades will be made in the account by a platform other than RightEdge, and we need a procedure to make sure things don't get confused.
In each case, we need our RE system to resume managing the open positions that it "owns".
Thanks in advance...