RightEdge Forums
Main
Home
Search
Members
Calendar
Who's On
Welcome Guest
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
»
General
»
Community Support
»
Getting RE to take over position
Getting RE to take over position
Rate Topic
Display Mode
Topic Options
Message
Posted 10/21/2010 14:05:58
Post #12407
blousetrader
blousetrader
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
billb
billb
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
blousetrader
blousetrader
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
dplaisted
dplaisted
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
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators:
billb
,
young
,
dplaisted
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
may
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
may
post and upload images.
Forum Jump...
----------------
Forum Home
Search
Members List
Calendar
Who's Online
----------------
RightEdge Announcements
|-- RightEdge Announcements
General
|-- General Discussion
|-- Community Support
|-- Suggestion Box
|-- Plugin Development
Trading
|-- Trading Systems
|---- Uploaded Trading Systems
|-- Technical Indicators
|-- Order Execution
|-- Trading Vehicles
Programming and Software Development
|-- Programming Questions
All times are GMT -5:00, Time now is 4:54pm
2005-2007 © RightEdge Systems