Consistency between SYMBOL_FILLING_* and ORDER_FILLING_* values New comment milad 2024.12.13 22:07 Hello, Wouldn't it be better if the values of SYMBOL_FILLING_* and ORDER_FILLING_* were consistent? Or adding SYMBOL_FILLING_* to the python library and adding integer values on ORDER_FILLING_* SYMBOL_FILLING_*(not exist in Python): SYMBOL_FILLING_FOK 1 SYMBOL_FILLING_IOC 2 SYMBOL_FILLING_BOC 4 ORDER_FILLING_*(Both in Python and MQL5): ORDER_FILLING_FOK 0 ORDER_FILLING_IOC 1 ORDER_FILLING_RETURN 2 ORDER_FILLING_BOC 3 Background: The filling type of a symbol in the terminal (specification) is Fill or Kill, which corresponds to 1 SYMBOL_FILLING_FOK. Since SYMBOL_FILLING_* doesn't exist in Python, I spent hours thinking that the filling type in orders should be ORDER_FILLING_IOC or 1. Of course, such a misunderstanding might be due to my inexperience. Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties www.mql5.com Requests to execute trade operations are formalized as orders. Each order has a variety of properties for reading. Information on them can be... Discussion of article "Ready-made Expert Advisors from the MQL5 Wizard work in MetaTrader 4" returns the execution policy. Errors, bugs, questions New comment
Hello,
Wouldn't it be better if the values of SYMBOL_FILLING_* and ORDER_FILLING_* were consistent?
Or adding SYMBOL_FILLING_* to the python library and adding integer values on ORDER_FILLING_*
SYMBOL_FILLING_*(not exist in Python):
SYMBOL_FILLING_FOK 1
SYMBOL_FILLING_IOC 2
SYMBOL_FILLING_BOC 4
ORDER_FILLING_*(Both in Python and MQL5):
ORDER_FILLING_FOK 0
ORDER_FILLING_IOC 1
ORDER_FILLING_RETURN 2
ORDER_FILLING_BOC 3
Background:
The filling type of a symbol in the terminal (specification) is Fill or Kill, which corresponds to 1 SYMBOL_FILLING_FOK.
Since SYMBOL_FILLING_* doesn't exist in Python, I spent hours thinking that the filling type in orders should be ORDER_FILLING_IOC or 1.
Of course, such a misunderstanding might be due to my inexperience.