Mysterious EA execution! Please advise!

 

I have a "BUY ONLY" EA attached to a EURUSD chart and a "SELL ONLY" EA attached to a USDCHF chart. At 0200H, they were supposed to execute at the same time. This is what happens!


2009.09.03 02:03:26 Short UC EA USDCHF,H4: open #xxxxxxx sell 0.78 USDCHF at 1.0606 sl: 1.0740 ok

2009.09.03 02:03:23 Long EU EA EURUSD,H4: removed

2009.09.03 02:03:23 Long EU EA EURUSD,H4: uninit reason 1

2009.09.03 02:00:12 Long EU EA EURUSD,H4: open #xxxxxxx sell (instead of buy) 0.78 USDCHF at 1.0601 sl: 1.0740 ok


Except for the ticket number, the above is exactly what is shown in the "experts" tab.


AT 02:00:12, the "BUY ONLY" EA on the EURUSD chart EXECUTE A SELL FOR USDCHF!!!!!

The "SELL ONLY" EA on the USDCHF chart does nothing!!...until I remove the "BUY ONLY" EA from the EURUSD chart at 02:03:23.

Only then does the "SELL ONLY" EA on the USDCHF chart executes the trade.


The partial code for the "BUY ONLY" EA is:

If (buy conditions met)

{

int ticket = 0;

while ((ticket<=0)) {

while (!IsTradeAllowed() || IsTradeContextBusy()) Sleep(5000);

RefreshRates();

ticket = OrderSend(Symbol(),OP_BUY, LotSize,Ask,Slippage,iClose(NULL,0,1)- Volatility,0,"EU Long",magicnumber,0,Blue);

}

}


The partial code for the "SELL ONLY" EA is:

If (sell conditions met)

{

int ticket = 0;

while ((ticket<=0)) {

while (!IsTradeAllowed() || IsTradeContextBusy()) Sleep(5000);

RefreshRates();

ticket = OrderSend(Symbol(),OP_SELL,LotSize,Bid,Slippage,iClose(NULL,0,1)+ Volatility,0,"UC short",magicnumber,0,Blue);

}

}



The EAs had worked perfectly in the past. Kindly advise what is wrong.... Thanks!

Reason: