[SERVICE DESK] Error in getting the time of the senior TF in the timer! - page 13
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Read point 1.
To get the opening time of the bar the timer is of no use at all, and any other data, if not from another symbol different from the chart. If it is not related to a symbol different from the current chart, but to another TF of the current symbol, it is interesting. It will not update until the new data arrive. But all your work is based on the current symbol. So do not bother with the timer. The rest as such is chewed over several times. The topic went in a circle.
To get the opening time of the bar the timer is of no use at all, and any other data, if not from another symbol different from the chart. If it is not related to a symbol different from the current chart, but to another TF of the current symbol, it is interesting to check it every millisecond. It will not update until the new data arrive. But all your work is based on the current symbol. So do not bother with the timer. The rest as such is chewed over several times. The topic has gone in a circle.
Mate, you obviously don't understand what's going on here. It's not about the timer anymore, forget it. The timer refers to my real problem. The problem now is the error in the data being received. Point 1, which I advised you to read, says that in the presence of IsConnected(), the indicator will connect to the server only on the second event OnCalculate(). So your previous advice is useless.
Mate, you clearly don't understand what's going on here. It's not about the timer anymore, forget it. The timer refers to my real problem. The problem now is the error in the data being received. Point 1, which I advised you to read, says that in the presence of IsConnected(), the indicator will connect to the server only on the second event OnCalculate(). So your previous advice is useless.
Have you checked it experimentally? I advise to check it. So restart the terminal with the test.
And what do you see?
![](https://c.mql5.com/3/238/j3t6se_c9r7z7_q_2018-10-06_15-14-33.png)
On the first pass, if there is a connection to the server, everything works.
Have you tested it empirically? I suggest you do. So restart the terminal with the test.
And what do you see?
On the first pass, if there is a connection to the server, everything works.
Who in their right mind and mind tests when the market is not working?
And yes, I have tested it empirically, which is what I wrote about.
Who in their right mind and mind tests when the market is not working?
And yes, I tested it experimentally, which is what I wrote about.
This has nothing to do with whether the market is working or not. The indicator has run and its analysis has begun. The result of the first pass is in the commentary. You said
You should read it - it's about the fact that if IsConnected() is present, the indicator will connect to the server only on the second event OnCalculate(). So your previous advice is useless.
What does it have to do with whether the market is working or not? The indicator has started, the analysis is going on. The result of the first pass is in the commentary. You said.
Yeah. All right. Now turn off the terminal with this indicator installed on the chart and run it again.
Yikes. All right then. Now turn off the terminal with this indicator of yours installed on the chart and start it up again.
So this chart
![](https://c.mql5.com/3/238/j3t6se_c9r7z7_q_2018-10-06_15-14-33.png)
was made just a few minutes before it was first published. That is, today. And it was after restarting the terminal.
The connection with the server is established at the weekend as well. The same balance to check, can get the latest data, if it was disconnected before the session was closed.
So this graphic
and it was made just a few minutes before it was first published. That is, today. And it was after the terminal was restarted.
The connection to the server is established at the weekend as well. The same balance to check, can get the latest data, if it was disconnected before the session was closed.
I'm getting a result:
And your code does not show any comments when loading.I get a result:
And your code doesn't show any comments when loaded.Well, it's possible. My server sometimes goes down for maintenance on Sunday, but not for long. It may be one of the reasons for no connection.
It may be another reason why terminal can't connect to server before indicator starts.
My terminal connects immediately.
It may very well be. My server may be down for maintenance on Sunday but it won't stay down for long. It may be one of the reasons for the lack of connection.
It may be another reason why terminal has no time to connect to server before start of indicator.
My terminal connects immediately.
Then make it simple: load my indicator with your edits on the chart now. Turn off the terminal. Turn it back on on Monday and see the result. Further discussion is useless.