Help with finding Hour for a bar

 

Hi Everyone,

I want to find the hour of the bar when my indicator show value.

I am not familiar with that and any help is very much appreciated.

Thank you.

HHC

if(my_indicator(i)!=EMPTY_VALUE)
{hour_of_bar[i]=....;}
 
hour_of_bar[i]=TimeHour(iTime(Symbol(),PERIOD_H1,i));
 
Marco vd Heijden:

Thanks a lot, man.

HHC

Reason: