Dear Team,
I have wrote one Algo module to trade automatically based on the news events(https://www.mql5.com/en/economic-calendar), but if I use the CalendarValueHistory function in back-testing I am getting 4014 error.
in back-testing, I am trying to fetch older date news even. for that I am getting 4014 error. please find the code below.
convertedTime = Older date assigned. e.g: 01-Jan-2023
convertedTime2 = Older date assigned. e.g: 01-Jan-2023
events_count=CalendarValueHistory(values,convertedTime ,convertedTime2,NULL,"USD")
kindly do the needful. thanks.
Dear Team,
I have wrote one Algo module to trade automatically based on the news events(https://www.mql5.com/en/economic-calendar), but if I use the CalendarValueHistory function in back-testing I am getting 4014 error.
in back-testing, I am trying to fetch older date news even. for that I am getting 4014 error. please find the code below.
convertedTime = Older date assigned. e.g: 01-Jan-2023
convertedTime2 = Older date assigned. e.g: 01-Jan-2023
events_count=CalendarValueHistory(values,convertedTime ,convertedTime2,NULL,"USD")
kindly do the needful. thanks.
- 2019.11.15
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Dear Team,
I have wrote one Algo module to trade automatically based on the news events(https://www.mql5.com/en/economic-calendar), but if I use the CalendarValueHistory function in back-testing I am getting 4014 error.
in back-testing, I am trying to fetch older date news even. for that I am getting 4014 error. please find the code below.
convertedTime = Older date assigned. e.g: 01-Jan-2023
convertedTime2 = Older date assigned. e.g: 01-Jan-2023
events_count=CalendarValueHistory(values,convertedTime ,convertedTime2,NULL,"USD")
kindly do the needful. thanks.