Closed Trades

Created at 06 May 2015, 10:25
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
WhiteSage's avatar

WhiteSage

Joined 02.02.2014

Closed Trades
06 May 2015, 10:25


Is there any way to check if a trade is closed manually?

I want to maintain my trades in a list of classes (that handles stoploss, for neatness sake) that hava a reference to the opened position. But I can't delete the entry from the list once the trade is closed without iterating though the list and doing a .Equal().

Can I currently check a Position's state directly to find if it is open or closed?


@WhiteSage
Replies

Spotware
17 Jun 2015, 18:01

Dear Trader,

if a position is in the Positions collection then it is open. Otherwise it is closed. You cannot understand if the Position was closed manually. 


@Spotware