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.
![MQL5 Economic Calendar / CalendarValueHistory in backtest - How to access the built-in economic calendar during backtest MQL5 Economic Calendar / CalendarValueHistory in backtest - How to access the built-in economic calendar during backtest](https://c.mql5.com/36/75/mql5-economic-calendar-calendarvaluehistory.jpg)
- 2019.11.15
- www.mql5.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- 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.