I am reaching out in desperation after trying everything I can think of...
I am suddenly receiving "Invalid Fill Type" messages in my MT5 EA's which have previously been working. The only thing that has changed is that recently had an auto-update of the MT5 platform. I have run this across multiple symbols and all return the same result. Code snip and log entries below.
Any assist very much appreciated...
#include <Trade\Trade.mqh>
CTrade trade
Context: position has been opened but a reversal condition has been correctly identified.
Code snippet at close logic:
Print("Ticket: ",position.ticket);
if(!trade.PositionClose(position.ticket, 5)) PrintFormat("OrderSend error %d",GetLastError());
else {
.. some code
}
Selected log entries with commentary by me:
>>>> Indicators align - sell condition identified <<<<<<
CS 0 15:00:36.153 FIBVWAP3 (AUDUSD,M2) 2024.01.02 03:26:00 dss: SELL hull: SELL
.... place order....
CS 0 15:00:36.153 FIBVWAP3 (AUDUSD,M2) 2024.01.02 03:26:00 Volume: 0.25
CS 0 15:00:36.153 Trade 2024.01.02 03:26:00 sell stop 0.25 AUDUSD at 0.68184 sl: 20.68184 (0.68185 / 0.68199 / 0.68185)
CS 0 15:00:36.156 FIBVWAP3 (AUDUSD,M2) 2024.01.02 03:26:00 CTrade::OrderSend: sell stop 0.25 AUDUSD at 0.68184 sl: 20.68184 [done]
>>>>> order triggered .....
CS 0 15:00:36.158 Trade 2024.01.02 03:26:01 order [#2 sell stop 0.25 AUDUSD at 0.68184] triggered
CS 0 15:00:36.158 Trades 2024.01.02 03:26:01 deal #2 sell 0.25 AUDUSD at 0.68184 done (based on order #2)
CS 0 15:00:36.158 Trade 2024.01.02 03:26:01 deal performed [#2 sell 0.25 AUDUSD at 0.68184]
CS 0 15:00:36.158 Trade 2024.01.02 03:26:01 order performed sell 0.25 at 0.68184 [#2 sell stop 0.25 AUDUSD at 0.68184]
..... reversal identfied .....
CS 0 15:00:56.703 FIBVWAP3 (AUDUSD,M2) 2024.01.02 03:48:00 dss: SELL hull: BUY
..... check we have the correct position.....
CS 0 15:00:56.703 FIBVWAP3 (AUDUSD,M2) 2024.01.02 03:48:00 Ticket: 2
.... psoition close requested....
CS 0 15:01:30.716 FIBVWAP3 (AUDUSD,M2) 2024.01.02 03:48:00 OrderSend error 4753 <<<----------------------ERROR
I am suddenly receiving "Invalid Fill Type" messages in my MT5 EA's which have previously been working. The only thing that has changed is that recently had an auto-update of the MT5 platform. I have run this across multiple symbols and all return the same result. Code snip and log entries below.
Any assist very much appreciated...
#include <Trade\Trade.mqh>
CTrade trade
Context: position has been opened but a reversal condition has been correctly identified.
Code snippet at close logic:
Print("Ticket: ",position.ticket);
if(!trade.PositionClose(position.ticket, 5)) PrintFormat("OrderSend error %d",GetLastError());
else {
.. some code
}
Selected log entries with commentary by me:
>>>> Indicators align - sell condition identified <<<<<<
CS 0 15:00:36.153 FIBVWAP3 (AUDUSD,M2) 2024.01.02 03:26:00 dss: SELL hull: SELL
.... place order....
CS 0 15:00:36.153 FIBVWAP3 (AUDUSD,M2) 2024.01.02 03:26:00 Volume: 0.25
CS 0 15:00:36.153 Trade 2024.01.02 03:26:00 sell stop 0.25 AUDUSD at 0.68184 sl: 20.68184 (0.68185 / 0.68199 / 0.68185)
CS 0 15:00:36.156 FIBVWAP3 (AUDUSD,M2) 2024.01.02 03:26:00 CTrade::OrderSend: sell stop 0.25 AUDUSD at 0.68184 sl: 20.68184 [done]
>>>>> order triggered .....
CS 0 15:00:36.158 Trade 2024.01.02 03:26:01 order [#2 sell stop 0.25 AUDUSD at 0.68184] triggered
CS 0 15:00:36.158 Trades 2024.01.02 03:26:01 deal #2 sell 0.25 AUDUSD at 0.68184 done (based on order #2)
CS 0 15:00:36.158 Trade 2024.01.02 03:26:01 deal performed [#2 sell 0.25 AUDUSD at 0.68184]
CS 0 15:00:36.158 Trade 2024.01.02 03:26:01 order performed sell 0.25 at 0.68184 [#2 sell stop 0.25 AUDUSD at 0.68184]
..... reversal identfied .....
CS 0 15:00:56.703 FIBVWAP3 (AUDUSD,M2) 2024.01.02 03:48:00 dss: SELL hull: BUY
..... check we have the correct position.....
CS 0 15:00:56.703 FIBVWAP3 (AUDUSD,M2) 2024.01.02 03:48:00 Ticket: 2
.... psoition close requested....
CS 0 15:01:30.716 FIBVWAP3 (AUDUSD,M2) 2024.01.02 03:48:00 OrderSend error 4753 <<<----------------------ERROR
All that your hand finds to do, do with your very power...