**Alberto Tortella:**

Hi all, if I try to use the following code on a H1 chart

the result is 3600, 60 seconds x 60 minutes.

If I apply the code on a Renko chart I seem the result is not correct.

For instance the opening time for bar 1 and bar 2 is 11:44 and 11:35, the result is 541.

I would expect 1140 as result instead.

Could you help me to understand?

Thank you

*iTime()* and many of the other time-series functions only work on the standard time-frame charts. They will not work on the *Offline Charts*.

So use the * Time[]* array series instead.

- docs.mql4.com

Hi all, if I try to use the following code on a H1 chart

the result is 3600, 60 seconds x 60 minutes.

If I apply the code on a Renko chart I seem the result is not correct.

For instance the opening time for bar 1 and bar 2 is 11:44 and 11:35, the result is 541.

I would expect 1140 as result instead.

Could you help me to understand?

Thank you