How to only set indicator for XAUUSDm TF-H1 ?

 

#property indicator_chart_window -- > change to  #property indicator...... ??


Thanks

 
Talk in complete English sentences. "Indicator head" is meaningless.
 
WHRoeder:
Talk in complete English sentences. "Indicator head" is meaningless.

sorry!
 
sorasit46:

#property indicator_chart_window -- > change to  #property indicator...... ??


You could use SetIndexStyle()  and set the colour to CLR_NONE if the timeframe, Period(),  is not H1 . . .   is that what you need ? 
 
RaptorUK:

You could use SetIndexStyle()  and set the colour to CLR_NONE if the timeframe, Period(),  is not H1 . . .   is that what you need ? 

Can I create custom indicator with work only TF-H1?


thanks

 
sorasit46:

Can I create custom indicator with work only TF-H1?


Yes, return(0) immediately from start()  if Period() is not equal to PERIOD_H1
 
RaptorUK:
Yes, return(0) immediately from start()  if Period() is not equal to PERIOD_H1

Thanks
Reason: