Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
9299
Rating:
(44)
Published:
2010.02.05 10:14
Updated:
2016.11.22 07:32
\MQL5\Experts\LoongClock\
cloongclock.mqh (11.59 KB) view
loongclock.mq5 (1.85 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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.