RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



How to get all the positions in IB account Expand / Collapse
Message
Posted 7/11/2010 12:47:26 Post #11932
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
I am trying to write a system whose purpose is to close my IB positions at a specified period of time.

Here is the code I have tried in Startup of MySymbolScript

BrokerAccountState state = new BrokerAccountState();

foreach(BrokerPosition p in state.Positions)
{
OutputMessage(p.Symbol.Name);
}



But state.Positions is always 0.

I have verified that I am running in LIVE mode. Can someone help?

Thanks
Posted 7/12/2010 13:50:56 Post #11944
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
If you haven't opened these positions with RightEdge, RightEdge doesn't know about them. We do not synch up with positions that weren't established by us. There are some features in the works to provide some control where you can associate positions and manage them as if they were opened by RightEdge.
« 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:39pm

2005-2007 © RightEdge Systems