Anybody know how to fix a failed [Common error]?
My EA did a sell trade which is successfull previously and now when it tries to place a sell trade again, it has a failed [Common error]. No problem with the buy order.
I have search in the metaeditor documentation and this forum but it doesnt do much help.
OrderSend(Symbol(), OP_SELL, LotSize(), Bid, 3, 0, 0, GetCommentForOrderSellTO(), MagicSellTO, 0, Red);
Is it because of the slippage? If it is, it should be reqoute error and not common error.
The broker im using is fxpro. Anybody?
1- check if arguments are ok
string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)
2 - see eventual problems in arguments' values :
int ticket_sell = OrderSend(...);
Print(" lotsize=",LotSize(), " Comment=", GetCommentForOrderSellTO(), " magic_number=", MagicSellTO);
You wanna like, share what you learned?
I am seeing common errors come in batches on an EA that has run for months successfully.
I've only seen it when there is a connection failure before the send. Log it, return, wait for the next tick, retry.