Do you fill in the life time?
m_request.type_time m_request.expiration
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: 13129.5
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]
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello everyone,
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.volume =1
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.