How to get the maximum number of open positions in MT5

 

Hi alltogether,

in https://www.mql5.com/en/forum/350188   there is the question of how to get the maximum number of open positions.

In this thread William Roeder writes:

"Margin requirements will be the limiting factor, not the count."


But I'm asking whether this is correct. For example at least one broker (Roboforex) has a limitation in number of open positions (not only in number of pending orders).

On the Roboforex site you can read:


Maximum number of open positions for MT5 accounts 1000
Maximum number of active orders for MT5 accounts 500



My question is: is there any MQL5 function to get the maximum number of open positions?

Thanka for your answer.

Matthias

How to get the maximum number of open positions
How to get the maximum number of open positions
  • 2020.09.01
  • www.mql5.com
How to get the maximum number of open positions of broker's limit, not the number of Lots. I don't know using which function . Thanks in advance...
 

There is none. There is only for max active pending orders.

William is right in the sense that your margin will be the limiting factor, not some broker setting. Besides it is an account limitation. 

 
Enrique Dangeroux:

There is none. There is only for max active pending orders.

William is right in the sense that your margin will be the limiting factor, not some broker setting. Besides it is an account limitation. 

Thanks for your answer, Enrique.