Chrix Eledu / Publications
Forum
TimeDayOfWeek() undeclared identifier MQL5
#include <Tools/DateTime.mqh> input ENUM_DAY_OF_WEEK TradingWeekdays = MONDAY ; int OnInit () { if (TimeDayOfWeek() == TradingWeekdays && IsTradingHour()) { // Retrieve exchange rates for EURUSD, EURGBP, and GBPUSD // Calculate the mean value using the formula: MEAN = EURUSD -