ORDER_FILLING_AON - A trade can only be executed in the volume specified and at a price that is equal to or better than that specified in the order. If sufficient volume of offers for the order symbol is not available in the market at the moment, the order will not be executed.
ORDER_FILLING_CANCEL - An agreement to execute a trade at the maximum volume available on the market within the volume specified in the order, and at a price equal to or better than that specified in the order. In this case no additional orders are placed for the missing volume.
Since we can have two execution policies for a market order, ORDER_FILLING_FOK and ORDER_FILLING_IOC, how appropriate would it be to fill in the request.type_filling field in a trade request as follows:
The compiler only generates the warning: implicit enum conversion. Is that enough for the request to be processed correctly regardless of the execution policy set by the broker/dealer?
Yedelkin: The compiler only generates the warning: implicit enum conversion. Is that enough for the request to be processed correctly regardless of the execution policy set by the broker/dealer?
It's like "black coffee and milk" - two mutually exclusive policies. Here are more links in English:
A type of time-in-force designation used in securities trading that instructs a brokerage to execute a transaction immediately and completely or not at all. This type of order is most likely to be used by active traders and is usually for a large quantity of stock. The order must be filled in its entirety or canceled (killed). The purpose of a...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Accounting for orders in MT5 is a whole science:Handling trade events in the Expert Advisor using the OnTrade() function
No pause will save you from reopening, a situation can always occur, in which the order will take 1 second longer to execute.
ps: And do not forget about magic.
The enabler?
No amount of science will save you from the machinations of global meth
of global meta-phobia.
Trying
Unfortunately, MT5 has many more traps than MT4.
The problem with the delayed data update after successful execution ofOrderSend() is solved in the very last line of the following example:
Update function:
Here you go, it should work.
In this great code - everything worked fine,
but there has been a change in the programming language.
mql5 has been removed.
ORDER_FILLING_AON;And now the compilation does not work in this place.
Can you tell me how to fill in the structure correctly now?
In this wonderful code - everything worked fine,
but there was a change in the programming language.
mql5 has been removed
Thanks a lot, Rosh!
Although. I've changed - to "take what's available" as I have an aggressive flip that's unlikely to happen.
Really curious, what tools did the developers mean by the primary acronyms in Russian or imported transcription?
Just out of curiosity, how verbally were the 2 variants implied ?
Just out of curiosity, how were the 2 options verbally implied ?
Since we can have two execution policies for a market order, ORDER_FILLING_FOK and ORDER_FILLING_IOC, how appropriate would it be to fill in the request.type_filling field in a trade request as follows:
The compiler only generates the warning: implicit enum conversion. Is that enough for the request to be processed correctly regardless of the execution policy set by the broker/dealer?The compiler only generates the warning: implicit enum conversion. Is that enough for the request to be processed correctly regardless of the execution policy set by the broker/dealer?
It's like "black coffee and milk" - two mutually exclusive policies. Here are more links in English:
Since we can have two execution policies for a market order, ORDER_FILLING_FOK and ORDER_FILLING_IOC,