RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



Position closed event Expand / Collapse
Message
Posted 8/4/2010 22:56:39 Post #12039
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Is there an event that's triggered when a position is closed? I basically want to have a function that's called when a position is closed.
Posted 8/5/2010 22:54:20 Post #12042
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
The OrderFilled method in your symbol script will be called whenever an order is filled, and if the trade.TradeType is TradeType.ClosePosition then the position was closed.

Although if the close order was only partially filled the position might not be entirely closed. You can check the position.State to see if it is.

Thanks,
Daniel
Posted 8/9/2010 22:28:44 Post #12054
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
That's helpful. Thank you!
« 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

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 6:58pm

2005-2007 © RightEdge Systems