run indicator in specific time frame

Behzad Hajipoor  

Is there a way to make the indicator run on specific time frame ?

Fernando Carreiro  
Behzad Hajipoor: Is there a way to make the indicator run on specific time frame ?

Your question is somewhat ambiguous and could be interpreted in different ways.

So, I will interpret it differently to the previous post and offer the opposite answer. My answer is — NO!

In live-view mode (on a chart), the indicator itself as per the OnCalculate() event handler, cannot run on a different time-frame than what it is defined by the chart it is on.

When called by the iCustom() function, it also cannot run on any other time-frame than what is set by the time-frame parameter of that function, but obviously that selected time-frame of iCustom() is user selectable.

So, in short, any plots or buffers that it displays or produces can ONLY be at the designated time-frame.

However, the indicator can access and use the information of ANY time-frame, irrespective of its currently designated one.

Behzad Hajipoor  

Carl and Fernando ...

Thanks for your answers . it was helpfull . thank you so much .

Fernando Carreiro  
Behzad Hajipoor #: Carl and Fernando ... Thanks for your answers . it was helpfull . thank you so much .
For my part, you are welcome!