LoongClock – EA MetaTrader 5

A very simple sample of clock. You can select GMT, SERVER, or LOCAL time.

input ENUM_TIME_FUNC  inp_tf = TIME_FUNC_LOCAL;
CLoongClock c1;
int OnInit()
  {
   EventSetTimer(1); // 1 second
   c1.SetTimeFunc(inp_tf);
   return(0);
  }
void OnDeinit(const int reason)
  {
   EventKillTimer();
  }
void OnTimer()
  {
   c1.Timer();
   ChartRedraw();
  }

Loong Clock

Loong Clock

📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks
Alternative:   ExMass_HTF - indicator MetaTrader 5