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:
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.
This is the only solution that worked with my EA.
Você está perdendo oportunidades de negociação:
- Aplicativos de negociação gratuitos
- 8 000+ sinais para cópia
- Notícias econômicas para análise dos mercados financeiros
Registro
Login
Você concorda com a política do site e com os termos de uso
Se você não tem uma conta, por favor registre-se
Just compile that the problem will be solved.
Who can solve, write your experience there