Limit open trades in MT4

 

Hi all,


Anyone knows a way to globally limit the number of open trades in MT4?

In case I already have one trade open I don't want another trade to be opened. Running several scalping EAs that will lower my risk by avoiding multiple trades, while I can take a higher risk per trade.


Just to mention that the EAs are commercial ones so I cannot change the source code to perform this.


Regards, Daniel

 

Yes, it can be achieved. But only by amendment of the source code.

There are a few different ways to achieve it, by adding to global or file-based counters etc, but the most reliable method is to have each EA read through the trade pool counting orders before deciding whether it can trade.

If you do get hold of the source code, then a search on the forum will reveal many examples of this question being answered in code.


CB

Reason: