maximum trades per currency - how to code it ?

 

Hello,


how to control number of trades per currency ?

For example, for current chart with running EA (for example EUR/USD), I would like to open maximum 1 trade. How to control number of open trades ?


On this forum I found something about OrdersTotal(). How to use it to control number of open trades for single currency pair for example EUR/USD ?


I need this for MT4.


Thank You in advance for Your support.


Zalezny

Reason: