Checking if a position is open?

Created at 12 Dec 2018, 03:47
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!
AR

arron3@gmail.com

Joined 12.12.2018

Checking if a position is open?
12 Dec 2018, 03:47


Hi all, new to this...

basically, I am just trying to figure out, how to code something like this:

if a position is open { }

basically just checking if a position is open (so i can take certain actions) and other actions if a position is not yet open...

thanks!


@arron3@gmail.com
Replies

PanagiotisCharalampous
12 Dec 2018, 11:07

Hi arron3@gmail.com,

Thanks for posting in our forum. You can find all open positions in Positions collection and all pending orders in PendingOrders collection.

Best Regards,

Panagiotis


@PanagiotisCharalampous