Download MetaTrader 5
To add comments, please log in or register
Log in to MQL5.community using OpenID. It is convenient!
ViliusP2
7
ViliusP2 2014.11.21 13:17 

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? 

whroeder1
13602
whroeder1 2014.11.21 14:33  

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
ViliusP2
7
ViliusP2 2014.11.21 15:21  
Thank you for answer
/
To add comments, please log in or register