Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2010.02.05 10:14
Experts

LoongClock - expert for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Views:
4506
Rating:
votes: 38
\MQL5\Experts\LoongClock\
cloongclock.mqh (11.59 KB)view
loongclock.mq5 (1.85 KB)view

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

MovingAverages MovingAverages

The MovingAverages library contains functions for calculation of different types of moving averages.

Triple Exponential Average (TRIX) Triple Exponential Average (TRIX)

It's an oscillator of the overbought/oversold market conditions. It can also be used as the Momentum indicator. Triple smoothing is used for removing the cyclic components in price movements with the period less than that of TRIX.

ErrorDescription ErrorDescription

The library contains functions that returns description of runtime error codes and trade server return codes.

TimerClosingPeriod TimerClosingPeriod

The indicator prints the time to close of the current timeframe, if it less than H1, it also prints the time to close of the current hourly bar.