Volcanbleu:
What I would like to know, is WHEN EXACTLY the order is sent to the server when there are other calculations or orders after the order in the code within the start/ontick function.
As whroeder1 said, once the logic in code is at the line of OrdetSend, the order is sent, the script waits for the response from the server, then it receives the ticket number in case of success or a negative number in case of error, from here the code will continue to next line(s). It doesn't take care of OnTick, it only depends on where OrderSend is, whether in OnTimer, OnTick.
What I would like to know, is WHEN EXACTLY the order is sent to the server when there are other calculations or orders after the order in the code within the start/ontick function.
use GetTickCount()
Volcanbleu:
Thanks very much Mohammad. This is the answer I wanted to have..
You're welcome.
Thanks very much Mohammad. This is the answer I wanted to have..
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
Hi guys,
On regular OnTick event, I would like to know exactly WHEN the OrderSent function is done(sent) when there are other commands after it, like print or calculations. Is the Order sent right at the line processed in the code, or does MT4 ait until the Ontick code is finished?
Thanks for your help..