Forum

getting error "array out of range in 'file.mq5' (113,26)"

I'm currently working on getting calendar events and coded the following , but it gives me an error of " array out of range in 'file.mq5' (113,26)" in journal when I backtest. void OnTick(void) { //--- country code for EU (ISO 3166-1 Alpha-2) string US_code= "US" ; //--- get EU events

Getting CalendarValues go wrong

Hi there, I currently work on getting CalendarEvents and CalendarValues becasue I want to make a bot which avoids huge events such as CES and FOMC. And checked the page of CalendarValueHistroy and coded below: string US_code= "US" ; MqlCalendarValue values[]; datetime date_from=