
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
Thank you, we've found out the reason - different timezones. We will let you know when a solution is found.
You mean country timezones?
You mean country timezones?
User (terminal) and event source timezone
Time zone of user (terminal) and event source
Of course I'm not going to argue with programmers who are more literate than me, but there's no logic here. After all, if the time of news is specified 1:30 and the request is made from 1:00 to 2:00, then this news should be visible regardless of time MT. And when the request is made from 1:00 to 4:00, suddenly this news is found and the time of news is defined as 1:30. All the same, other dates specified in my example work without problems with a time range of 1 hour.
And since I work with economic calendar, I would like to ask for opportunity to set time range, even 5 minutes, if I can't ask for news in 1:30 to 1:31 range. But I must admit, I didn't check minimal acceptable range.
The time of the news may change by an hour
So? At what time can the change occur? Immediately at the appointed time instead of the news time change?
But in the CalendarValueHistory query, the time is GMT, not the terminal time, and the GMT time is written to the structure.
Adding a note to the calendar functions
Note
All functions for the Economic Calendar use the time of the Trade Server (TimeTradeServer). This means that the time in the MqlCalendarValue structure and incoming time parameters in the CalendarValueHistoryByEvent/CalendarValueHistory functions are set in the timezone of the trade server, not in the local user time.
Adding a note to the calendar functions
Note
All functions for the Economic Calendar use the time of the Trade Server (TimeTradeServer). This means that the time in the MqlCalendarValue structure and the incoming time parameters in the CalendarValueHistoryByEvent/CalendarValueHistory functions are set in the timezone of the trade server, not in the local user time.
Thank you, I checked on one problem area. Everything is as the doctor prescribed.
If you know the exact time of the news, you can specify a request range of 1 minute. But we must take into account that date_to is not included in the range. That is, if you set the time
The economic calendar events from the example above will not be received.
Renat Fatkhullin:
We have already made our own licensed clean implementation ofthe economic calendar.
Our service independently collects raw data from numerous official sources and is set up to react as quickly as possible. In addition, an in-depth history of the values is maintained.
First, we will enable the calendar on this website, and then we will upgrade the calendar in MT5 and give direct access to all the calendar data from MQL5. You will be able to use the calendar in the tester - its history will also be simulated.
__________________
It seems to be not yet implemented in the Strategy Tester