run indicator in specific time frame
Yes! Just don't declare the time frame as input variable but as a fix codes value.
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.
Carl and Fernando ...
Thanks for your answers . it was helpfull . thank you so much .
- Free trading apps
- Free Forex VPS for 24 hours
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Is there a way to make the indicator run on specific time frame ?