MT5 (UNSUPPORTED FILLING MODE)

 
For personnel who are having problems filling out order in MT5 (UNSUPPORTED FILLING MODE) I was able to solve with the following changes within the CLASS TRADE.

Swap ORDER_FILLING_FOK by ORDER_FILLING_IOC at the beginning of trade.mqh

In the trade.PositionOpen and trade.PositionClose functions append in all the following line after the DEVIATION

  "m_request.type_filling = (ORDER_FILLING_IOC);"

Just compile that the problem will be solved.


Who can solve, write your experience there

 
Para o pessoal que está com problemas no preenchimento de ordem no MT5 (UNSUPPORTED FILLING MODE) consegui resolver com as seguintes alterações dentro da CLASSE TRADE.

Trocar ORDER_FILLING_FOK por ORDER_FILLING_IOC, no início do trade.mqh

Nas funções trade.PositionOpen e trade.PositionClose acrescentar em todos  a seguinte linha após o DEVIATION

 "m_request.type_filling = (ORDER_FILLING_IOC);" 

Basta compilar que o problema estará resolvido.



Quem conseguir resolver, escreve ai sua experiência

 
Joao Luiz Sa Marchioro:
For personnel who are having problems filling out order in MT5 (UNSUPPORTED FILLING MODE) I was able to solve with the following changes within the CLASS TRADE.

Swap ORDER_FILLING_FOK by ORDER_FILLING_IOC at the beginning of trade.mqh

In the trade.PositionOpen and trade.PositionClose functions append in all the following line after the DEVIATION

  "m_request.type_filling = (ORDER_FILLING_IOC);"

Just compile that the problem will be solved.


Who can solve, write your experience there


This is the only solution that worked with my EA.

 
Andre Tavares:

This is the only solution that worked with my EA.

exactly. I consulted many programmers, but none could help me. I solved this problem by sheer luck. Now it's there for whoever needs it.
Razão: