[R-SIG-Finance] IBrokers Risk Management Backend Solution Help with twsPortfolioValue

JohnnyPaper brad.saterfiel at gmail.com
Sun Feb 10 20:09:06 CET 2013


Hi Gabe,

Thanks for the fast reply...I will definitely get that under control after
the forex opens up here in a bit.  Should this be the type of fix that would
allow me to continuously open and close the connection to IB so that I can
1) Open the connection, 2) Get a snapshot, 3) Close the connection ,4)Pause
for a couple of seconds, reopen the connection 5)Do anlysis and close orders
if need be, and 6)repeat?  As long as I am opening and closing the
connection that should be ok right? All I am trying to do is maintain a
portfolio monitor on my positions and send in market orders to close
positions once thresholds are hit one way or the other.  I'm also trying to
work out in my head how this will function in a while loop.  There seems
like there should be an easy fix to all of this.  However, I wasn't able to
see any other mentions of this type of order management or examples
anywhere.

Kind Regards,

Brad



--
View this message in context: http://r.789695.n4.nabble.com/IBrokers-Risk-Management-Backend-Solution-Help-with-twsPortfolioValue-tp4658101p4658106.html
Sent from the Rmetrics mailing list archive at Nabble.com.



More information about the R-SIG-Finance mailing list