int limit = rates_total - prev_calculated; for(int i = limit-1; i >= 0; i--){ ... } return(rates_total);
After you process bar zero the first, you will never process it again, including when it becomes bar one.
Return rates_total-1. See How to do your lookbacks correctly.
whroeder1:
After you process bar zero the first, you will never process it again, including when it becomes bar one.
Return rates_total-1. See How to do your lookbacks correctly.
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
Hey Guys,
Could someone help me out with this indicator. I have tried to get to alert at NEXT BAR CLOSED but failed......
Thanks in advance
Alan