Vitaly Muzichenko: The ticks may go and the trade is closed, that's why that function did not solve the problem
Maybe it depends on the broker. I don't see this problem in my logs for a long time, even though EAs work with 3 different brokers. You may wait for the weekend and check onTimer, what the function outputs for different symbols before and after the market close. Perhaps, I should use TimeLocal() as a passing time. If I do not forget on Friday, I will test it.
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.
If the timer in the processor has an error, in my opinion it can be assumed that
Except not necessarily by 16, but in one direction.
It is possible, but not to say that this is the case.
OK, it's not a matter of principle, let's call it a day. It doesn't help the case anyway.
Have you simply tried a millisecond (1) timer?
All is well, but why does the exchange does not publish the time at which it works?
It is clear that the boss is the boss, and I set the time as I want it.
But the traders, breadwinners of the exchange, should know when to wake up and start working for their boss.
I see a total disrespect for customers by MMVB, or I do not know something? Where is the exchange (not world time) broadcast?
Should I write to the regulator?All is well, but why does the exchange does not publish the time at which it works?
It is clear that the boss is the boss, and I set the time as I want it.
But the traders, breadwinners of the exchange, should know when to wake up and start ploughing for the boss.
I see a total disrespect for their customers by mmwb, or am I missing something? Where is the stock exchange (not world time) broadcast?
Should we write to the regulator?Sergei, you are wrong, the Exchange publishes its time, and now with microsecond accuracy,
I have written about this many times. But MQ don't want to introduce all the innovations.
https://www.mql5.com/ru/forum/188687
As far as I remember in 4, you can use a function like this
You can see if the market is closed or not and thus prevent the "Market closed" error.
What is the analogue of this function in MQL5?
Sergei, you are wrong, the Exchange publishes its time, and now with microsecond accuracy,
I have written about this many times. But MQ do not want to introduce all the innovations.
As far as I remember in 4, you can use a function like this
You can see if the market is closed or not and thus prevent the "Market closed" error.
What is the analogue of this function in MQL5?
The ticks may go and the trade is closed, that's why that function did not solve the problem
Maybe it depends on the broker. I don't see this problem in my logs for a long time, even though EAs work with 3 different brokers. You may wait for the weekend and check onTimer, what the function outputs for different symbols before and after the market close. Perhaps, I should use TimeLocal() as a passing time. If I do not forget on Friday, I will test it.
Sergei, you are wrong, the Exchange publishes its time, and now with microsecond accuracy,
I have written about this many times. But MQ don't want to introduce all the innovations.
https://www.mql5.com/ru/forum/188687
Can you show more precisely in what place? Maybe you can use WebRequest to retrieve this data?
No, you can't via WebRequest.
Simply, now (for YEARS), the exchange broadcasts (FIX and Plaza II) ALL the necessary
for trader in tables. Look at the file section.
4.1 FORTS_FUTTRADE_REPL - Futures: Bids and Trades.