I am testing and EA that I coded for trading EUREX futures.
The EA works fine with the simulator but I am struggling to make it work live with the broker Ampglobal. I discussed with them this issue and they
said that it should be a problem with MT5.
The point is that every time that my EA sends an order it returns a timeout after 3 minutes.
The next is an example of the parameters of one of my sent orders:
request.action = TRADE_ACTION_PENDING;
request.type = ORDER_TYPE_SELL_LIMIT;
request.type_filling = ORDER_FILLING_IOC;
request.sl = 13223.5
request.tp = 13211.5
request.magic = 1;
request.symbol = DDZ19 ;
request.deviation = 0;
request.price = 13220.5 ;
request.comment = "Dummy comment";
I know that the order type 'IOC' is correct because the broker told me that.
Do you think that I am missing something? Anyone sees an error here?
Thank you in advance.
Do you fill in the life time?
No, I didn't.
Right now I have finished to check the valid 'type_time' for the symbol and I updated my EA with the parameter.
We will see if it was the problem.
Thank you for your time.
It is still getting timeouts, for example today the terminal output of the EA gave this:
2019.12.04 14:20:01.216 Trades '667375': sell limit 1.00 DDZ19 at 13138.5 sl: 13141.5 tp: 13129.5
2019.12.04 14:20:01.247 Trades '667375': accepted sell limit 1.00 DDZ19 at 13138.5 sl: 13141.5 tp:
2019.12.04 14:23:01.230 Trades '667375': failed sell limit 1.00 DDZ19 at 13138.5 sl: 13141.5 tp:
13129.5 [Request timeout]