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

 

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.

 
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
 
AccountInfoInteger(ACCOUNT_LIMIT_ORDERS);
 

qjol:

AccountInfoInteger(ACCOUNT_LIMIT_ORDERS);



According to the reference, that applies to pending orders

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

 
it's a typo issue but this is the right function contact service desk to fix it
Reason: