Download MetaTrader 5

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

To add comments, please log in or register
Tradeing Trader
569
Tradeing Trader  

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
14785
whroeder1  
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  
AccountInfoInteger(ACCOUNT_LIMIT_ORDERS);
Keith Watford
Moderator
9641
Keith Watford  

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  
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