simple question

 

hi 

how is it possible to get a current bar i, open & close time?

 Thanks 

 
athanfx:

hi 

how is it possible to get a current bar i, open & close time?

 Thanks 

Time[0]  is the open time,  the close time can be calculated by adding Period * 60 to it's time or inferred as the same as the open time of the bar to it's right.
 

thanks for the answer.

But what about if it is Friday? How will i find the time of the close bar since on Fridays night the periods are not fully completed.

 
athanfx:

thanks for the answer.

But what about if it is Friday? How will i find the time of the close bar since on Fridays night the periods are not fully completed.

RaptorUK:
Time[0]  is the open time,  the close time can be calculated by adding Period * 60 to it's time       or inferred as the same as the open time of the bar to it's right.

Reason: