Please anyone to Help my Mt5 is displaying unsupported filling Mode...What is the proble
The error "Unsupported Filling Mode" depends on your broker. It may be that your order type is not supported or the stop/tp/lot are too small.
The error "Unsupported Filling Mode" depends on your broker. It may be that your order type is not supported or the stop/tp/lot are too small.
The error "Unsupported Filling Mode" depends on your broker. It may be that your order type is not supported or the stop/tp/lot are too
You have to talk to the developer of the robot to check the types of the orders being sent and the limitations of the broker.
Old question but for anyone that has this issue, the answer could be: type_filling must be mt5.SYMBOL_FILLING_IOC, that works for me.
https://stackoverflow.com/a/76339333/2525808
- 2023.03.27
- M.Rafi Biglari M.Rafi Biglari 13 1 1 silver badge 4 4 bronze badges
- stackoverflow.com
You can make a dropdown to choose between different filling modes, and then you can choose the filling mode that your broker uses
at the top of your script make an ENUM for the filling modes:
enum ENUM_ORDER_FILLING { Fire_or_kill = 0, Immediate_or_cancel = 1, Order_filling_return = 2 };
make the global input variable and give it a default filling mode:
input ENUM_ORDER_FILLING OrderFilling = 1; // Choose order filling type
where you are making your trade, define the type_filling:
if(OrderFilling == 0) request.type_filling = ORDER_FILLING_FOK; else if(OrderFilling == 1) request.type_filling = ORDER_FILLING_IOC; else if(OrderFilling == 2) request.type_filling = ORDER_FILLING_RETURN;
Old question but for anyone that has this issue, the answer could be: type_filling must be mt5.SYMBOL_FILLING_IOC, that works for me.
How would I implement this if I am not converting from Python but am using only mql. I am not much of a coder i created my EA using logic trees that converts to mql so any help is appreciated. i have the source code and am a great comprehender. thanks
How would I implement this if I am not converting from Python but am using only mql. I am not much of a coder i created my EA using logic trees that converts to mql so any help is appreciated. i have the source code and am a great comprehender. thanks
Have a look at the source code for the Standard Library implementation: "<Data Folder>\MQL5\Include\Trade\Trade.mqh"
And also read:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use