Forum

CalendarEventByCountry 4006 Unsuccessful Attempt

Code: MqlCalendarEvent events[]; Print ( CalendarEventByCountry ( "" , events)); ArrayPrint (events); Print ( GetLastError ()); Log: RI 0 11 : 39 : 03.378 sand (EURUSD.sml,H1) Executed RE 0 11 : 39 : 53.725 sand (EURUSD.sml,H1) - 1 JQ 0 11 : 39 : 53.725

Debug: constant expected

long positionType( string symbol = _Symbol ); Error: '_Symbol' - constant expected. Can someone explain why I can't assigning it as a default value