
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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,