Help with finding Hour for a bar

To add comments, please log in or register
hhchenfx
1078
hhchenfx  

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]=....;}
Marco vd Heijden
Moderator
8182
Marco vd Heijden  
hour_of_bar[i]=TimeHour(iTime(Symbol(),PERIOD_H1,i));
hhchenfx
1078
hhchenfx  
Marco vd Heijden:

Thanks a lot, man.

HHC

To add comments, please log in or register