Download MetaTrader 5
To add comments, please log in or register
How to earn at MQL5.community? Come and find out!
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
13610
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
7907
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