Metatrader Code Error. Please help.
I think you have an endless loop:
while(i>=0) { .. }
where do you decrease i like i--;
It might help if you put - if possible - i right behind while(i>=0) { i--; //This works here as Bars-1 is the first bar
or use for(i=Bars-1;i>=0;i--){..}
Oh, I did decrease i at the bottom. I think the problem is something has to do with the way I access the buffer value.
well you do
i=Bars; ... shift=i + Shift_Bars; .. shift + 3; // now you are no where, beyond Bars!the biggest accessible bar is Bars-1.
Hello everyone,
I tried to improvise the SuperSR 6 a little bit. However, when I insert my code, the Metatrader stop working. I struggle with this problem for a while now, yet no idea why. Please help me.
Here is the part has error:
Thank you guys.