EA order placing-two accounts-same broker

 

Hi MQL5 users,

I have two different MT5 trading accounts with the same broker and while running an EA on account1 only, the same EA also appears on account2 and open positions there too,
though that EA is only allowed to trade on account1. The EA is tied to account1 based on its account number and so should not trade on unmatched account2.

Any suggestion would be much appreciated.

Thanks.

 

The terminal only connects to one account at a time. The EA can only trade on the connected account.

You have two terminals trading (two on your machine or machine and VPS), or are switching accounts periodically.

 
William Roeder:

The terminal only connects to one account at a time. The EA can only trade on the connected account.

You have two terminals trading (two on your machine or machine and VPS), or are switching accounts periodically.

I am using same PC, and switching between accounts periodically (as you guessed). Even then, due to unmatched account number, EA should not trade.

-------

Error in authentication code - fixed - sorted!