I have trading an EA generated by SQX and I notice the log in MT4 says
"Opening order type BUY with price 1.xxxxxx. Current market prices: 1.yyyyyyyy / 1.zzzzzzzz" in function sqOpenOrder
But the buy order is never placed. This is because this log message appears before a check is made whether the trade should be placed:
Verbose("Opening order type ", OrderTypeToString(orderType)," with price ", price, ". Current market prices: ", ask, " / ", bid); openingOrdersAllowed = openingOrdersAllowed && sqHandleTradingOptions(); if(!openingOrdersAllowed) return(0); // check if live order exists if(sqSelectOrder(magicNumber, symbol, 0, comment) && !allowDuplicateTrades) { Verbose("Order with these parameters already exists, cannot open another one!"); Verbose("----------------------------------"); return(0); }
I would suggest moving the yellow highlighted line to after the green highlighted lines so the the "Opening order ... " message only appears if opening orders is currently allowed.
Otherwise it looks like the EA tried to open and order but for some reason MT4 didn't receive the order open.
Thanks,
Mike