Features of the mql5 language, subtleties and tricks - page 79
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 would like to get the server time according to GMT.
This is what you get when you run the script. There is a special display of two values: TimeGMT and TimeServerGMT, so you can check that they coincide.
If they are the same, there is no error, otherwise there is an error.
You get this when you run the script. Two values are specially output there: TimeGMT and TimeServerGMT, so that you can check that they match.
If they coincide, there is no error, otherwise there is a mistake.
Forum on trading, automated trading systems and testing trading strategies
Libraries: TypeToBytes
fxsaber, 2018.03.31 09:24
Sparam has a length limit. Have you taken that into account?
The sparam has a length limit.
Yes, 128 bytes.
Did you take that into account?
No, you can see that from it. The example of sparam is given as one of the options for using string storing.
You can make the code more complicated (send it in chunks), but then it will lose its clarity.
I'm afraid that without a concrete example of a design, it will not work.
It gives out such a picture:
And here's the mt4 installer withGMT+2 work shift
Was expecting to seeTimeServer=2018.04.01 05:54:26
It gives out a picture like this:
Just in case, tell me the name of the trading server.
TradersWay-Demo.
It works correctly.
Maybe you do not have it
// Работает для FOREX-символов, когда M1-история доступна за ближайшую неделю
Just in case, let me know the name of the Trading Server.
ZZY TradersWay-Demo.
It works correctly.
Maybe you do not have it.
Probably not. I probably do not have it in any terminal, I never switch timeframe below M15
Okay, I'll look into it some more.Probably not. I probably do not have it in any terminal, I never switch the time frame below M15
Do it this way
Do this.
I did it, it didn't look like nonsense. Confused by the fact that the shift should probably be -720
P.S. Again, I know that the shift +2 hours is written on the website, but the robot does not know that.
If you run the Expert Advisor on a chart like this, it is unlikely that we will get the required output result: "Learn the current time server TimeServer()" I have not got it right, maybe I am doing something wrong.
Maybe the developers should implement the function in the terminal.