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
see that the timing will only be different in these situations
It has been discussed several times that MqlTick does not return the tick as is. That there are two tick streams - quote and deal. And that in CopyTicks they are merged sometimes retroactively, because the streams are unsynchronized. And that the timing of MqlTick and CopyTicks may not coincide.
Is it really possible for 10 SEK. not to coincide?
Can 10 SEC. not match?
There is no such thing on Metaquotes-Demo.
No such thing on Metaquotes-Demo.
It's a demo opener, I'll try it on the real thing...
Added
Yeah, it's more fun when it's not real.
not in real life is funnier.
Milliseconds and other data are there.
Milliseconds and other data are available.
For now, I have decided to do the following
The good idea is to simply translate the server (exchange) time
instead of TimeCurrent(), which is taken from the last known quote in Market Watch,
make a function TimeServer(), which simply translates the time of the exchange.
Then the TimeTradeServer() will not be needed.
The two functions will be enough
TimeLocal() and TimeServer()
For now, decided to make it this way
Reminded of TC's behaviour in this thread.
In the picture the output on the graph is TimeTradeServer() function, time runs faster.
If you output TimeCurrent(), it will be the time of the latest quote by the current symbol and therefore also often inconsistency.
How can I get the latest time of the most recent quote from Market Watch to output the time synchronously with the time in Market Watch?
How can I get the latest time of the most recent quote from Market Watch to output the time synchronously with the time in Market Watch?
TimeCurrent.
TimeCurrent.
Yeah, it's not very good either. I use OnTimer to output once per second, I decided to add the message output to the print as well. I can see that the same time passes there twice. Now I only saw in help that TimeCurrent for OnTimer is " time of last quote for any symbol available in Market Watch window, the same time which is shown in header of this window".
I.e. this is what is needed. In theory. But in practice, something is not quite right.