Hello Peter Zander,
At the start-up your system will be synchronized with the server. The Orders table will be refreshed automatically and updated to the server state.
Please find the O2GTableStatus for more details (
http://www.fxcorporate.com/help/CPlusPl ... tatus.html - how to get the status of the table).
If you would like to track which exactly orders have been executed/changed/removed while your system was not running, you can use the following solutions:
1) You can use the Get Last Order Update command (
http://www.fxcorporate.com/help/DotNet/ ... pdate.html) to get the up-to-date order information from the server. You can find out whether the order was executed while your system was not running.
2) In case of the Order was the Open Order. You should find the trade position which was opened by this order. IO2GTradeRow.getOpenOrderID will contain the open Order ID. But note, that on the real market one Open Order can open more than one trade position (partial filling).
3) In case of the Order was the Close Order (for example Stop, Limit, ELS). You should find the trade position which was closed by this order. IO2GClosedTradeRow.getCloseOrderID will contain the Close Order ID. But note that on the real market the quantity of closed positions (closed by one Close Order) may be more than one (partial filling).
4) In case of positions were closed more than one day ago, you can get the CAS report for your account using GetReportUrl (C:\Program Files\Candleworks\ForexConnectAPIx64\samples\cs\dotnet40\SimpleSamples\NonTableManagerSamples\GetReportUrl\ to see how to request and get a CAS report). The cell close_order_id will contain the Order ID which close the position.