If I remember correctly there is a hard limit of 100 or 120 orders.
I believe it is broker dependent. IBFX was 1,000 IIRC
https://www.mql5.com/en/forum/108545
https://championship.mql5.com/2012/en/2006
it seems it is indeed.
thanks
Maybe "AccountInfoInteger(ACCOUNT_LIMIT_ORDERS)" can help you.
if Total Order < Account Limit Order, then you can open new order.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
Is it possible to know via a function like MarketInfo or another method the maximum of possible orders before getting the ERR_TRADE_TOO_MANY_ORDERS occurs?
Of course I can count the number of opened positions when the error occurs but I'm wondering if there is a more clean way to catch the correct value?
Thanks