Skip to main content

How to check if Client EA will try to close any open trades on startup

Here’s how you can check if Client EA will try to close any open trades on startup:

  1. Set the same MagicNumber value as used by previous Client EA.
  2. Set AcceptNewTradeSignals=FALSE
  3. Set AcceptTradeModifySignals=FALSE
  4. Set AcceptTradeCloseSignals=TRUE
  5. In the COMMON tab deselect “Allow live trading“. This will take away permissions for the Client EA to make any trading operations, even if Client EA has AcceptTradeCloseSignals=TRUE
  6. Click OK to load the Client EA.
  7. If Client EA fails to load and gives an error about “Allow live trading” being disabled, it means it is trying to close open trades. At this stage you need to find why Client EA cannot match open trades on the client account with the trades on the master account. Check MagicNumber.
  8. If Client EA loads fine and “server read” counter is growing, it means Client EA is not trying to close any open trades. At this stage it is safe to run Client EA with your desired settings, but still the same MagicNumber value as used by previous Client EA.

 

Rimantas Petrauskas

Rimantas Petrauskas is one of the most well-known programmers among Forex traders. Having more than 20+ years of programming experience, he created two of the most popular trade copiers for the MetaTrader 4 platform—the Signal Magician and Local Trade Copier. Rimantas is also a best-selling author on Amazon after his book "How to Start Your Own Forex Signals Service" hit #4 in the Forex category during the first launch week.

2 Comments

Leave a Reply