Access to pending orders

Created at 29 May 2018, 23:43
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!
DelFonseca's avatar

DelFonseca

Joined 25.06.2017

Access to pending orders
29 May 2018, 23:43


Good night,

how can i access to pending orders to create return to "Max pending orders", something like this opened positions return:
 

            var myPositions = Positions.FindAll(Label, Symbol);

            if (myPositions.Length > 0)
            {
                return;
            }

Thank you so much!


@DelFonseca
Replies

PanagiotisCharalampous
30 May 2018, 11:02

Hi DelTrader,

You can use PendingOrders property.

Best Regards,

Panagiotis


@PanagiotisCharalampous

DelFonseca
30 May 2018, 22:51

RE:

Panagiotis Charalampous said:

Hi DelTrader,

You can use PendingOrders property.

Best Regards,

Panagiotis

Thank you so much !!!!
Solved:
 

            var TotalPendingOrders = PendingOrders.Count;

            if (TotalPendingOrders > 0)
            {
                return;
            }

 


@DelFonseca