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 am using the code from your example but the current value is not being updated when the event occurs. Any suggestion about it?
This example was made to demonstrate how the calendar works in Tester. It comes with this instruction.
Unfortunately, you keep making inarticulate statements, taking my time to hypothesise "what did he mean?".
This example was made to demonstrate how the calendar works in Tester. It comes with the following instructions.
Unfortunately, you keep making inarticulate statements, taking my time to hypothesise "what did he mean by that?".
At the instant the news occurs, the Current value is not being updated with respect to the expected value, therefore the operation is not executed. I'm talking about the operation in a news item in real time and not in a test. In test mode it works very well.
Forum on trading, automated trading systems and testing trading strategies.
Libraries: Calendar
BillionerClub, 2023.02.23 19:35
it's not self refreshing library, use id, from calendar, for obtaining fresh data from mql5.
Thanks Enrique. Maybe you have an example to do this?
I do not have time to give basic coding lesson. Either read the documentation or ask on the forums.
On a side note. If you want to trade the news, the MQL calendar is useless. There are delays from seconds, minutes even hours.
At the instant the news occurs, the Current value is not being updated with respect to the expected value, therefore the operation is not executed. I'm talking about the operation in a news item in real time and not in a test. In test mode it works very well.
I don't know what you are running. Regarding calendar data updates, read the following discussion.
The library provides only the data that is available in the Calendar tab.
Forum on trading, automated trading systems and testing trading strategies
Libraries: Calendar
fxsaber, 2023.02.02 14:55
I don't know what you are running. Regarding calendar data updates, read the following discussion.
The library only provides the data that is available in the Calendar tab.
The only way to understand the MT5 calendar is to compare the BEFORE/After values.
Obviously, no one will do that.
Forum on trading, automated trading systems and testing trading strategies
Libraries: Calendar
fxsaber, 2023.01.07 21:31.
Looks like we should make an automatic corrector in calendar dates.
It seems to get a Calendar corrector that matches the trading server.
Result.
Forum on trading, automated trading systems and testing trading strategies
New version of MetaTrader 5 build 3660: Improvements and fixes
fxsaber, 2023.04.12 11:26 AM
Now we look at the news in the Web-calendar in the same time zone.
It matches the Web-calendar. If anyone sees any obvious discrepancies, let me know.
That seems to be the correct way to use the calendar for backtests now.
Looks like it turned out to be a Calendar corrector that matches the trade server.
Result.
Matches the Web Calendar. If anyone sees any obvious discrepancies, let me know.
Now it seems to be correct to use the calendar for backtests.
But what if it is the time of another country? I know that different countries have different dates for different times.