RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



Getting RE to take over position Expand / Collapse
Message
Posted 10/21/2010 14:05:58 Post #12407
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
My pc crashed while I had an open position - and no liveposition.xml file was created. How can I get RE to take over the position again and pick up
the correct order id etc from TWS.
Posted 10/22/2010 09:14:59 Post #12416
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
There isn't another way at this time for us to sync against a broker.

blousetrader (10/21/2010)
My pc crashed while I had an open position - and no liveposition.xml file was created. How can I get RE to take over the position again and pick up
the correct order id etc from TWS.
Posted 10/23/2010 07:36:52 Post #12422
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
Is there a way to find out the correct order id's to I can build the xml file manually?
Posted 10/23/2010 22:01:58 Post #12427
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
Do you mean the order IDs for the profit target/stop loss orders?

You can build your own copy of the TWS plugin (from the source that we provide). When the broker plugin connects to TWS, it requests all open orderds from TWS (client.RequestOpenOrders()). These orders will be processed by the client_OrderStatus method. This method only does something with the order if it is in the openOrders dictionary. The orders which you submitted but aren't in the LiveOpenPositions.xml file won't be in that dictionary. So you can modify the plugin to record the order IDs of the orders that aren't, or just put a breakpoint in your plugin code that fires when the orders that aren't in that dictionary and get them in the debugger.

Thanks,
Daniel
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: billb, young, dplaisted

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 4:54pm

2005-2007 © RightEdge Systems