I tried to use MQL5 different documentation codes for CalenderValue but they aren't working (I also changes the dates but still didn't work). Here are the links for some of the codes: https://www.mql5.com/en/docs/calendar/calendarvaluehistory https://www.mql5.com/en/docs/calendar/calendarvaluelast