Is it possible somehow setting up to see the close time for any single candle ( no matter which timeframe) on MT5 ?

 
Is it possible somehow  setting up to see the close time for any single candle ( no matter which timeframe) on MT5 ?
 
if t  < (OpenTime of actual candle + PeriodSeconds(_Period))
Dokumentation zu MQL5: Allgemeine Funktionen / PeriodSeconds
Dokumentation zu MQL5: Allgemeine Funktionen / PeriodSeconds
  • www.mql5.com
PeriodSeconds - Allgemeine Funktionen - Nachschlagewerk MQL5 - Nachschlagewerk über die Sprache des algothitmischen/automatischen Handels für MetaTrader 5
 
borko1: Is it possible somehow  setting up to see the close time for any single candle ( no matter which timeframe) on MT5 ?

It is very difficult to know the real close time of a bar, as you would need to dig into the tick data and find the time of the very last tick for that bar.

The declared open time of a bar is also virtual/artificial, because the very first tick that arrives for bar could arrive almost at the end of the bar's duration.

There could in fact be a single tick in a bar that defines its real open and close time simultaneously.

So, consider very carefully what it is you are trying to achieve and what exactly you are trying to calculate with that information.

If you need further assistance, please describe your question in more detail.

 

Hi guy's.

My question is possibly not very clear but it is too simple : attachment 


For instance in Trading View this closing time is shown by the yellow arrow ... I am looking for the same option on MT 6...is it clearer now ? This option is showing how many time there is till closing the last candle for a particular time frame ...

Thanks, Boris

Files:
download.png  106 kb
 

A search in the CodeBase or Market should result in a few hits. Here are two examples from the CodeBase ...

Code Base

Bar Time Count Down

Ziheng Zhuang, 2020.06.12 08:20

This MT5 indicator is to count down the remaining time of the current bar as the format HH:MM:SS

Code Base

Candle Closing Time Remaining (CCTR) MT5

Foad Tahmasebi, 2018.03.14 14:11

MetaTrader 5 version of Candle Closing Time Remaining (CCTR) is an indicator which displays the remaining time for an open candle to be closed.
 
Reason: