MT4 EA Open Trades

 

Hello,


I wanted my EA to check for the number of positions that it has open.

Each EA I write has a different majic number, I wanted to check the number of trades open for tht specific EA only. I would like to restrict say one EA to two open positions but still ollow others to open trades.


Could anyone tell me how to do this please?


Sorry for what is hopefully a very easy question, but I am relevatively new to this.


NIck

 
herbertn:

Hello,


I wanted my EA to check for the number of positions that it has open.

Each EA I write has a different majic number, I wanted to check the number of trades open for tht specific EA only. I would like to restrict say one EA to two open positions but still ollow others to open trades.


Could anyone tell me how to do this please?


Sorry for what is hopefully a very easy question, but I am relevatively new to this.


NIck

If you post your code you will certainly receive help.
Reason: