How to find out if the market is closed? (mql4) - page 7

 

And here is a demonstration that if there were no ticks, then TimeCurrent() has not changed either:

The terminal was not switched on since yesterday - it means that in the terminal the ticks were last yesterday and it means that in TimeCurrent() the last known server time was saved - yesterday's time. Let's check it: I have switched off the Internet and have loaded the terminal. The Market Watch window shows yesterday's last known server time:

In the terminal, the last known time is yesterday

then I switched on the internet and the time in the Market Watch window immediately updated:

After switching on the internet, the time in the Market Watch was immediately updated

I continue the experiment, turn off the terminal and disconnect the internet. Three-four minutes later (don't forget, the Internet is still off) I switch on the terminal and see that the time in the "Market Watch" window has not changed (the difference of 15 seconds is my operating costs to make a screenshot and switch off the Internet before switching off the terminal):

With the internet disconnected, after restarting the terminal, the time in Market Watch remains the same

I turn on the internet, the ticks went immediately and the time in the terminal in the "Market Watch" window immediately updated:

After switching on the internet, the terminal time is updated

 

И? Am I wrong?

:)))))))))))

Huhyyy.

Some experimentation.

Went into the terminal at the weekend. Time shows when you logged in. What else is there to talk about?

 
Vasyl Nosal:

И? Am I wrong?

...

Some experimentation.

Went into the terminal at the weekend. It shows the time when you logged in. What else is there to talk about?

The time in the terminal is in the "Market Watch" window. And here is where you have such a miracle "...al.The time is shown when I logged in. Oh..." happens - I don't understand :) . And clearly the problem with the formation of phrases - inconsistencies however.
 
Karputov Vladimir:
The time in the terminal is in the Market Watch window. But where do you have such a miracle "...al.The time is shown when you entered. Oh..." happens - I don't understand :) . And clearly the problem with the formation of phrases - inconsistencies however.
And this man writes to order and exhibited in the Market. /*Facepalm*/.
 
Artyom Trishkin:
And this man writes to order and displays in the Market. /*Facepalm/

Go figure.

What's not to like?

Your market review shows Friday time on a Saturday?

 
Karputov Vladimir:
The time in the terminal is in the Market Watch window. But where do you have such a miracle "...al.The time is shown when you entered. Oh..." happens - I don't understand :) . And you have problems with phrasing - inconsistencies, though.
What do you mean where? Do you have a couple of sources in the terminal where the time is shown?
 
Ihor Herasko:

You dismiss the obvious without stating your facts. Where have you seen this? Perhaps in the terminals of brokers which give quotes at the weekend? Then that's right - there will be an update, but not when the terminal starts, but when the ticks come in.

Although, most likely, you mean some other time. For example, time in the journal. But this time cannot be obtained programmatically. What we are dealing with here is TimeCurrent().

I will make a screenshot especially for you on Saturday.
 
Vasyl Nosal:
I will make a screenshot especially for you on Saturday.
Just don't forget to do it on the terminals of those brokers who do not provide quotes on weekends (any of the ones I experimented on, above the thread).
 
Ihor Herasko:
Just remember to do it on the terminals of those brokers that don't provide quotes over the weekend (any of the ones I've experimented on, above the thread).
fxOpen
 
Vasyl Nosal:
fxOpen
Is the serverecn.fxopen.com? If not, please specify your trading account type and trading server.