formula to limit the number of pending orders

Created at 05 Apr 2013, 18:12
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!
TR

tradermatrix

Joined 24.07.2012

formula to limit the number of pending orders
05 Apr 2013, 18:12


hello
I want to build a scalper dynamic.
I want a formula to limit the number of pending orders.
eg
this formula limits the number of positions:

if(Account .Positions.Count < 2)

 

  can you give me a formula to limit the number of pending orders.


cordially

 

 

 

 

@tradermatrix
Replies

lec0456
06 Apr 2013, 05:11

Yup, its almost the same:

if(Account.PendingOrders.Count>2)




@lec0456

tradermatrix
07 Apr 2013, 12:21

RE:
lec0456 said:

Yup, its almost the same:

if(Account.PendingOrders.Count>2)



merçi beaucoup.

if(Account.PendingOrders.Count < 2)

bonne chance 

cordialement


@tradermatrix