
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
Not often, but when merging arrays, the final array comes with errors in the form of lack of sorting, because the most recent elements in the array should have a longer period of time.
I have not noticed something like this. Try to create a script to reproduce it.
Forum on trading, automated trading systems and testing trading strategies
Libraries: Calendar
BillionerClub, 2022.11.04 07:43 pm.
And attach the generated bin-files. Then I'll be able to replicate it.
And attach the generated bin files. Then I can do it again.
Link to attached file
You will not be able to reproduce without adding to the EVENT class
Link to attached file
The reason is this. Merge sorting will only work if both calendars are sorted. Here the original calendar is not sorted by time.
the original calendar is not sorted by time.
The reason is this.
ZY Bug report. @BillionerClub, thanks for the tip!the original calendar is not sorted by time.
Option to fix it.
In global scoping, write it.
ArraySortStruct2_Define(time) // https://www.mql5.com/ru/forum/170952/page222#comment_40289584
The reason is this. Merge sorting will work only if both calendars are sorted. Here the source calendar is not sorted by time.
Thanks. Without you I would never have figured it out )) everything looks too much correct and passed all the checks.
Please help to understand whether the calendars are correct or not.
I took known payrolls and compared several calendars. They match, it seems, by the time of news release.
The tabular calendar data does not match the price data. The script shows data in the broker's time zone, so you can compare on any trading server.
It seems that forexfactori and investing calendars show the same data as MQL5.
Who else has price data that does not coincide with the calendar dates?
ZЫ If calendars lie, then how do Market Advisors bypass news in backtests?
ZЫ If calendars lie, then how do Market Advisors get around the news in backtests?
It looks like they do lie. Automation of finding discrepancies.
The discrepancies in each row below.
On the left is the time of the news on price reaction, on the right is the calendar.
Looks like we should do an automatic corrector in the calendar dates.