Filling Type problem. Error 4756

 

In order to avoid problems related to filling type, i do the following before making a send request:

long filling_type=SymbolInfoInteger(_symbol,SYMBOL_FILLING_MODE);

When doing the request, i pass this filling type:

MqlTradeRequest request={};
...
request.type_filling=(ENUM_ORDER_TYPE_FILLING)filling_type;


Unfortunately, this raises error 4756.

When in disable filling type, order is accepted:

MqlTradeRequest request={};
...
//request.type_filling=(ENUM_ORDER_TYPE_FILLING)filling_type;

So i can live with that, the question is: Will it work on each MT5 ?

Thank you