Forum

TimeGMT() ERROR

Why is my EA not giving me the right time? here is my code (I omitted a lot of stuff that i dont think contribute to the problem): void OnTick () { static int OpenHour= 99 ; if (OpenHour!= TimeHour ( TimeGMT ())){ OpenHour= TimeHour ( TimeGMT ()); if (OpenHour== 8 ){