Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1100
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
I havea question while programming: Is there any way to get the server time accurate to milliseconds in the EA?
For example, get: 23.09.2016 14h. : 53 min. : 54000 milliseconds? That is exactly 54 seconds, 000 milliseconds.
Hello colleagues!
I havea question while programming: Is it possible to get somehow in the Expert Advisor the time of the server with an accuracy of milliseconds?
For example, get: 23.09.2016 14h. : 53 min. : 54000 milliseconds? That is exactly 54 seconds, 000 milliseconds.
Interesting question. What do you mean, specify the last known time of the server, the time of the last quote TimeCurrent() or the current time on the server?
If it is TimeCurrent(), what will be the use, if we consider that a packet with a new quote goes through the internet from the server to the terminal for 10-500 ms and this time varies from packet to packet. Besides, it is not clear, what is the arrival of the last quote, if it comes to the server from several sources, liquidity providers, and then it is processed, and then the server sends a new tick. Also, it is not known how the server's system timer is synchronised with astronomical time. On 09.01.2014 from 04:15 to 06:15 MSK (Thursday, trading day) I was finding this out, as the deviation is not from astronomical, but from the average for 31 companies. The figure for 25 time points shows these deviations (in seconds, not ms):
And what is the point of figuring out anything in milliseconds from the data from the server?
The second option is clearer. If your computer is in sync with the astronomical time with an accuracy that you know, the astronomical time in the city where the server is running is known with the same accuracy. But why do you need it...
I can't figure out where the optimisation has gone from the strategy tester. Checks are all standing I can not understand anything. MT4 build 1010. Windows 8.1.
Please advise how to enable the optimization.
I will attach screenshots. I cannot see the optimization button.
}
I'm asking competent programmers to explain what my mistake is?! Why the order is not modified!!! and the compiler does not give out errors while doing so
I've studied the tutorial.I've read and taken notes.Could you point out the errors specifically...because the compiler doesn't give out any errors and there are no errors in the tester.But the order is not modified.It's like the order is not seen in the program at all
Read carefully what OrderSend() returns
Actually, I would do the following:
Read carefully what OrderSend() returns
In fact, I would do it like this:
Can a ticket be equal to zero?
From the documentation about OrderSend():
.......
Return value
Returns the ticket number assigned to the order by the trade server or -1 in case of failure. To get the error information, call GetLastError().