Thanx for the help, it works now.
I see you changed the following from
Inserted Code
int counted_bars=IndicatorCounted(); int limit =Bars-counted_bars-1; for(int i = 0;i<limit;i++){
to the new
Inserted Code
int counted_bars=0; if(counted_bars>0) counted_bars--; int limit=Bars-counted_bars-1; Comment(limit); for(int i = 0;i<limit;i++){
The only thing I'm really clear about is the Comment and the "for" to increment, but the rest .....
What I understand is you define counted_bars to 0, but why not IndicatorCounted()?
In the next line do you use "counted_bars--" because of no IndicatorCounted()?
And please explain "Bars-counted_bars-1"?
Your help is appreciated.
I assume this change has to do with the one indi working on the current bar and the other on the previous bar.
Would you mind explaining this to me as this section in code is a part I'm not to clued up about, (well most of the stuff as I'm still learning ), or if you can give me some keywords to search for, cause I'm not sure where to look for it. I've also just used what is in the templates.
I have a few indies I need to call but some start with int=0 and others int=1, is not just gonna be better to make all start with 1, at least then you know it's not repainting also?