Single order at a time per Expert

 

Hello everyone, I need an advice on how to program an EA so that it would open only one order at a time. However, I intend to use multiple EA's on different currency pairs, therefore I can't use OrdersTotal() function (because it shows the total number of orders opened in terminal).

 

So I think that I need to find a way to see how many open orders some specific Expert Advisoer has, insted of knowing their total number in trading terminal. 

Can you give me any advice on how to solve this problem? 

 

ViliusP2: Hello everyone, I need an advice on how to program an EA so that it would open only one order at a time. However, I intend to use multiple EA's on different currency pairs, therefore I can't use OrdersTotal() function (because it shows the total number of orders opened in terminal).

So I think that I need to find a way to see how many open orders some specific Expert Advisoer has, insted of knowing their total number in trading terminal.

So you count the specific orders. order accounting - MQL4 forum
 
Thank you for answer
Reason: