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.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
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.