if(BarsCalculated(rsi_htf_handle)<0) return 0;Add this line at the start of onCalculate function.
return 0;When it's week-end, this will not update your indicator as there is no new tick.
There is more to debug here.
Thank you very much.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have created a multi time frame indicator in which it gives signal on Lower time frame based on RSI values on higher time frame.
Let's say the higher time frame is H1 and I load it on M5.
When I put the indicator on M5 time frame, if H1 chart is open and RSI is opened on H1, it perfectly shows the signal on M5, but if H1 chart is not open or if RSI is not open on the H1 chart, it cannot show signal on M5. looks like it cannot get RSI values from H1 chart if it is not open.
I've search forum, I could not find any relevant subject,
can anyone help me? How can I have signal on M5 without opening chart on H1?
The code is simple.