Using a magic number to limit maximum concurrent trades

 

Hi all,


I have 3 separate EAs that I have purchased from the market. They all trade EURUSD H1.

Each EA has a rule that it will only open 1 trade at a time. Therefore, if the Magic Numbers are unique, I can have a maximum of 3 trades open at a time.

If I change the Magic Number to the same, will they all recognize that a trade is open, and therefore I can have a maximum of 1 trade open at a time?


Many thanks.

 

It depends on how the EA is coded.

You can try it and see.

Also be aware that some conditions may cause an EA to close any trades with the same magic number, so it may be possible that 1 EA opens a trade and another EA immediately closes it.

 
Keith Watford:

It depends on how the EA is coded.

You can try it and see.

Also be aware that some conditions may cause an EA to close any trades with the same magic number, so it may be possible that 1 EA opens a trade and another EA immediately closes it.

I know that they don't have any "close early" features, all trades either end with SL or TP. I also know that if a new trade signal is detected, it doesn't close any active trades. Under these assumptions, I think this should work!

Reason: