Download MetaTrader 5
To add comments, please log in or register
One billion tasks have already been executed with MQL5 Cloud Network. Test trading robots even faster!
Automated-Trading
Admin
97635
Automated-Trading 2010.02.11 14:39 

TimerClosingPeriod:

An indicator can be useful for traders who are working on opening of the new candle, it prints the time to close of the current timeframe.

If the timeframe is lower than H1, it also prints the time to close of the current hourly candle.

Author: Dmitry

TimerClosingPeriod

haidzatul Nazamri Rasda
139
haidzatul Nazamri Rasda 2010.02.24 11:56  

hi Dmitry,

i already try your indicator and compile it (ver 5.00 build 250 23 feb 2010), but this message appear 

                       cannot open include file "C:\Program Files\MetaTrader 5\MQL5\include\StdLibErr.mqh" Object.mqh 

please help me 

Rashid Umarov
Admin
11713
Rashid Umarov 2010.02.24 15:15  
Put this file into the "terminal_folder\MQL5\include\" folder, please.

Files:
haidzatul Nazamri Rasda
139
haidzatul Nazamri Rasda 2010.02.24 20:51  
Rosh:
Put this file into the "terminal_folder\MQL5\include\" folder, please.

thanx Rosh
payne
81
payne 2010.09.08 03:53  

Nice work...

 Had a compiler errors (probably do to a newer version of MT5)... see below:

  'CHARTEVENT_TRADE' - undeclared identifier TimerClosingPeriod.mq5 125 12
 

 payne 

Rashid Umarov
Admin
11713
Rashid Umarov 2010.09.08 06:55  
payne:

Nice work...

 Had a compiler errors (probably do to a newer version of MT5)... see below:

  'CHARTEVENT_TRADE' - undeclared identifier TimerClosingPeriod.mq5 125 12
 

Just delete this block with CHARTEVENT_TRADE.
payne
81
payne 2010.09.09 00:52  
Rosh:
Just delete this block with CHARTEVENT_TRADE.

Thanks Rosh...I did that an it compiles.

 However, it's not clear to me that the indicators works as described or possibly I'm confused on what it is supposed to do.

For example, when I add it to a 5 minute chart, the timer tells me how many minutes are left in the hour and how many minutes are left before the next 5 minute candle. But when the 5 minute timer gets to zero, the bar is not updated...as I would have thought. In fact, the timer continues to count down for at least another 1:15 minutes before the next candle is painted.

Is it possible the indicator is not in sync with the candle's closing time? Or perhaps there is a server (demo ) delay in sending the new candle data to my terminal?

As it is, it's not very helpful if the painting of the new candle etc... is not in synch with the timer. 

thanks,

payne 

/
To add comments, please log in or register