Te Cheng Shyan / Publications
Forum
error message 'DayOfWeek' - wrong parameters count
Hi Experts, i need help. i want my ea to stop trade on friday . I use the dayofweek function. below is my code, int dayOfWeek = DayOfWeek(TimeCurrent()); if (dayOfWeek == 5) // 5 is for Friday { return (0); } But the mql compiler stated error message "DayOfWeek' - wrong parameters