URGENT: EA Stopped Opening Trades After MT5 Update - SOLVED
A
AlgoKing
1577
0
troubleshooting
PROBLEM SOLVED - Posting solution for others
Issue: EA compiled fine, no errors in log, but stopped opening any trades after MT5 build 3850 update.
What I tried (didn't work):
- Recompiling EA
- Checking AutoTrading button
- Verifying account permissions
- Reinstalling MT5
SOLUTION: The new MT5 build changed how trade requests are validated. Had to update the EA code:
// OLD CODE (broken):
request.type = ORDER_TYPE_BUY;
request.action = TRADE_ACTION_DEAL;
// NEW CODE (working):
request.action = TRADE_ACTION_DEAL;
request.type = ORDER_TYPE_BUY;
request.type_filling = ORDER_FILLING_FOK; // THIS WAS MISSING!
Adding type_filling fixed it! All trades working normally now.
Hope this helps someone else stuck with the same issue.