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