Download MetaTrader 5

How to get value for maximal open orders allowed in the MT4 terminal

To add comments, please log in or register
Write articles and earn money. We pay 200 USD for them!
Tradeing Trader
556
Tradeing Trader 2014.02.18 14:49 

Hello,

i dont find a code for how to get the maximal allowed open orders amount for the MT4 terminal that i use.

I want to let my EA stop trying to open new orders when the maximal amount of open orders is reach.

whroeder1
14470
whroeder1 2014.02.18 15:14  
Broker dependent (some allow 100, some 1000). There is was no MarketInfo, you had to stop when OrderSend returns error ERR_TRADE_TOO_MANY_ORDERS
qjol
3243
qjol 2014.02.18 15:14  
AccountInfoInteger(ACCOUNT_LIMIT_ORDERS);
Keith Watford
Moderator
9599
Keith Watford 2014.02.18 18:10  

qjol:

AccountInfoInteger(ACCOUNT_LIMIT_ORDERS);



According to the reference, that applies to pending orders

"Maximum allowed number of active pending orders (0-unlimited)"

qjol
3243
qjol 2014.02.18 18:23  
it's a typo issue but this is the right function contact service desk to fix it
To add comments, please log in or register